From 3badc806cc223d02df4ba18693054ce5c1588dc4 Mon Sep 17 00:00:00 2001 From: Adam0Brien Date: Fri, 15 Nov 2024 12:49:00 +0000 Subject: [PATCH] test --- .github/workflows/e2e-test.yml | 2 +- deploy/kind/inventory/kessel-inventory.yaml | 3 ++- test/e2e/inventory_http_test.go | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index f1850115..4438e01c 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -17,7 +17,7 @@ jobs: - name: Monitor Pods in Kind run: | - for i in {1..100}; do + for i in {1..300}; do STATUS=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].status.phase}') if [ "$STATUS" = "Succeeded" ]; then echo "Test pod completed successfully." diff --git a/deploy/kind/inventory/kessel-inventory.yaml b/deploy/kind/inventory/kessel-inventory.yaml index 0c8d34d6..d9fde05f 100644 --- a/deploy/kind/inventory/kessel-inventory.yaml +++ b/deploy/kind/inventory/kessel-inventory.yaml @@ -138,7 +138,8 @@ stringData: grpc: address: 0.0.0.0:9081 authn: - allow-unauthenticated: true + psk: + pre-shared-key-file: /psks.yaml authz: impl: allow-all eventing: diff --git a/test/e2e/inventory_http_test.go b/test/e2e/inventory_http_test.go index 3a121ce9..5542d2a2 100644 --- a/test/e2e/inventory_http_test.go +++ b/test/e2e/inventory_http_test.go @@ -152,7 +152,7 @@ func TestInventoryAPIHTTP_RHELHostLifecycle(t *testing.T) { createRequest := resources.CreateRhelHostRequest{ RhelHost: &resources.RhelHost{ Metadata: &resources.Metadata{ - ResourceType: "rhel-host", + ResourceType: "rhel_host", WorkspaceId: "workspace", OrgId: "", }, @@ -173,7 +173,7 @@ func TestInventoryAPIHTTP_RHELHostLifecycle(t *testing.T) { updateRequest := resources.UpdateRhelHostRequest{ RhelHost: &resources.RhelHost{ Metadata: &resources.Metadata{ - ResourceType: "rhel-host", + ResourceType: "rhel_host", WorkspaceId: "workspace", OrgId: "", }, @@ -218,7 +218,7 @@ func TestInventoryAPIHTTP_K8SClusterLifecycle(t *testing.T) { request := resources.CreateK8SClusterRequest{ K8SCluster: &resources.K8SCluster{ Metadata: &resources.Metadata{ - ResourceType: "k8s-cluster", + ResourceType: "k8s_cluster", WorkspaceId: "workspace1", OrgId: "", }, @@ -260,7 +260,7 @@ func TestInventoryAPIHTTP_K8SClusterLifecycle(t *testing.T) { updateRequest := resources.UpdateK8SClusterRequest{ K8SCluster: &resources.K8SCluster{ Metadata: &resources.Metadata{ - ResourceType: "k8s-cluster", + ResourceType: "k8s_cluster", WorkspaceId: "workspace1", OrgId: "", }, @@ -328,7 +328,7 @@ func TestInventoryAPIHTTP_K8SPolicyLifecycle(t *testing.T) { request := resources.CreateK8SPolicyRequest{ K8SPolicy: &resources.K8SPolicy{ Metadata: &resources.Metadata{ - ResourceType: "k8s-policy", + ResourceType: "k8s_policy", WorkspaceId: "workspace2", OrgId: "", }, @@ -353,7 +353,7 @@ func TestInventoryAPIHTTP_K8SPolicyLifecycle(t *testing.T) { updateRequest := resources.UpdateK8SPolicyRequest{ K8SPolicy: &resources.K8SPolicy{ Metadata: &resources.Metadata{ - ResourceType: "k8s-policy", + ResourceType: "k8s_policy", WorkspaceId: "workspace2", OrgId: "", },