github.com/yashbhutwala/operator-sdk@v0.8.1/test/ansible-inventory/molecule/test-local/asserts.yml (about)

     1  ---
     2  - hosts: localhost
     3    connection: local
     4    vars:
     5      ansible_python_interpreter: '{{ ansible_playbook_python }}'
     6      cm: '{{ lookup("k8s", api_version="v1", kind="ConfigMap", namespace=namespace, resource_name="inventory-cm") }}'
     7    tasks:
     8    - name: Assert sentinel ConfigMap has been created
     9      assert:
    10        that: cm.data.sentinel == 'test'
    11    - name: output cm
    12      debug: var=cm