From dba9d99e2e2cef358bb46c4048c8936b9521237c Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Thu, 10 Mar 2016 10:45:45 -0800 Subject: [PATCH] Add kubectl describe tests for replica sets. --- hack/test-cmd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hack/test-cmd.sh b/hack/test-cmd.sh index f31c28bc560..08f840c553f 100755 --- a/hack/test-cmd.sh +++ b/hack/test-cmd.sh @@ -1307,8 +1307,10 @@ __EOF__ kubectl create -f hack/testdata/frontend-replicaset.yaml "${kube_flags[@]}" # Post-condition: frontend replica set is created kube::test::get_object_assert rs "{{range.items}}{{$id_field}}:{{end}}" 'frontend:' - - # TODO(madhusudancs): Add describe tests once PR #20886 that implements describe for ReplicaSet is merged. + # Describe command should print detailed information + kube::test::describe_object_assert rs 'frontend' "Name:" "Image(s):" "Labels:" "Selector:" "Replicas:" "Pods Status:" + # Describe command (resource only) should print detailed information + kube::test::describe_resource_assert rs "Name:" "Name:" "Image(s):" "Labels:" "Selector:" "Replicas:" "Pods Status:" ### Scale replica set frontend with current-replicas and replicas # Pre-condition: 3 replicas