diff options
author | Rich Megginson <rmeggins@redhat.com> | 2017-05-03 18:14:16 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2017-05-30 10:39:02 -0600 |
commit | a1cfec9bbe43dd005ab16792c90cc949555cce12 (patch) | |
tree | 8ac6efa0782dd6e6dbd74a6164249c730a607a69 /roles/lib_openshift/src/test/integration/oc_service.yml | |
parent | 46411cfc431f7960df542c5bdcf62c65f612a965 (diff) | |
download | openshift-a1cfec9bbe43dd005ab16792c90cc949555cce12.tar.gz openshift-a1cfec9bbe43dd005ab16792c90cc949555cce12.tar.bz2 openshift-a1cfec9bbe43dd005ab16792c90cc949555cce12.tar.xz openshift-a1cfec9bbe43dd005ab16792c90cc949555cce12.zip |
add support for oc_service for labels, externalIPs
Add support for `labels` and `externalIPs` in Services
This also adds support for the `labels` parameter of `oadm registry`
and `oadm router` to be a `dict` of values.
This also converts `labels` dict values in the router and registry
classes into a comma delimited list of `key=value` pairs.
The list of `--labels` is sorted for consistency in key pair positioning
in the output (and for consistency in testing) - otherwise, the order
of the list is not guarantee and has actually been observed to be
different from run to run.
Diffstat (limited to 'roles/lib_openshift/src/test/integration/oc_service.yml')
-rwxr-xr-x | roles/lib_openshift/src/test/integration/oc_service.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/test/integration/oc_service.yml b/roles/lib_openshift/src/test/integration/oc_service.yml index 3eb6facef..29535f24a 100755 --- a/roles/lib_openshift/src/test/integration/oc_service.yml +++ b/roles/lib_openshift/src/test/integration/oc_service.yml @@ -18,6 +18,9 @@ test-registtry: default session_affinity: ClientIP service_type: ClusterIP + labels: + component: test-registry + infra: registry register: svc_out - debug: var=svc_out @@ -25,6 +28,8 @@ that: - "svc_out.results.results[0]['metadata']['name'] == 'test-registry'" - svc_out.changed + - "svc_out.results.results[0]['metadata']['labels']['component'] == 'test-registry'" + - "svc_out.results.results[0]['metadata']['labels']['infra'] == 'registry'" msg: service create failed. # Test idempotent create |