e3591223a0
* Update incidental test aliases. * Rewrite target references for renamed targets. * Add incidental tests to CI. * Update sanity tests for incidental cloud tests. * Initial copy of incidental tests. * Copy contrib files into test. * Update paths in test. * Add support plugins. * Update plugin to work around missing deps. * Update sanity ignores. * Fix matrix entries. * Remove debug echo.
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
# OpenShift Resources
|
|
- name: Create a project
|
|
k8s:
|
|
name: testing
|
|
kind: Project
|
|
api_version: v1
|
|
apply: no
|
|
register: output
|
|
|
|
- name: show output
|
|
debug:
|
|
var: output
|
|
|
|
- name: Create deployment config
|
|
k8s:
|
|
state: present
|
|
inline: &dc
|
|
apiVersion: v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
name: elastic
|
|
labels:
|
|
app: galaxy
|
|
service: elastic
|
|
namespace: testing
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: galaxy
|
|
service: elastic
|
|
spec:
|
|
containers:
|
|
- name: elastic
|
|
volumeMounts:
|
|
- mountPath: /usr/share/elasticsearch/data
|
|
name: elastic-volume
|
|
command: ['elasticsearch']
|
|
image: 'ansible/galaxy-elasticsearch:2.4.6'
|
|
volumes:
|
|
- name: elastic-volume
|
|
persistentVolumeClaim:
|
|
claimName: elastic-volume
|
|
replicas: 1
|
|
strategy:
|
|
type: Rolling
|
|
register: output
|
|
|
|
- name: Show output
|
|
debug:
|
|
var: output
|
|
|
|
- name: Create deployment config again
|
|
k8s:
|
|
state: present
|
|
inline: *dc
|
|
register: output
|
|
|
|
- name: DC creation should be idempotent
|
|
assert:
|
|
that: not output.changed
|