Remove remaining test pods before new test run

If the test pod still exists, new run of "helm test"
fails with ERROR: pods "xy-test" already exists

Change-Id: I8551d8d115142187512cea4042c50e9c9e5c5400
This commit is contained in:
Jiří Suchomel 2019-02-05 14:31:47 +01:00
parent 00fff1d274
commit 9e5cb57148
7 changed files with 15 additions and 0 deletions

View File

@ -31,4 +31,6 @@ helm status keystone
export OS_CLOUD=openstack_helm
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
openstack endpoint list
# Delete the test pod if it still exists
kubectl delete pods -l application=keystone,release_group=keystone,component=test --namespace=openstack --ignore-not-found
helm test keystone --timeout 900

View File

@ -58,4 +58,6 @@ openstack service list
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
openstack image list
openstack image show 'Cirros 0.3.5 64-bit'
# Delete the test pod if it still exists
kubectl delete pods -l application=glance,release_group=glance,component=test --namespace=openstack --ignore-not-found
helm test glance --timeout 900

View File

@ -42,4 +42,6 @@ export OS_CLOUD=openstack_helm
openstack service list
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
openstack volume type list
# Delete the test pod if it still exists
kubectl delete pods -l application=cinder,release_group=cinder,component=test --namespace=openstack --ignore-not-found
helm test cinder --timeout 900

View File

@ -103,5 +103,8 @@ openstack service list
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
openstack compute service list
openstack network agent list
# Delete the test pods if they still exist
kubectl delete pods -l application=nova,release_group=nova,component=test --namespace=openstack --ignore-not-found
kubectl delete pods -l application=neutron,release_group=neutron,component=test --namespace=openstack --ignore-not-found
helm test nova --timeout 900
helm test neutron --timeout 900

View File

@ -38,4 +38,6 @@ export OS_CLOUD=openstack_helm
openstack service list
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
openstack orchestration service list
# Delete the test pod if it still exists
kubectl delete pods -l application=heat,release_group=heat,component=test --namespace=openstack --ignore-not-found
helm test heat --timeout 900

View File

@ -29,4 +29,6 @@ helm upgrade --install barbican ./barbican \
export OS_CLOUD=openstack_helm
openstack service list
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
# Delete the test pod if it still exists
kubectl delete pods -l application=barbican,release_group=barbican,component=test --namespace=openstack --ignore-not-found
helm test barbican

View File

@ -31,4 +31,6 @@ helm upgrade --install mistral ./mistral \
#NOTE: Validate Deployment
export OS_CLOUD=openstack_helm
openstack service list
# Delete the test pod if it still exists
kubectl delete pods -l application=mistral,release_group=mistral,component=test --namespace=openstack --ignore-not-found
helm test mistral