Skip to content

Commit ef76af7

Browse files
authored
[APIE-651] Add new service-quota scopes to the documentation and autocomplete (#3231)
1 parent eed92a9 commit ef76af7

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

internal/service-quota/command_list.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ var quotaScopes = []string{
3535
"kafka-cluster",
3636
"service-account",
3737
"user-account",
38+
"identity-provider",
39+
"certificate-authority",
3840
}
3941

4042
func (c *command) newListCommand() *cobra.Command {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
organization
2+
environment
3+
network
4+
kafka-cluster
5+
service-account
6+
user-account
7+
identity-provider
8+
certificate-authority
9+
:4
10+
Completion ended with directive: ShellCompDirectiveNoFileComp

test/fixtures/output/service-quota/list-help.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
List Confluent Cloud service quota values by a scope ("organization", "environment", "network", "kafka-cluster", "service-account", or "user-account").
1+
List Confluent Cloud service quota values by a scope ("organization", "environment", "network", "kafka-cluster", "service-account", "user-account", "identity-provider", or "certificate-authority").
22

33
Usage:
44
confluent service-quota list <quota-scope> [flags]

test/service_quota_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,16 @@ func (s *CLITestSuite) TestServiceQuotaList() {
1717
s.runIntegrationTest(test)
1818
}
1919
}
20+
21+
func (s *CLITestSuite) TestServiceQuotaList_Autocomplete() {
22+
tests := []CLITest{
23+
{args: `__complete service-quota list ""`, login: "cloud", fixture: "service-quota/list-autocomplete.golden"},
24+
}
25+
26+
resetConfiguration(s.T(), false)
27+
28+
for _, test := range tests {
29+
test.workflow = true
30+
s.runIntegrationTest(test)
31+
}
32+
}

0 commit comments

Comments
 (0)