# STDOUT:
---v---v---v---v---v---
ansible-playbook 2.9.27
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible
  executable location = /opt/ansible-2.9/bin/ansible-playbook
  python version = 3.9.18 (main, Sep  7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)]
Using /etc/ansible/ansible.cfg as config file
Skipping callback 'actionable', as we already have a stdout callback.
Skipping callback 'counter_enabled', as we already have a stdout callback.
Skipping callback 'debug', as we already have a stdout callback.
Skipping callback 'dense', as we already have a stdout callback.
Skipping callback 'dense', as we already have a stdout callback.
Skipping callback 'full_skip', as we already have a stdout callback.
Skipping callback 'json', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'null', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
Skipping callback 'selective', as we already have a stdout callback.
Skipping callback 'skippy', as we already have a stdout callback.
Skipping callback 'stderr', as we already have a stdout callback.
Skipping callback 'unixy', as we already have a stdout callback.
Skipping callback 'yaml', as we already have a stdout callback.

PLAYBOOK: tests_wrong_provider.yml *********************************************
1 plays in /WORKDIR/git-weekly-ci4gcjhs0g/tests/tests_wrong_provider.yml

PLAY [Test issuing certificate with nonexistent provider] **********************

TASK [Gathering Facts] *********************************************************
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/tests_wrong_provider.yml:2
Saturday 10 August 2024  14:47:57 +0000 (0:00:00.012)       0:00:00.012 ******* 
ok: [sut]
META: ran handlers

TASK [linux-system-roles.certificate : Set version specific variables] *********
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:2
Saturday 10 August 2024  14:47:58 +0000 (0:00:00.824)       0:00:00.836 ******* 
included: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut

TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ******
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2
Saturday 10 August 2024  14:47:58 +0000 (0:00:00.011)       0:00:00.848 ******* 
skipping: [sut] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.certificate : Check if system is ostree] **************
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11
Saturday 10 August 2024  14:47:58 +0000 (0:00:00.018)       0:00:00.866 ******* 
ok: [sut] => {
    "changed": false,
    "stat": {
        "exists": false
    }
}

TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] ***
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16
Saturday 10 August 2024  14:47:58 +0000 (0:00:00.195)       0:00:01.061 ******* 
ok: [sut] => {
    "ansible_facts": {
        "__certificate_is_ostree": false
    },
    "changed": false
}

