[CI] remove docker stand-alone molecule test

This commit is contained in:
Calin Cristian Andrei
2022-06-06 18:23:08 +03:00
committed by Kubernetes Prow Robot
parent 5dc8be9aa2
commit 589823bdc1
6 changed files with 1 additions and 74 deletions

View File

@@ -1,7 +0,0 @@
---
- name: Converge
hosts: all
become: true
roles:
- role: kubespray-defaults
- role: container-engine/docker

View File

@@ -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

View File

@@ -1,6 +0,0 @@
---
- name: Prepare
hosts: all
gather_facts: False
roles:
- role: bootstrap-os

View File

@@ -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