Skip to content

Commit

Permalink
fixup! TO BE REVERTED: pin e2e testing namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Feb 22, 2024
1 parent 33831bb commit 36b5eed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion e2e/openssl/openssl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package openssl

import (
"context"
"os"
"testing"
"time"

Expand All @@ -14,7 +15,7 @@ import (
)

// namespace the tests are executed in.
const namespace = "openssl"
const namespaceEnv = "K8S_NAMESPACE"

/*
This tests an OpenSSL deployment on Nunki.
Expand All @@ -33,6 +34,9 @@ func TestOpenssl(t *testing.T) {

c := kubeclient.NewForTest(t)

namespace := os.Getenv(namespaceEnv)
require.NotEmpty(namespace, "environment variable %q must be set", namespaceEnv)

frontendPods, err := c.PodsFromDeployment(context.Background(), namespace, "openssl-frontend")
require.NoError(err)
require.Len(frontendPods, 1)
Expand Down

0 comments on commit 36b5eed

Please sign in to comment.