Skip to content

Commit

Permalink
chore: updates the TestExtractParameter and TestConvertNullable test …
Browse files Browse the repository at this point in the history
…cases- 6533

Signed-off-by: kanchan-dhamane <74534570+kanchan-dhamane@users.noreply.github.com>
  • Loading branch information
kanchan-dhamane committed Jul 6, 2024
1 parent 461c009 commit 67dea6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion references/cuegen/testdata/nullable.cue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Nullable: {
field1?: null | string
field2?: null | int
field3?: null | bool
Field4: null | {
Field4: null | {
field1: null | string
field2: null | int
field3: null | bool
Expand Down
8 changes: 4 additions & 4 deletions references/docgen/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ func TestExtractParameter(t *testing.T) {
Name | Description | Type | Required | Default
---- | ----------- | ---- | -------- | -------
orValue | | [KeyConfig](#keyconfig) or [KeySecret](#keysecret) | true |
orValue | | struct | true |
#### KeyConfig
Expand Down Expand Up @@ -721,7 +721,7 @@ func TestExtractParameter(t *testing.T) {
cueValue, _ := common.GetCUEParameterValue(ca.cueTemplate, nil)
out, _, err := ref.parseParameters("", cueValue, key, 0, false)
assert.NoError(t, err, key)
assert.Contains(t, out, ca.contains, key)
assert.Contains(t, out, ca.contains)
}
}

Expand Down Expand Up @@ -764,7 +764,7 @@ func TestExtractParameterFromFiles(t *testing.T) {
containerName | Specify the name of the target container, if not set, use the component name. | string | false | empty
replace | Specify if replacing the whole environment settings for the container. | bool | false | false
env | Specify the environment variables to merge, if key already existing, override its value. | map[string]string | true |
unset | Specify which existing environment variables to unset. | []string | true |`,
unset | Specify which existing environment variables to unset. | []string | true | `,
},
"command": {
path: "testdata/parameter/command.cue",
Expand Down Expand Up @@ -801,7 +801,7 @@ func TestExtractParameterFromFiles(t *testing.T) {
command | Specify the command to use in the target container, if not set, it will not be changed. | null | true |
args | Specify the args to use in the target container, if set, it will override existing args. | null | true |
addArgs | Specify the args to add in the target container, existing args will be kept, cannot be used with args. | null | true |
delArgs | Specify the existing args to delete in the target container, cannot be used with args. | null | true |`,
delArgs | Specify the existing args to delete in the target container, cannot be used with args. | null | true | `,
},
"condition": {
path: "testdata/parameter/condition.cue",
Expand Down

0 comments on commit 67dea6b

Please sign in to comment.