Issue #10: Grammar fixes for some test tasks.

This commit is contained in:
Jeff Geerling
2020-02-13 16:05:24 -06:00
parent a75593c36a
commit bc5121363b
3 changed files with 23 additions and 22 deletions

View File

@@ -4,7 +4,7 @@
kind: Namespace
name: append-hash
- name: create k8s_resource variable
- name: Create k8s_resource variable
set_fact:
k8s_resource:
metadata:
@@ -21,26 +21,26 @@
append_hash: yes
register: k8s_configmap1
- name: check configmap is created with a hash
- name: Check configmap is created with a hash
assert:
that:
- k8s_configmap1 is changed
- k8s_configmap1.result.metadata.name != 'config-map-test'
- k8s_configmap1.result.metadata.name[:-10] == 'config-map-test-'
- name: recreate same config map
- name: Recreate same config map
k8s:
definition: "{{ k8s_resource }}"
append_hash: yes
register: k8s_configmap2
- name: check configmaps are different
- name: Check configmaps are different
assert:
that:
- k8s_configmap2 is not changed
- k8s_configmap1.result.metadata.name == k8s_configmap2.result.metadata.name
- name: add key to config map
- name: Add key to config map
k8s:
definition:
metadata:
@@ -54,14 +54,14 @@
append_hash: yes
register: k8s_configmap3
- name: check configmaps are different
- name: Check configmaps are different
assert:
that:
- k8s_configmap3 is changed
- k8s_configmap1.result.metadata.name != k8s_configmap3.result.metadata.name
always:
- name: ensure that namespace is removed
- name: Ensure that namespace is removed
k8s:
kind: Namespace
name: append-hash