| ... | ... |
@@ -287,7 +287,8 @@ done |
| 287 | 287 |
# Done |
| 288 | 288 |
echo |
| 289 | 289 |
echo |
| 290 |
-wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/metrics" "metrics: " 0.25 80
|
|
| 290 |
+wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/metrics" "metrics: " 0.25 80 > "${LOG_DIR}/metrics.log"
|
|
| 291 |
+grep "request_count" "${LOG_DIR}/metrics.log"
|
|
| 291 | 292 |
echo |
| 292 | 293 |
echo |
| 293 | 294 |
echo "test-cmd: ok" |
| ... | ... |
@@ -11,11 +11,11 @@ os::log::install_errexit |
| 11 | 11 |
# This test validates template commands |
| 12 | 12 |
|
| 13 | 13 |
oc get templates |
| 14 |
-oc create -f examples/sample-app/application-template-dockerbuild.json |
|
| 14 |
+oc create -f examples/sample-app/application-template-dockerbuild.json |
|
| 15 | 15 |
oc get templates |
| 16 | 16 |
oc get templates ruby-helloworld-sample |
| 17 |
-oc get template ruby-helloworld-sample -o json | oc process -f - |
|
| 18 |
-oc process ruby-helloworld-sample |
|
| 17 |
+oc get template ruby-helloworld-sample -o json | oc process -f - >/dev/null |
|
| 18 |
+oc process ruby-helloworld-sample >/dev/null |
|
| 19 | 19 |
oc describe templates ruby-helloworld-sample |
| 20 | 20 |
[ "$(oc describe templates ruby-helloworld-sample | grep -E "BuildConfig.*ruby-sample-build")" ] |
| 21 | 21 |
oc delete templates ruby-helloworld-sample |