mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-17 16:37:33 +00:00
test: remove unused files
We do not use molecule. The custom requirements are no longer needed. Remove py26 requirements Use ansible-core - much smaller than ansible Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
87b9e46f64
commit
6be4f3ecd6
8 changed files with 3 additions and 91 deletions
11
.github/workflows/python-unit-test.yml
vendored
11
.github/workflows/python-unit-test.yml
vendored
|
|
@ -93,14 +93,3 @@ jobs:
|
|||
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v6
|
||||
|
||||
python-26:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Run py26 tests
|
||||
uses: linux-system-roles/lsr-gh-action-py26@1.0.2
|
||||
env:
|
||||
TOX_LSR: "git+https://github.com/linux-system-roles/tox-lsr@2.13.2"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# ansible and dependencies for all supported platforms
|
||||
ansible ; python_version > "2.6"
|
||||
idna<2.8 ; python_version < "2.7"
|
||||
PyYAML<5.1 ; python_version < "2.7"
|
||||
ansible-core ; python_version > "2.6"
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Write requirements for running your custom commands in tox here:
|
||||
PyYAML; python_version == '2.7' or python_version >= '3.5'
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
# Molecule managed
|
||||
|
||||
{% if item.registry is defined %}
|
||||
FROM {{ item.registry.url }}/{{ item.image }}
|
||||
{% else %}
|
||||
FROM {{ item.image }}
|
||||
{% endif %}
|
||||
|
||||
RUN set -euo pipefail; \
|
||||
pkgs="python sudo yum-plugin-ovl bash"; \
|
||||
if grep 'CentOS release 6' /etc/centos-release > /dev/null 2>&1; then \
|
||||
for file in /etc/yum.repos.d/CentOS-*.repo; do \
|
||||
if ! grep '^baseurl=.*vault[.]centos[.]org' "$file"; then \
|
||||
sed -i -e 's,^mirrorlist,#mirrorlist,' \
|
||||
-e 's,^#baseurl=,baseurl=,' \
|
||||
-e 's,mirror.centos.org/centos/$releasever,vault.centos.org/6.10,' \
|
||||
"$file"; \
|
||||
fi; \
|
||||
done; \
|
||||
pkgs="$pkgs upstart chkconfig initscripts"; \
|
||||
fi; \
|
||||
if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
|
||||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python3 sudo python3-devel python3-dnf bash && dnf clean all; \
|
||||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y $pkgs && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
|
||||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
|
||||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
|
||||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: ${LSR_MOLECULE_DRIVER:-docker}
|
||||
platforms:
|
||||
- name: centos-6
|
||||
image: registry.centos.org/centos:6
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
command: /sbin/init
|
||||
- name: centos-7
|
||||
image: registry.centos.org/centos/systemd:latest
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
command: /usr/lib/systemd/systemd --system
|
||||
- name: centos-8
|
||||
image: registry.centos.org/centos:8
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
command: /usr/lib/systemd/systemd --system
|
||||
provisioner:
|
||||
name: ansible
|
||||
log: true
|
||||
playbooks:
|
||||
converge: ../../tests/tests_default.yml
|
||||
scenario:
|
||||
name: default
|
||||
test_sequence:
|
||||
- destroy
|
||||
- create
|
||||
- converge
|
||||
- idempotence
|
||||
- check
|
||||
- destroy
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Write extra requirements for running molecule here:
|
||||
|
|
@ -6,5 +6,4 @@
|
|||
# If you need mock then uncomment the following line:
|
||||
mock ; python_version < "3.0"
|
||||
# ansible and dependencies for all supported platforms
|
||||
ansible ; python_version > "2.6"
|
||||
idna<2.8 ; python_version < "2.7"
|
||||
ansible-core ; python_version > "2.6"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ rm -f remote-coveragedata* "${coverage_data}"
|
|||
|
||||
|
||||
# collect pytest coverage
|
||||
tox -e py26,py27,py36,py37 -- --cov-append
|
||||
tox -e py27,py36,py37 -- --cov-append
|
||||
|
||||
for test_playbook in tests_*.yml
|
||||
do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue