Skip to content

Commit 7e7619c

Browse files
committed
fix tests
removed meta from checks and updated run_test.go
1 parent 7359592 commit 7e7619c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/app/run_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ complete -F _fastly_bash_autocomplete fastly
6060
Args: "--completion-bash",
6161
WantOutput: `help
6262
auth
63+
apisecurity
6364
compute
6465
config
6566
config-store

pkg/commands/apisecurity/discoveredoperations/discoveredoperations_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ POST example.com /api/users SAVED 5.20 2026-03-10T12:00:00Z
8787

8888
listDiscoveredOperationsVerboseOutput = strings.TrimSpace(`
8989
Fastly API endpoint: https://api.fastly.com
90-
Fastly API token provided via config file (profile: user)
90+
Fastly API token provided via config file (auth: user)
9191
9292
Service ID (via --service-id): test-service-id
9393
@@ -161,7 +161,7 @@ func TestListCommand(t *testing.T) {
161161
},
162162
},
163163
},
164-
WantOutput: string(listResponseJSON),
164+
WantOutput: string(testutil.GenJSON(listResponse.Data)),
165165
},
166166
{
167167
Name: "validate invalid status",

pkg/commands/apisecurity/operations/operations_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestListCommand(t *testing.T) {
120120
},
121121
},
122122
},
123-
WantOutput: string(listResponseJSON),
123+
WantOutput: string(testutil.GenJSON(listResponse.Data)),
124124
},
125125
{
126126
Name: "validate --verbose output",

0 commit comments

Comments
 (0)