Skip to content

Commit

Permalink
test(types): adding missing test to aws-zone-match-parent flag
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoluiznunes committed Feb 6, 2024
1 parent 70835ab commit 4660134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/externaldns/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ var (
AlibabaCloudConfigFile: "/etc/kubernetes/alibaba-cloud.json",
AWSZoneType: "",
AWSZoneTagFilter: []string{""},
AWSZoneMatchParent: false,
AWSAssumeRole: "",
AWSAssumeRoleExternalID: "",
AWSBatchChangeSize: 1000,
Expand Down Expand Up @@ -166,6 +167,7 @@ var (
AlibabaCloudConfigFile: "/etc/kubernetes/alibaba-cloud.json",
AWSZoneType: "private",
AWSZoneTagFilter: []string{"tag=foo"},
AWSZoneMatchParent: true,
AWSAssumeRole: "some-other-role",
AWSAssumeRoleExternalID: "pg2000",
AWSBatchChangeSize: 100,
Expand Down Expand Up @@ -351,6 +353,7 @@ func TestParseFlags(t *testing.T) {
"--exclude-target-net=1.1.0.0/9",
"--aws-zone-type=private",
"--aws-zone-tags=tag=foo",
"--aws-zone-match-parent",
"--aws-assume-role=some-other-role",
"--aws-assume-role-external-id=pg2000",
"--aws-batch-change-size=100",
Expand Down Expand Up @@ -473,6 +476,7 @@ func TestParseFlags(t *testing.T) {
"EXTERNAL_DNS_ZONE_ID_FILTER": "/hostedzone/ZTST1\n/hostedzone/ZTST2",
"EXTERNAL_DNS_AWS_ZONE_TYPE": "private",
"EXTERNAL_DNS_AWS_ZONE_TAGS": "tag=foo",
"EXTERNAL_DNS_AWS_ZONE_MATCH_PARENT": "true",
"EXTERNAL_DNS_AWS_ASSUME_ROLE": "some-other-role",
"EXTERNAL_DNS_AWS_ASSUME_ROLE_EXTERNAL_ID": "pg2000",
"EXTERNAL_DNS_AWS_BATCH_CHANGE_SIZE": "100",
Expand Down

0 comments on commit 4660134

Please sign in to comment.