public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-docker] epel10.2: utilize new STR
@ 2026-10-13 18:28 Tomas Tomecek
0 siblings, 0 replies; only message in thread
From: Tomas Tomecek @ 2026-10-13 18:28 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-docker
Branch : epel10.2
Commit : 6ef87c1c8047a88795b5f35aa2dcfec9d382b4bc
Author : Tomas Tomecek <ttomecek@redhat.com>
Date : 2018-11-06T15:36:33+01:00
Stats : +32/-72 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-docker/c/6ef87c1c8047a88795b5f35aa2dcfec9d382b4bc?branch=epel10.2
Log:
utilize new STR
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
---
diff --git a/tests/Makefile b/tests/Makefile
index c08d55f..ba25d94 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,6 +1,4 @@
.PHONY: check
-QCOW_IMG := atomic.qcow2
-
check:
- TEST_SUBJECTS=$(QCOW_IMG) ansible-playbook -t atomic -e ansible_python_interpreter=/usr/bin/python3 -i /usr/share/ansible/inventory/standard-inventory-qcow2 ./tests.yml
+ ansible-playbook -i inventory -c local ./tests.yml
diff --git a/tests/TODO b/tests/TODO
deleted file mode 100644
index caf0dd0..0000000
--- a/tests/TODO
+++ /dev/null
@@ -1 +0,0 @@
-* build RPMs locally and inject them inside atomic host VM (local testing should not rely on repositories)
diff --git a/tests/integration.yml b/tests/integration.yml
deleted file mode 100644
index 96f2eaf..0000000
--- a/tests/integration.yml
+++ /dev/null
@@ -1,67 +0,0 @@
----
-- hosts: localhost
- vars:
- - artifacts: ./artifacts
- - remote_artifacts: /root/artifacts
- tasks:
- - name: Make local artifacts directory
- file: path={{ artifacts }} state=directory owner=root mode=755 recurse=yes
- tags:
- - classic
-
- - name: Make artifacts directory on Atomic Host
- file: path={{ remote_artifacts }} state=directory owner=root mode=755 recurse=yes
- tags:
- - atomic
-
- - name: Install pytest and the test-suite locally
- dnf:
- name: "{{ item }}"
- state: present
- tags:
- - classic
- with_items:
- - python-docker-tests
- - python3-pytest
-
- - name: Install pytest and the test-suite on Atomic Host
- shell: rpm-ostree install python3-pytest python-docker-tests && rpm-ostree ex livefs
- tags:
- - atomic
-
- - name: Ensure dockerd is running
- service:
- name: docker
- state: started
- tags:
- - atomic
- - classic
-
- - name: Atomic Host test block
- block:
- - name: Run integration test-suite on Atomic Host
- # -k "test_create_with_restart_policy" for local testing
- shell: py.test-3 -v ./tests/integration/ | tee {{ remote_artifacts }}/test.log
- args:
- chdir: /usr/libexec/installed-tests/python-docker/
- always:
- - name: Pull out the artifacts
- fetch:
- dest: "{{ artifacts }}/"
- src: "{{ remote_artifacts }}/test.log"
- tags:
- - atomic
-
- - name: Get abspath of artifacts dir
- command: realpath {{ artifacts }}
- register: artifacts_abs
- tags:
- - classic
-
- - name: Run integration test-suite locally
- # -k "test_create_with_restart_policy" for local testing
- shell: py.test-3 -v ./tests/integration/ | tee {{ artifacts_abs.stdout }}/test.log
- args:
- chdir: /usr/libexec/installed-tests/python-docker/
- tags:
- - classic
diff --git a/tests/inventory b/tests/inventory
new file mode 100644
index 0000000..2fbb50c
--- /dev/null
+++ b/tests/inventory
@@ -0,0 +1 @@
+localhost
diff --git a/tests/tests.yml b/tests/tests.yml
index 1d85990..6929c66 100644
--- a/tests/tests.yml
+++ b/tests/tests.yml
@@ -1,2 +1,31 @@
- name: Run the tests
- import_playbook: integration.yml
+ hosts: all
+ tasks:
+ - name: check if we are running in a container
+ stat:
+ path: /.dockerenv
+ register: in_docker_cont
+ - name: set fact required_services
+ set_fact:
+ required_services: []
+ - name: add docker to req_serv if we are not in a dkr cont
+ set_fact:
+ required_services: ["docker"]
+ when: not in_docker_cont.stat.exists
+ - name: run them tests
+ import_role:
+ name: standard-test-basic
+ tags:
+ - classic
+ vars:
+ tests:
+ - unit:
+ run: pytest-3 -v /usr/libexec/installed-tests/python-docker/tests/unit/
+ - integration:
+ run: pytest-3 -v /usr/libexec/installed-tests/python-docker/tests/integration/
+ required_packages:
+ - python-docker-tests
+ - python3-pytest
+ - python3-docker
+ - docker
+ required_services: '{{ required_services }}'
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-13 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 18:28 [rpms/python-docker] epel10.2: utilize new STR Tomas Tomecek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox