@@ -5,7 +5,7 @@ Feature: 3 Openshift stories
5
5
Given ensuring CRC cluster is running succeeds
6
6
And ensuring user is logged in succeeds
7
7
8
- # Old: End-to-end health check
8
+ # End-to-end health check
9
9
10
10
@darwin @linux @windows @startstop @testdata
11
11
Scenario : Overall cluster health
@@ -36,10 +36,28 @@ Feature: 3 Openshift stories
36
36
Then with up to "4" retries with wait period of "1m" http response from "http://httpd-example-testproj.apps-crc.testing" has status code "200"
37
37
And executing "oc delete project testproj" succeeds
38
38
39
- # Old: Local image to image-registry feature
39
+ # Local image to image-registry feature
40
40
41
- @linux @testdata
42
- Scenario : Create local image, push to registry, deploy
41
+ @darwin @linux @windows
42
+ Scenario : Mirror image to OpenShift image registry (via oc registry login)
43
+ # mirror
44
+ When executing "oc new-project testproj-img" succeeds
45
+ And executing "oc registry login --insecure=true" succeeds
46
+ Then executing "oc image mirror registry.access.redhat.com/ubi8/httpd-24:latest=default-route-openshift-image-registry.apps-crc.testing/testproj-img/httpd-24:latest --insecure=true --filter-by-os=linux/amd64" succeeds
47
+ And executing "oc set image-lookup httpd-24" succeeds
48
+ # deploy
49
+ When executing "oc new-app testproj-img/httpd-24:latest" succeeds
50
+ When executing "oc rollout status deployment httpd-24" succeeds
51
+ Then stdout should contain "successfully rolled out"
52
+ When executing "oc get pods" succeeds
53
+ Then stdout should contain "Running"
54
+ When executing "oc logs deployment/httpd-24" succeeds
55
+ Then stdout should contain "httpd"
56
+ # cleanup
57
+ And executing "oc delete project testproj-img" succeeds
58
+
59
+ @linux
60
+ Scenario : Create local image, push to registry, deploy (via podman login)
43
61
Given checking that CRC is running
44
62
And executing "podman pull quay.io/centos7/httpd-24-centos7" succeeds
45
63
When executing "oc new-project testproj-img" succeeds
@@ -53,14 +71,12 @@ Feature: 3 Openshift stories
53
71
Then stdout should contain "Running"
54
72
When executing "oc logs deployment/hello" succeeds
55
73
Then stdout should contain "httpd"
56
- #And executing "podman image rm quay.io/bitnami/nginx" succeeds
57
74
And executing "oc delete project testproj-img" succeeds
58
75
59
- # Old: Operator from marketplace
76
+ # Operator from marketplace
60
77
61
78
@darwin @linux @windows @testdata
62
79
Scenario : Install new operator
63
- Given checking that CRC is running
64
80
When executing "oc apply -f redis-sub.yaml" succeeds
65
81
Then with up to "20" retries with wait period of "30s" command "oc get csv" output matches ".*redis-operator\. (.*)Succeeded$"
66
82
# install redis operator
0 commit comments