public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Tomecek <ttomecek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-docker] epel10.2: utilize new STR
Date: Tue, 13 Oct 2026 18:28:06 GMT	[thread overview]
Message-ID: <179191608618.1.9273724893746145313.rpms-python-docker-6ef87c1c8047@fedoraproject.org> (raw)

            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 }}'

                 reply	other threads:[~2026-10-13 18:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179191608618.1.9273724893746145313.rpms-python-docker-6ef87c1c8047@fedoraproject.org \
    --to=ttomecek@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox