Skip to content

Commit

Permalink
ci: wip upgrade tests
Browse files Browse the repository at this point in the history
  • Loading branch information
donch committed Mar 19, 2024
1 parent 9399d34 commit c878732
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ jobs:
kubectl get cachedimages
echo "kubectl get repository"
kubectl get repository
## Check if our test image is cached
if [ $(kubectl get cachedimages docker.io-library-nginx-stable-alpine -o json | jq ".status.isCached") ];
then
if [ $(kubectl get cachedimages docker.io-library-nginx-stable-alpine -o json | jq ".status.usedBy.count") -eq 2 ];
Expand All @@ -162,6 +163,15 @@ jobs:
echo "Error: image cached status is false"
exit 1
fi
## Check repository status
if [ $(kubectl get repository docker.io-library-nginx -o json | jq ".status.phase") == "Ready" ];
then
echo "Found repository"
else
echo "Error: image repository status is not Ready"
exit 1
fi
## Check for kuik's components metrics
for component in proxy controllers
do
echo "Testing $component metrics endpoint"
Expand Down Expand Up @@ -279,6 +289,7 @@ jobs:
kubectl get cachedimages
echo "kubectl get repository"
kubectl get repository
## Check if our test image is cached
if [ $(kubectl get cachedimages docker.io-library-nginx-stable-alpine -o json | jq ".status.isCached") ];
then
if [ $(kubectl get cachedimages docker.io-library-nginx-stable-alpine -o json | jq ".status.usedBy.count") -eq 2 ];
Expand All @@ -292,6 +303,15 @@ jobs:
echo "Error: image cached status is false"
exit 1
fi
## Check repository status
if [ $(kubectl get repository docker.io-library-nginx -o json | jq ".status.phase") == "Ready" ];
then
echo "Found repository"
else
echo "Error: image repository status is not Ready"
exit 1
fi
## Check for kuik's components metrics
for component in proxy controllers
do
echo "Testing $component metrics endpoint"
Expand Down

0 comments on commit c878732

Please sign in to comment.