Skip to content

Commit

Permalink
externalIP-upgrade use separate pod YAML file (openshift#2384)
Browse files Browse the repository at this point in the history
  • Loading branch information
weliang1 authored Oct 19, 2021
1 parent 3d9ea49 commit 3ba7099
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 24 deletions.
7 changes: 4 additions & 3 deletions features/upgrade/sdn/externalIP-upgrade.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Feature: SDN externalIP compoment upgrade testing
"""

# Create a pod
Given I obtain test data file "networking/externalip_pod.yaml"
Given I obtain test data file "networking/externalip_pod_upgrade.yaml"
When I run the :create client command with:
| f | externalip_pod.yaml |
| n | externalip-upgrade |
| f | externalip_pod_upgrade.yaml |
| n | externalip-upgrade |
Then the step should succeed
Given a pod becomes ready with labels:
| name=externalip-pod |
Expand Down Expand Up @@ -69,5 +69,6 @@ Feature: SDN externalIP compoment upgrade testing
"""
### delete this project,make sure project is deleted
Given the "externalip-upgrade" project is deleted



32 changes: 11 additions & 21 deletions testdata/networking/externalip_pod.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
kind: Pod
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: externalip-pod
metadata:
name: externalip-pod
labels:
name: externalip-pod
spec:
replicas: 1
template:
metadata:
labels:
name: externalip-pod
spec:
containers:
- name: externalip-pod
image: "quay.io/openshifttest/hello-sdn@sha256:d5785550cf77b7932b090fcd1a2625472912fb3189d5973f177a5a2c347a1f95"
ports:
- containerPort: 8080
- containerPort: 8443

spec:
containers:
- name: externalip-container
image: "quay.io/openshifttest/hello-sdn@sha256:d5785550cf77b7932b090fcd1a2625472912fb3189d5973f177a5a2c347a1f95"
ports:
- containerPort: 8080
- containerPort: 8443
22 changes: 22 additions & 0 deletions testdata/networking/externalip_pod_upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: externalip-pod
name: externalip-pod
spec:
replicas: 1
template:
metadata:
labels:
name: externalip-pod
spec:
containers:
- name: externalip-pod
image: "quay.io/openshifttest/hello-sdn@sha256:d5785550cf77b7932b090fcd1a2625472912fb3189d5973f177a5a2c347a1f95"
ports:
- containerPort: 8080
- containerPort: 8443

0 comments on commit 3ba7099

Please sign in to comment.