Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Nov 15, 2024
1 parent 3cdbc06 commit 3badc80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
3 changes: 2 additions & 1 deletion deploy/kind/inventory/kessel-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/inventory_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
},
Expand All @@ -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: "",
},
Expand Down Expand Up @@ -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: "",
},
Expand Down Expand Up @@ -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: "",
},
Expand Down Expand Up @@ -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: "",
},
Expand All @@ -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: "",
},
Expand Down

0 comments on commit 3badc80

Please sign in to comment.