[CI] remove docker stand-alone molecule test
parent
5dc8be9aa2
commit
589823bdc1
|
@ -44,7 +44,7 @@ molecule_no_container_engines:
|
||||||
molecule_docker:
|
molecule_docker:
|
||||||
extends: .molecule
|
extends: .molecule
|
||||||
script:
|
script:
|
||||||
- ./tests/scripts/molecule_run.sh -i container-engine/docker
|
- ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
||||||
molecule_containerd:
|
molecule_containerd:
|
||||||
|
@ -60,13 +60,6 @@ molecule_cri-o:
|
||||||
- ./tests/scripts/molecule_run.sh -i container-engine/cri-o
|
- ./tests/scripts/molecule_run.sh -i container-engine/cri-o
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
||||||
molecule_cri-dockerd:
|
|
||||||
extends: .molecule
|
|
||||||
stage: deploy-part2
|
|
||||||
script:
|
|
||||||
- ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
|
|
||||||
when: on_success
|
|
||||||
|
|
||||||
# Stage 3 container engines don't get as much attention so allow them to fail
|
# Stage 3 container engines don't get as much attention so allow them to fail
|
||||||
molecule_kata:
|
molecule_kata:
|
||||||
extends: .molecule
|
extends: .molecule
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: Converge
|
|
||||||
hosts: all
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- role: kubespray-defaults
|
|
||||||
- role: container-engine/docker
|
|
|
@ -1,33 +0,0 @@
|
||||||
---
|
|
||||||
driver:
|
|
||||||
name: vagrant
|
|
||||||
provider:
|
|
||||||
name: libvirt
|
|
||||||
lint: |
|
|
||||||
set -e
|
|
||||||
yamllint -c ../../../.yamllint .
|
|
||||||
platforms:
|
|
||||||
- name: ubuntu18
|
|
||||||
box: generic/ubuntu1804
|
|
||||||
cpus: 2
|
|
||||||
memory: 1024
|
|
||||||
- name: almalinux8
|
|
||||||
box: almalinux/8
|
|
||||||
cpus: 2
|
|
||||||
memory: 1024
|
|
||||||
provisioner:
|
|
||||||
name: ansible
|
|
||||||
env:
|
|
||||||
ANSIBLE_ROLES_PATH: ../../../../
|
|
||||||
config_options:
|
|
||||||
defaults:
|
|
||||||
callbacks_enabled: profile_tasks
|
|
||||||
timeout: 120
|
|
||||||
lint:
|
|
||||||
name: ansible-lint
|
|
||||||
options:
|
|
||||||
c: ../../../.ansible-lint
|
|
||||||
verifier:
|
|
||||||
name: testinfra
|
|
||||||
lint:
|
|
||||||
name: flake8
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
- name: Prepare
|
|
||||||
hosts: all
|
|
||||||
gather_facts: False
|
|
||||||
roles:
|
|
||||||
- role: bootstrap-os
|
|
|
@ -1,19 +0,0 @@
|
||||||
import os
|
|
||||||
|
|
||||||
import testinfra.utils.ansible_runner
|
|
||||||
|
|
||||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|
||||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
|
||||||
|
|
||||||
|
|
||||||
def test_docker_service(host):
|
|
||||||
docker = host.service("docker")
|
|
||||||
assert docker.is_running
|
|
||||||
assert docker.is_enabled
|
|
||||||
|
|
||||||
|
|
||||||
def test_docker_run(host):
|
|
||||||
with host.sudo():
|
|
||||||
cmd = host.command("docker run quay.io/kubespray/hello-world:latest")
|
|
||||||
assert cmd.rc == 0
|
|
||||||
assert "Hello from Docker" in cmd.stdout
|
|
|
@ -14,7 +14,6 @@ KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
|
||||||
{# end kubeadm specific settings #}
|
{# end kubeadm specific settings #}
|
||||||
--container-runtime=remote \
|
--container-runtime=remote \
|
||||||
--container-runtime-endpoint=unix://{{ cri_socket }} \
|
--container-runtime-endpoint=unix://{{ cri_socket }} \
|
||||||
{% endif %}
|
|
||||||
--runtime-cgroups={{ kubelet_runtime_cgroups }} \
|
--runtime-cgroups={{ kubelet_runtime_cgroups }} \
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue