Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e-test: Remove naming conflicts #1974

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/cloud-api-adaptor/test/e2e/common_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ func DoTestPodVMwithAnnotationsLargerCPU(t *testing.T, e env.Environment, assert
}

func DoTestPodToServiceCommunication(t *testing.T, e env.Environment, assert CloudAssert) {
clientPodName := "busybox"
clientPodName := "test-client"
clientContainerName := "busybox"
clientImageName := BUSYBOX_IMAGE
serverPodName := "nginx"
serverPodName := "test-server"
serverContainerName := "nginx"
serverImageName := "nginx:latest"
serviceName := "nginx"
Expand Down Expand Up @@ -477,10 +477,10 @@ func DoTestPodToServiceCommunication(t *testing.T, e env.Environment, assert Clo
}

func DoTestPodsMTLSCommunication(t *testing.T, e env.Environment, assert CloudAssert) {
clientPodName := "curl"
clientPodName := "mtls-client"
clientContainerName := "curl"
clientImageName := "docker.io/curlimages/curl:8.4.0"
serverPodName := "nginx"
serverPodName := "mtls-server"
serverContainerName := "nginx"
serverImageName := "nginx:latest"
caService, _ := tlsutil.NewCAService("nginx")
Expand Down Expand Up @@ -576,7 +576,7 @@ func DoTestPodsMTLSCommunication(t *testing.T, e env.Environment, assert CloudAs
// as test cases might be run in parallel
func DoTestKbsKeyRelease(t *testing.T, e env.Environment, assert CloudAssert) {
t.Log("Do test kbs key release")
pod := NewBusyboxPodWithName(E2eNamespace, "busybox-wget")
pod := NewBusyboxPodWithName(E2eNamespace, "kbs-key-release")
testCommands := []TestCommand{
{
Command: []string{"wget", "-q", "-O-", "http://127.0.0.1:8006/cdh/resource/reponame/workload_key/key.bin"},
Expand All @@ -600,7 +600,7 @@ func DoTestKbsKeyRelease(t *testing.T, e env.Environment, assert CloudAssert) {
// as test cases might be run in parallel
func DoTestKbsKeyReleaseForFailure(t *testing.T, e env.Environment, assert CloudAssert) {
t.Log("Do test kbs key release failure case")
pod := NewBusyboxPodWithName(E2eNamespace, "busybox-wget-failure")
pod := NewBusyboxPodWithName(E2eNamespace, "kbs-failure")
testCommands := []TestCommand{
{
Command: []string{"wget", "-q", "-O-", "http://127.0.0.1:8006/cdh/resource/reponame/workload_key/key.bin"},
Expand Down Expand Up @@ -631,7 +631,7 @@ func DoTestKbsKeyReleaseForFailure(t *testing.T, e env.Environment, assert Cloud
// Test to check for specific key value from Trustee Operator Deployment
func DoTestTrusteeOperatorKeyReleaseForSpecificKey(t *testing.T, e env.Environment, assert CloudAssert) {
t.Log("Do test Trustee operator key release for specific key")
pod := NewBusyboxPodWithName(E2eNamespace, "busybox-wget")
pod := NewBusyboxPodWithName(E2eNamespace, "op-key-release")
testCommands := []TestCommand{
{
Command: []string{"wget", "-q", "-O-", "http://127.0.0.1:8006/cdh/resource/default/kbsres1/key1"},
Expand Down Expand Up @@ -776,7 +776,7 @@ func DoTestPodWithInitContainer(t *testing.T, e env.Environment, assert CloudAss

// Test to run specific commands in a pod and check the output
func DoTestPodWithSpecificCommands(t *testing.T, e env.Environment, assert CloudAssert, testCommands []TestCommand) {
pod := NewBusyboxPodWithName(E2eNamespace, "simple-test")
pod := NewBusyboxPodWithName(E2eNamespace, "command-test")

NewTestCase(t, e, "PodWithSpecificCommands", assert, "Pod with specific commands").WithPod(pod).WithTestCommands(testCommands).Run()
}
Loading