diff --git a/.github/workflows/run-integration-tests-basic.yml b/.github/workflows/run-integration-tests-basic.yml index 6dbe73054..3f66a2b61 100644 --- a/.github/workflows/run-integration-tests-basic.yml +++ b/.github/workflows/run-integration-tests-basic.yml @@ -64,9 +64,13 @@ jobs: images: nginx:1.14.2 manifests: | test/integration/manifests/test.yml + test/integration/manifests/manifest_test_dir/test.yml action: deploy - name: Checking if deployments and services were created run: | python test/integration/k8s-deploy-test.py namespace=${{ env.NAMESPACE }} kind=Deployment name=nginx-deployment containerName=nginx:1.14.2 labels=app:nginx,workflow:actions.github.com-k8s-deploy,workflowFriendlyName:Minikube_Integration_Tests_-_basic selectorLabels=app:nginx python test/integration/k8s-deploy-test.py namespace=${{ env.NAMESPACE }} kind=Service name=nginx-service labels=workflow:actions.github.com-k8s-deploy,workflowFriendlyName:Minikube_Integration_Tests_-_basic selectorLabels=app:nginx + + python test/integration/k8s-deploy-test.py namespace=${{ env.NAMESPACE }} kind=Deployment name=nginx-deployment3 containerName=nginx:1.14.2 labels=app:nginx3,workflow:actions.github.com-k8s-deploy,workflowFriendlyName:Minikube_Integration_Tests_-_basic selectorLabels=app:nginx3 + python test/integration/k8s-deploy-test.py namespace=${{ env.NAMESPACE }} kind=Service name=nginx-service3 labels=workflow:actions.github.com-k8s-deploy,workflowFriendlyName:Minikube_Integration_Tests_-_basic selectorLabels=app:nginx3 diff --git a/test/integration/manifests/manifest_test_dir/test.yml b/test/integration/manifests/manifest_test_dir/test.yml new file mode 100644 index 000000000..82c49dbd1 --- /dev/null +++ b/test/integration/manifests/manifest_test_dir/test.yml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment3 + labels: + app: nginx3 +spec: + replicas: 1 + selector: + matchLabels: + app: nginx3 + template: + metadata: + labels: + app: nginx3 + spec: + containers: + - name: nginx + image: nginx + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: nginx-service3 +spec: + selector: + app: nginx3 + ports: + - protocol: TCP + port: 80 + targetPort: 80