--- /dev/null
+---
+extends: default
+
+rules:
+ braces:
+ max-spaces-inside: 1
+ level: error
+ brackets:
+ max-spaces-inside: 1
+ level: error
+ line-length: disable
+ truthy: disable
--- /dev/null
+---
+- name: Converge
+ hosts: all
+ pre_tasks:
+ - name: Include infrastructure group variables
+ include_vars: ../../../../group_vars/infrastructure.yml
+ roles:
+ - strimzi-kafka-operator
--- /dev/null
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
+platforms:
+ - name: infrastructure-strimzi-kafka-operator
+ image: centos:7
+ groups:
+ - infrastructure
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+ inventory:
+ group_vars:
+ all:
+ app_name: onap
+ app_data_path: "/opt/{{ app_name }}"
+verifier:
+ name: testinfra
--- /dev/null
+---
+- name: Prepare infra container to play strimzi-kafka-operator role
+ hosts: all
+ pre_tasks:
+ - name: Include infrastructure group variables
+ include_vars: ../../../../group_vars/infrastructure.yml
+ tasks:
+ - name: "Include prepare-strimzi-kafka-operator role"
+ include_role:
+ name: "prepare-strimzi-kafka-operator"
--- /dev/null
+def test_helm_value_file(host):
+ f = host.file('/opt/onap/strimzi_kafka.yaml')
+ assert f.exists
+ assert f.user == 'root'
+ assert f.group == 'root'
+ assert f.content_string.strip() == "watchAnyNamespace: true"
--- /dev/null
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
+platforms:
+ - name: infrastructure-ubuntu-strimzi-kafka-operator
+ image: ubuntu:18.04
+ groups:
+ - infrastructure
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+ inventory:
+ group_vars:
+ all:
+ app_name: onap
+ app_data_path: "/opt/{{ app_name }}"
+ playbooks:
+ prepare: ../default/prepare.yml
+ converge: ../default/converge.yml
+verifier:
+ name: testinfra
+ directory: ../default/tests
--- /dev/null
+---
+- name: "Ensure {{ app_data_path }}/downloads directory exists"
+ file:
+ path: "{{ app_data_path }}/downloads"
+ recurse: true
+ state: directory
+
+- name: "Download strimzi-kafka-operator-helm-3-chart-{{ strimzi_kafka_version }}.tgz"
+ get_url:
+ url: "https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.28.0/strimzi-kafka-operator-helm-3-chart-{{ strimzi_kafka_version }}.tgz"
+ dest: "{{ app_data_path }}/downloads"