TASK [linux-system-roles.certificate : Set platform/version specific variables] ***
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20
Saturday 10 August 2024  14:47:58 +0000 (0:00:00.019)       0:00:01.081 ******* 
skipping: [sut] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
skipping: [sut] => (item=CentOS.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS.yml",
    "skip_reason": "Conditional result was False"
}
ok: [sut] => (item=CentOS_7.yml) => {
    "ansible_facts": {
        "__certificate_default_directory": "/etc/pki/tls",
        "__certificate_packages": [
            "python-pyasn1",
            "python-cryptography",
            "python-dbus"
        ]
    },
    "ansible_included_var_files": [
        "/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/vars/CentOS_7.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS_7.yml"
}
skipping: [sut] => (item=CentOS_7.9.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS_7.9.yml",
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] ***
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:5
Saturday 10 August 2024  14:47:58 +0000 (0:00:00.030)       0:00:01.111 ******* 
changed: [sut] => {
    "changed": true,
    "changes": {
        "installed": [
            "python-pyasn1",
            "python-cryptography"
        ]
    },
    "rc": 0,
    "results": [
        "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed",
        "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package                     Arch          Version            Repository   Size\n================================================================================\nInstalling:\n python2-cryptography        x86_64        1.7.2-2.el7        base        502 k\n python2-pyasn1              noarch        0.1.9-7.el7        base        100 k\nInstalling for dependencies:\n python-cffi                 x86_64        1.6.0-5.el7        base        218 k\n python-enum34               noarch        1.0.4-1.el7        base         52 k\n python-idna                 noarch        2.4-1.el7          base         94 k\n python-ply                  noarch        3.4-11.el7         base        123 k\n python-pycparser            noarch        2.14-1.el7         base        104 k\n\nTransaction Summary\n================================================================================\nInstall  2 Packages (+5 Dependent packages)\n\nTotal download size: 1.2 M\nInstalled size: 6.1 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal                                              3.4 MB/s | 1.2 MB  00:00     \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : python2-pyasn1-0.1.9-7.el7.noarch                            1/7 \n  Installing : python-enum34-1.0.4-1.el7.noarch                             2/7 \n  Installing : python-ply-3.4-11.el7.noarch                                 3/7 \n  Installing : python-pycparser-2.14-1.el7.noarch                           4/7 \n  Installing : python-cffi-1.6.0-5.el7.x86_64                               5/7 \n  Installing : python-idna-2.4-1.el7.noarch                                 6/7 \n  Installing : python2-cryptography-1.7.2-2.el7.x86_64                      7/7 \n  Verifying  : python-idna-2.4-1.el7.noarch                                 1/7 \n  Verifying  : python-pycparser-2.14-1.el7.noarch                           2/7 \n  Verifying  : python-ply-3.4-11.el7.noarch                                 3/7 \n  Verifying  : python-cffi-1.6.0-5.el7.x86_64                               4/7 \n  Verifying  : python-enum34-1.0.4-1.el7.noarch                             5/7 \n  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                            6/7 \n  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                      7/7 \n\nInstalled:\n  python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n  python-cffi.x86_64 0:1.6.0-5.el7        python-enum34.noarch 0:1.0.4-1.el7   \n  python-idna.noarch 0:2.4-1.el7          python-ply.noarch 0:3.4-11.el7       \n  python-pycparser.noarch 0:2.14-1.el7   \n\nComplete!\n"
    ]
}
lsrpackages: python-cryptography python-dbus python-pyasn1

TASK [linux-system-roles.certificate : Ensure provider packages are installed] ***
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:24
Saturday 10 August 2024  14:48:06 +0000 (0:00:07.649)       0:00:08.761 ******* 
skipping: [sut] => (item=fake-provider)  => {
    "__certificate_provider": "fake-provider",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] ***
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:37
Saturday 10 August 2024  14:48:06 +0000 (0:00:00.021)       0:00:08.783 ******* 
skipping: [sut] => (item=fake-provider)  => {
    "__certificate_provider": "fake-provider",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] ***
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:63
Saturday 10 August 2024  14:48:06 +0000 (0:00:00.020)       0:00:08.803 ******* 
skipping: [sut] => (item=fake-provider)  => {
    "__certificate_provider": "fake-provider",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.certificate : Ensure provider service is running] *****
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:92
Saturday 10 August 2024  14:48:06 +0000 (0:00:00.021)       0:00:08.825 ******* 
skipping: [sut] => (item=fake-provider)  => {
    "__certificate_provider": "fake-provider",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [linux-system-roles.certificate : Ensure certificate requests] ************
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:104
Saturday 10 August 2024  14:48:06 +0000 (0:00:00.020)       0:00:08.846 ******* 
failed: [sut] (item={'name': 'mycert_wrong_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'fake-provider'}) => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": {
        "ca": "self-sign",
        "dns": "www.example.com",
        "name": "mycert_wrong_provider",
        "provider": "fake-provider"
    }
}

MSG:

Chosen provider 'fake-provider' is not available.

TASK [Assert...] ***************************************************************
task path: /WORKDIR/git-weekly-ci4gcjhs0g/tests/tests_wrong_provider.yml:24
Saturday 10 August 2024  14:48:06 +0000 (0:00:00.515)       0:00:09.361 ******* 
ok: [sut] => {
    "changed": false
}

MSG:

All assertions passed
META: ran handlers
META: ran handlers

PLAY RECAP *********************************************************************
sut                        : ok=7    changed=1    unreachable=0    failed=0    skipped=5    rescued=1    ignored=0   

Saturday 10 August 2024  14:48:06 +0000 (0:00:00.017)       0:00:09.379 ******* 
=============================================================================== 
linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 7.65s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 
Gathering Facts --------------------------------------------------------- 0.82s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/tests_wrong_provider.yml:2 ---------------
linux-system-roles.certificate : Ensure certificate requests ------------ 0.52s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 
linux-system-roles.certificate : Check if system is ostree -------------- 0.20s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 
linux-system-roles.certificate : Set platform/version specific variables --- 0.03s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 
linux-system-roles.certificate : Ensure provider packages are installed --- 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 
linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 
linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 
linux-system-roles.certificate : Ensure provider service is running ----- 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 
linux-system-roles.certificate : Set flag to indicate system is ostree --- 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 
linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 
Assert... --------------------------------------------------------------- 0.02s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/tests_wrong_provider.yml:24 --------------
linux-system-roles.certificate : Set version specific variables --------- 0.01s
/WORKDIR/git-weekly-ci4gcjhs0g/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 

---^---^---^---^---^---

# STDERR:
---v---v---v---v---v---

---^---^---^---^---^---