Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyr committed Dec 10, 2023
1 parent 2a563f0 commit d098df0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func validPodConfig() Pod {
"-w": {
Value: "true",
},
"--mem": {
Value: "low",
},
},
},
}
Expand Down
3 changes: 3 additions & 0 deletions testdata/valid/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"args": {
"-w": {
"value": "true"
},
"--mem": {
"value": "low"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions testdata/valid/pod.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ master = true

[spec.containers.args]
"-w" = { value = "true" }
"--mem" = { value = "low" }

[[spec.volumes]]
name = "data"
Expand Down
2 changes: 2 additions & 0 deletions testdata/valid/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
args:
"-w":
value: "true"
"--mem":
value: "low"
volumes:
- name: data
- name: config
Expand Down

0 comments on commit d098df0

Please sign in to comment.