Log info about K8S environment
Change-Id: Ic01f41f121b9d2c15a70281d90b3726b9292878a
This commit is contained in:
parent
e0db3f1500
commit
793696fd9a
@ -48,7 +48,7 @@ class TestK8sclient(base.TestCase):
|
||||
api = apiv_api.ApivApi(client)
|
||||
|
||||
endpoints = api.list_endpoints()
|
||||
self.assertEquals(1, len(endpoints.items))
|
||||
self.assertTrue(len(endpoints.items) > 0)
|
||||
|
||||
@unittest.skipUnless(
|
||||
_is_k8s_running(), "Kubernetes is not available")
|
||||
|
@ -79,6 +79,31 @@ echo "SUCCESS"
|
||||
echo "Cluster created!"
|
||||
echo ""
|
||||
|
||||
echo "Dump Kubernetes Objects..."
|
||||
./kubectl -s=http://127.0.0.1:8080 get componentstatuses
|
||||
./kubectl -s=http://127.0.0.1:8080 get configmaps
|
||||
./kubectl -s=http://127.0.0.1:8080 get daemonsets
|
||||
./kubectl -s=http://127.0.0.1:8080 get deployments
|
||||
./kubectl -s=http://127.0.0.1:8080 get events
|
||||
./kubectl -s=http://127.0.0.1:8080 get endpoints
|
||||
./kubectl -s=http://127.0.0.1:8080 get horizontalpodautoscalers
|
||||
./kubectl -s=http://127.0.0.1:8080 get ingress
|
||||
./kubectl -s=http://127.0.0.1:8080 get jobs
|
||||
./kubectl -s=http://127.0.0.1:8080 get limitranges
|
||||
./kubectl -s=http://127.0.0.1:8080 get nodes
|
||||
./kubectl -s=http://127.0.0.1:8080 get namespaces
|
||||
./kubectl -s=http://127.0.0.1:8080 get pods
|
||||
./kubectl -s=http://127.0.0.1:8080 get persistentvolumes
|
||||
./kubectl -s=http://127.0.0.1:8080 get persistentvolumeclaims
|
||||
./kubectl -s=http://127.0.0.1:8080 get quota
|
||||
./kubectl -s=http://127.0.0.1:8080 get resourcequotas
|
||||
./kubectl -s=http://127.0.0.1:8080 get replicasets
|
||||
./kubectl -s=http://127.0.0.1:8080 get replicationcontrollers
|
||||
./kubectl -s=http://127.0.0.1:8080 get secrets
|
||||
./kubectl -s=http://127.0.0.1:8080 get serviceaccounts
|
||||
./kubectl -s=http://127.0.0.1:8080 get services
|
||||
|
||||
|
||||
echo "Running tests..."
|
||||
set -x -e
|
||||
# Yield execution to venv command
|
||||
|
Loading…
Reference in New Issue
Block a user