Skip to content

Commit d3bc423

Browse files
committed
Remove verb tests
Signed-off-by: Joseph <[email protected]>
1 parent 04c840b commit d3bc423

File tree

1 file changed

+0
-116
lines changed

1 file changed

+0
-116
lines changed

cmd/root_test.go

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -73,99 +73,6 @@ func TestRootCommand(t *testing.T) {
7373
"Work with restores",
7474
},
7575
},
76-
// Verb-noun order help command tests
77-
{
78-
name: "get help",
79-
args: []string{"get", "--help"},
80-
expectContains: []string{
81-
"Get one or more resources",
82-
"backup",
83-
"restore",
84-
},
85-
},
86-
{
87-
name: "create help",
88-
args: []string{"create", "--help"},
89-
expectContains: []string{
90-
"Create a resource",
91-
"backup",
92-
"restore",
93-
},
94-
},
95-
{
96-
name: "delete help",
97-
args: []string{"delete", "--help"},
98-
expectContains: []string{
99-
"Delete a resource",
100-
"backup",
101-
"restore",
102-
},
103-
},
104-
{
105-
name: "describe help",
106-
args: []string{"describe", "--help"},
107-
expectContains: []string{
108-
"Describe a resource",
109-
"backup",
110-
"restore",
111-
},
112-
},
113-
{
114-
name: "logs help",
115-
args: []string{"logs", "--help"},
116-
expectContains: []string{
117-
"Get logs for a resource",
118-
"backup",
119-
"restore",
120-
},
121-
},
122-
// Verb-noun order with specific resources
123-
{
124-
name: "get backup help",
125-
args: []string{"get", "backup", "--help"},
126-
expectContains: []string{
127-
"Get one or more resources",
128-
"backup",
129-
"restore",
130-
},
131-
},
132-
{
133-
name: "create backup help",
134-
args: []string{"create", "backup", "--help"},
135-
expectContains: []string{
136-
"Create a resource",
137-
"backup",
138-
"restore",
139-
},
140-
},
141-
{
142-
name: "delete backup help",
143-
args: []string{"delete", "backup", "--help"},
144-
expectContains: []string{
145-
"Delete a resource",
146-
"backup",
147-
"restore",
148-
},
149-
},
150-
{
151-
name: "describe backup help",
152-
args: []string{"describe", "backup", "--help"},
153-
expectContains: []string{
154-
"Describe a resource",
155-
"backup",
156-
"restore",
157-
},
158-
},
159-
{
160-
name: "logs backup help",
161-
args: []string{"logs", "backup", "--help"},
162-
expectContains: []string{
163-
"Get logs for a resource",
164-
"backup",
165-
"restore",
166-
"schedule",
167-
},
168-
},
16976
}
17077

17178
for _, tt := range tests {
@@ -188,21 +95,6 @@ func TestRootCommandHelpFlags(t *testing.T) {
18895
{"restore", "-h"},
18996
{"version", "--help"},
19097
{"version", "-h"},
191-
// Verb-noun order help flags
192-
{"get", "--help"},
193-
{"get", "-h"},
194-
{"create", "--help"},
195-
{"create", "-h"},
196-
{"delete", "--help"},
197-
{"delete", "-h"},
198-
{"describe", "--help"},
199-
{"describe", "-h"},
200-
{"logs", "--help"},
201-
{"logs", "-h"},
202-
{"get", "backup", "--help"},
203-
{"get", "backup", "-h"},
204-
{"create", "backup", "--help"},
205-
{"create", "backup", "-h"},
20698
}
20799

208100
for _, cmd := range commands {
@@ -222,14 +114,6 @@ func TestRootCommandSmoke(t *testing.T) {
222114
{"backup", "--help"},
223115
{"restore", "--help"},
224116
{"version", "--help"},
225-
// Verb-noun order smoke tests
226-
{"get", "--help"},
227-
{"create", "--help"},
228-
{"delete", "--help"},
229-
{"describe", "--help"},
230-
{"logs", "--help"},
231-
{"get", "backup", "--help"},
232-
{"create", "backup", "--help"},
233117
}
234118

235119
for _, cmd := range smokeCommands {

0 commit comments

Comments
 (0)