Skip to content

Commit fe0ba7e

Browse files
authored
Add autorization endpoint flag to config unset unit tests (#68)
1 parent fae3731 commit fe0ba7e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

internal/cmd/config/unset/unset_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ func fixtureFlagValues(mods ...func(flagValues map[string]bool)) map[string]bool
1212
projectIdFlag: true,
1313
outputFormatFlag: true,
1414

15+
authorizationCustomEndpointFlag: true,
1516
dnsCustomEndpointFlag: true,
1617
logMeCustomEndpointFlag: true,
1718
mariaDBCustomEndpointFlag: true,
@@ -30,8 +31,10 @@ func fixtureFlagValues(mods ...func(flagValues map[string]bool)) map[string]bool
3031

3132
func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
3233
model := &inputModel{
33-
ProjectId: true,
34-
OutputFormat: true,
34+
ProjectId: true,
35+
OutputFormat: true,
36+
37+
AuthorizationCustomEndpoint: true,
3538
DNSCustomEndpoint: true,
3639
LogMeCustomEndpoint: true,
3740
MariaDBCustomEndpoint: true,
@@ -68,6 +71,8 @@ func TestParseInput(t *testing.T) {
6871
expectedModel: fixtureInputModel(func(model *inputModel) {
6972
model.ProjectId = false
7073
model.OutputFormat = false
74+
75+
model.AuthorizationCustomEndpoint = false
7176
model.DNSCustomEndpoint = false
7277
model.LogMeCustomEndpoint = false
7378
model.MariaDBCustomEndpoint = false

0 commit comments

Comments
 (0)