Skip to content

Commit

Permalink
test(AwsVpcPeering): switch to alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
vandjelk committed Oct 23, 2024
1 parent 42a83bb commit d6eb45d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions features/400-awsvpcpeering.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Feature: AwsVpcPeering feature
"""
apiVersion: cloud-resources.kyma-project.io/v1beta1
kind: AwsVpcPeering
metadata:
name: e2e
spec:
remoteAccountId: "642531956841"
remoteRegion: "us-east-1"
Expand All @@ -24,8 +22,6 @@ Feature: AwsVpcPeering feature
"""
apiVersion: v1
kind: Pod
metadata:
name: awsvpcpeering-demo
spec:
containers:
- name: my-container
Expand All @@ -36,16 +32,16 @@ Feature: AwsVpcPeering feature
requests:
memory: 256Mi
cpu: "0.2"
image: ubuntu
image: alpine
command:
- "/bin/bash"
- "-c"
- "--"
- "nc"
args:
- "apt update; apt install netcat-openbsd -y; nc -zv 10.3.136.98"
- "-zv"
- "10.3.124.194"
- "22"
"""
Then eventually value load("pod").status.phase equals "Succeeded"
And value logs("pod").search(/Connection to 10.3.136.98 22 port \[tcp\/\*\] succeeded!/) > -1 equals true
And value logs("pod").search(/10.3.124.194 \(10.3.124.194:22\) open/) > -1 equals true

When resource pod is deleted
Then eventually resource pod does not exist
Expand Down

0 comments on commit d6eb45d

Please sign in to comment.