summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/test/integration/oc_scale.yml
blob: d272357e829990d4e72236c4ea5c8530ca7f99c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/ansible-playbook --module-path=../../../library/
# ./oc_scale.yml -e "cli_master_test=$OPENSHIFT_MASTER
---
- hosts: "{{ cli_master_test }}"
  gather_facts: no
  user: root
  tasks:
  - name: list oc scale for default router dc
    oc_scale:
      state: list
      name: router
      namespace: default
      kind: dc
    register: scaleout
  - debug: var=scaleout

  - assert:
      that: "scaleout.results.results[0]['metadata']['name'] == 'test'"
      msg: route create failed