@@ -198,14 +198,14 @@ spec:
198198 CreateSubnamespace (nsTeamB , nsOrg )
199199
200200 expected := "" + // empty string make go fmt happy
201- nsOrg + "\n " +
201+ nsOrg + "\n " +
202202 "├── [s] " + nsTeamA + "\n " +
203203 "└── [s] " + nsTeamB
204204 // The subnamespaces takes a bit of time to show up
205205 RunShouldContain (expected , propogationTimeout , "kubectl hns tree" , nsOrg )
206206
207207 // create hrq in parent acme-org
208- hrq := `# quickstart_test.go: hrq in acme-org
208+ hrq := `# quickstart_test.go: hrq in acme-org
209209apiVersion: hnc.x-k8s.io/v1alpha2
210210kind: HierarchicalResourceQuota
211211metadata:
@@ -217,15 +217,15 @@ spec:
217217 MustApplyYAML (hrq )
218218
219219 // create service in team-a
220- MustRun ("kubectl create service clusterip" , nsTeamA + "-svc" , "--clusterip=None" , "-n" , nsTeamA )
220+ MustRun ("kubectl create service clusterip" , nsTeamA + "-svc" , "--clusterip=None" , "-n" , nsTeamA )
221221
222222 // show that you can't use resources more than the hrq
223- MustNotRun ("kubectl create service clusterip" , nsTeamB + "-svc" , "--clusterip=None" , "-n" , nsTeamB )
223+ MustNotRun ("kubectl create service clusterip" , nsTeamB + "-svc" , "--clusterip=None" , "-n" , nsTeamB )
224224
225225 // show hrq usage
226226 RunShouldContain ("services: 1/1" , defTimeout , "kubectl get hrq" , "-n" , nsOrg )
227227
228- MustRun ("kubectl delete hrq" , nsOrg + "-hrq" , "-n" , nsOrg )
228+ MustRun ("kubectl delete hrq" , nsOrg + "-hrq" , "-n" , nsOrg )
229229 })
230230
231231 It ("Should create and delete subnamespaces" , func () {
@@ -269,6 +269,10 @@ spec:
269269 "└── [s] " + nsService2
270270 RunShouldContain (expected , defTimeout , "kubectl hns tree" , nsTeamA )
271271
272+ // Describe should describe AllowCascadingDeletion flag value
273+ MustRun ("kubectl hns describe" , nsOrg )
274+ RunShouldContain ("Allows Cascading Deletion: false" , defTimeout , "kubectl hns describe" , nsOrg )
275+
272276 // cascading deletion with the kubectl-hns plugin
273277 CreateSubnamespace (nsService1 , nsTeamA )
274278 CreateSubnamespace (nsService4 , nsService1 )
0 commit comments