Skip to content

Commit

Permalink
e2e: added port to openssl-service
Browse files Browse the repository at this point in the history
  • Loading branch information
wirungu committed Mar 19, 2024
1 parent 4a82c81 commit 26c689a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ func OpenSSL() ([]any, error) {
WithName("openssl-frontend").
WithImage("ghcr.io/edgelesssys/contrast/openssl:latest").
WithCommand("/bin/sh", "-c", "echo Workload started\nopenssl s_server -www -port 443 -cert /tls-config/certChain.pem -key /tls-config/key.pem -cert_chain /tls-config/certChain.pem &\nwhile true; do \n echo \"THIS IS A TEST MESSAGE\" | openssl s_client -connect openssl-backend:443 -verify_return_error -CAfile /tls-config/MeshCACert.pem -cert /tls-config/certChain.pem -key /tls-config/key.pem\n sleep 10\ndone\n").
WithPorts(
ContainerPort().
WithName("openssl").
WithContainerPort(443),
).
WithEnv(
NewEnvVar("COORDINATOR_HOST", "coordinator"),
).
Expand All @@ -165,6 +170,7 @@ func OpenSSL() ([]any, error) {
WithListenPort(1313).
WithForwardTarget("coordinator", 1313).
PodApplyConfiguration

portforwarderopensslFrontend := PortForwarder("openssl-frontend", ns).
WithListenPort(443).
WithForwardTarget("openssl-frontend", 443).
Expand Down

0 comments on commit 26c689a

Please sign in to comment.