mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-13 21:12:05 +00:00
Issue #30: Test with Molecule 3.0 alpha.
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python_version: ["3.6"]
|
python_version: ['3.6']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python_version: ["3.6"]
|
python_version: ['3.6']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
@@ -76,8 +76,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python_version }}
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
# TODO: Remove molecule version constraint after 3.0 is released.
|
||||||
- name: Install molecule and openshift dependencies
|
- name: Install molecule and openshift dependencies
|
||||||
run: pip install molecule openshift
|
run: pip install molecule===3.0a9 yamllint openshift
|
||||||
|
|
||||||
- name: Install ansible-base
|
- name: Install ansible-base
|
||||||
run: pip install git+https://github.com/ansible-collection-migration/ansible-base.git --disable-pip-version-check
|
run: pip install git+https://github.com/ansible-collection-migration/ansible-base.git --disable-pip-version-check
|
||||||
12
.yamllint
Normal file
12
.yamllint
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
level: error
|
||||||
|
brackets:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
level: error
|
||||||
|
line-length: disable
|
||||||
|
truthy: disable
|
||||||
@@ -6,12 +6,8 @@ driver:
|
|||||||
login_cmd_template: 'docker exec -ti {instance} bash'
|
login_cmd_template: 'docker exec -ti {instance} bash'
|
||||||
ansible_connection_options:
|
ansible_connection_options:
|
||||||
ansible_connection: docker
|
ansible_connection: docker
|
||||||
lint:
|
lint: |
|
||||||
name: yamllint
|
yamllint .
|
||||||
options:
|
|
||||||
config-data:
|
|
||||||
line-length:
|
|
||||||
max: 160
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance-kind
|
- name: instance-kind
|
||||||
provisioner:
|
provisioner:
|
||||||
@@ -27,6 +23,7 @@ provisioner:
|
|||||||
scenario:
|
scenario:
|
||||||
name: default
|
name: default
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
- lint
|
||||||
- syntax
|
- syntax
|
||||||
- converge
|
- converge
|
||||||
- verify
|
- verify
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Ensure that append_hash namespace exists
|
- name: Ensure that append_hash namespace exists
|
||||||
k8s:
|
k8s:
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure testing1 namespace exists
|
- name: Ensure testing1 namespace exists
|
||||||
k8s:
|
k8s:
|
||||||
api_version: v1
|
api_version: v1
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
apiVersion: certmanager.k8s.io/v1alpha1
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: delete temporary directory
|
- name: delete temporary directory
|
||||||
file:
|
file:
|
||||||
path: "{{ remote_tmp_dir }}"
|
path: "{{ remote_tmp_dir }}"
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
---
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- include_tasks: setup_remote_tmp_dir.yml
|
- include_tasks: setup_remote_tmp_dir.yml
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
# TODO: Not available in ansible-base
|
# TODO: Not available in ansible-base
|
||||||
# - python_requirements_info:
|
# - python_requirements_info:
|
||||||
# dependencies:
|
# dependencies:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
# OpenShift Resources
|
# OpenShift Resources
|
||||||
- name: Create a project
|
- name: Create a project
|
||||||
k8s:
|
k8s:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: create temporary directory
|
- name: create temporary directory
|
||||||
test_tempfile:
|
test_tempfile:
|
||||||
state: directory
|
state: directory
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Create a namespace
|
- name: Create a namespace
|
||||||
k8s:
|
k8s:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
# TODO: Not available in ansible-base
|
# TODO: Not available in ansible-base
|
||||||
# - python_requirements_info:
|
# - python_requirements_info:
|
||||||
# dependencies:
|
# dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user