# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.14.4] 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.14/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-ci_6e67e8a/.collection executable location = /opt/ansible-2.14/bin/ansible-playbook python version = 3.9.16 (main, Jan 17 2023, 18:53:15) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/opt/ansible-2.14/bin/python3.9) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 3 plays in /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:2 Saturday 27 May 2023 16:20:11 +0000 (0:00:00.018) 0:00:00.018 ********** ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:5 Saturday 27 May 2023 16:20:11 +0000 (0:00:00.919) 0:00:00.937 ********** changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:9 Saturday 27 May 2023 16:20:12 +0000 (0:00:00.890) 0:00:01.828 ********** changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:13 Saturday 27 May 2023 16:20:13 +0000 (0:00:00.524) 0:00:02.353 ********** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 May 2023 16:20:13 +0000 (0:00:00.616) 0:00:02.969 ********** included: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 May 2023 16:20:14 +0000 (0:00:00.020) 0:00:02.989 ********** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Saturday 27 May 2023 16:20:14 +0000 (0:00:00.378) 0:00:03.368 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 May 2023 16:20:14 +0000 (0:00:00.047) 0:00:03.416 ********** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-8.fc36.noarch" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Saturday 27 May 2023 16:20:17 +0000 (0:00:03.384) 0:00:06.801 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.15-3.fc36.x86_64", "Installed: dbus-tools-1:1.14.4-1.fc36.x86_64" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Saturday 27 May 2023 16:20:22 +0000 (0:00:04.705) 0:00:11.506 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Saturday 27 May 2023 16:20:22 +0000 (0:00:00.457) 0:00:11.963 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Saturday 27 May 2023 16:20:23 +0000 (0:00:00.302) 0:00:12.266 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-journald.socket system.slice basic.target sysinit.target dbus.socket network.target syslog.target dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14741", "LimitNPROCSoft": "14741", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14741", "LimitSIGPENDINGSoft": "14741", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4422", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Saturday 27 May 2023 16:20:24 +0000 (0:00:01.474) 0:00:13.741 ********** changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:31 Saturday 27 May 2023 16:20:26 +0000 (0:00:02.092) 0:00:15.833 ********** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:60 Saturday 27 May 2023 16:20:27 +0000 (0:00:00.618) 0:00:16.451 ********** included: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 May 2023 16:20:27 +0000 (0:00:00.055) 0:00:16.507 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:6 Saturday 27 May 2023 16:20:27 +0000 (0:00:00.016) 0:00:16.523 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:11 Saturday 27 May 2023 16:20:29 +0000 (0:00:02.382) 0:00:18.906 ********** changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (21.3.1) Collecting pip Downloading pip-23.1.2-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.3.1 Uninstalling pip-21.3.1: Successfully uninstalled pip-21.3.1 Successfully installed pip-23.1.2 TASK [Install certreader] ****************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 May 2023 16:20:36 +0000 (0:00:06.539) 0:00:25.445 ********** changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Collecting cryptography<35 Downloading cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 37.3 MB/s eta 0:00:00 Collecting certreader>=0.1.1 Downloading certreader-0.1.1.tar.gz (4.4 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting cffi>=1.12 (from cryptography<35) Downloading cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 35.7 MB/s eta 0:00:00 Collecting pyasn1 (from certreader>=0.1.1) Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.9/83.9 kB 15.3 MB/s eta 0:00:00 Collecting pyyaml (from certreader>=0.1.1) Downloading PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 682.2/682.2 kB 62.7 MB/s eta 0:00:00 Collecting pycparser (from cffi>=1.12->cryptography<35) Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 18.2 MB/s eta 0:00:00 Building wheels for collected packages: certreader Building wheel for certreader (pyproject.toml): started Building wheel for certreader (pyproject.toml): finished with status 'done' Created wheel for certreader: filename=certreader-0.1.1-py3-none-any.whl size=5180 sha256=6b8930af6dc4003e4515f70497ae74965ba21678215b080434320e6d007801eb Stored in directory: /root/.cache/pip/wheels/f7/4f/8e/6aaf350d4662f9dfdd803b514f271613f866a2328a8d2887ad Successfully built certreader Installing collected packages: pyyaml, pycparser, pyasn1, cffi, cryptography, certreader Successfully installed certreader-0.1.1 cffi-1.15.1 cryptography-3.4.8 pyasn1-0.5.0 pycparser-2.21 pyyaml-6.0 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:26 Saturday 27 May 2023 16:20:40 +0000 (0:00:04.439) 0:00:29.885 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685204425.8449395, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c2fbb59d6d70858fc30a7b29e47a488293c81903", "ctime": 1685204425.9069393, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 196121, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1685204425.8419394, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "4074847034", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:31 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.329) 0:00:30.214 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:37 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.021) 0:00:30.235 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:47 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.056) 0:00:30.292 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:53 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.044) 0:00:30.337 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685204425.7839396, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1c15b6cd5e980288a0c26bfb822f73f262471053", "ctime": 1685204425.9079392, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 190158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1685204425.8409393, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "2411497508", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:58 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.224) 0:00:30.562 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:64 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.020) 0:00:30.582 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 May 2023 16:20:41 +0000 (0:00:00.059) 0:00:30.642 ********** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_fs_attrs.crt" ], "delta": "0:00:00.212095", "end": "2023-05-27 16:20:42.167916", "rc": 0, "start": "2023-05-27 16:20:41.955821" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "96:AC:54:36:2A:90:C7:3D:B7:17:FB:FD:0A:A5:03:5D:11:F0:04:FB", "critical": false }, "authorityKeyIdentifier": { "value": "68:D9:C7:2B:43:A9:9C:37:BB:E6:8C:98:DB:2B:FE:DF:62:E9:18:96", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8D:63:37:5C:F7:FD:44:39:38:29:80:03:99:0C:C4:61:B1:D3:B1:18:D9:45:03:01:AC:26:1A:2A:A4:76:44:B9:2C:3B:D4:4D:34:AC:2D:F0:70:33:B0:34:E4:C1:C8:32:DA:CA:A1:B6:51:5E:D7:FD:77:1F:98:CA:D3:CD:70:70:05:E1:C8:BF:6B:7F:9E:46:3C:7A:BB:D7:E1:B8:EE:ED:DA:90:D5:9F:CB:88:BB:AE:49:A5:09:00:10:F7:83:F5:62:5B:29:94:B4:98:FB:35:AB:F7:2F:B2:68:B5:1B:3B:3D:84:D1:90:72:C7:82:6C:B3:85:26:13:11:3F:AE:1F:82:CB:CF:F4:16:FD:A3:1F:D3:D6:9C:2E:FA:11:BC:2A:B4:AB:71:FB:CC:A3:DF:F3:7B:84:2A:CE:8E:07:AB:DD:EF:11:1B:72:3D:F0:CF:0E:8D:DB:6D:B1:99:E8:80:9D:01:A6:80:65:BD:6E:68:35:30:26:D6:D7:5B:83:6D:23:17:A7:31:4F:28:77:8E:03:F0:D9:BD:EC:C6:CB:07:C4:F5:57:B9:8B:9B:0F:70:A7:C9:68:FF:60:FD:DA:06:12:CD:4F:0A:08:42:01:03:D5:A9:2E:8C:CC:69:37:05:42:38:07:56:00:CC:5B:66:73:61:A8:B2:77:11:9B:AE:DD" }, "key_size": 2048, "validity": { "not_valid_after": "2024-05-27 16:20:25", "not_valid_before": "2023-05-27 16:20:25" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:79 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.524) 0:00:31.167 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "68:D9:C7:2B:43:A9:9C:37:BB:E6:8C:98:DB:2B:FE:DF:62:E9:18:96" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "96:AC:54:36:2A:90:C7:3D:B7:17:FB:FD:0A:A5:03:5D:11:F0:04:FB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8D:63:37:5C:F7:FD:44:39:38:29:80:03:99:0C:C4:61:B1:D3:B1:18:D9:45:03:01:AC:26:1A:2A:A4:76:44:B9:2C:3B:D4:4D:34:AC:2D:F0:70:33:B0:34:E4:C1:C8:32:DA:CA:A1:B6:51:5E:D7:FD:77:1F:98:CA:D3:CD:70:70:05:E1:C8:BF:6B:7F:9E:46:3C:7A:BB:D7:E1:B8:EE:ED:DA:90:D5:9F:CB:88:BB:AE:49:A5:09:00:10:F7:83:F5:62:5B:29:94:B4:98:FB:35:AB:F7:2F:B2:68:B5:1B:3B:3D:84:D1:90:72:C7:82:6C:B3:85:26:13:11:3F:AE:1F:82:CB:CF:F4:16:FD:A3:1F:D3:D6:9C:2E:FA:11:BC:2A:B4:AB:71:FB:CC:A3:DF:F3:7B:84:2A:CE:8E:07:AB:DD:EF:11:1B:72:3D:F0:CF:0E:8D:DB:6D:B1:99:E8:80:9D:01:A6:80:65:BD:6E:68:35:30:26:D6:D7:5B:83:6D:23:17:A7:31:4F:28:77:8E:03:F0:D9:BD:EC:C6:CB:07:C4:F5:57:B9:8B:9B:0F:70:A7:C9:68:FF:60:FD:DA:06:12:CD:4F:0A:08:42:01:03:D5:A9:2E:8C:CC:69:37:05:42:38:07:56:00:CC:5B:66:73:61:A8:B2:77:11:9B:AE:DD" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-05-27 16:20:25", "not_valid_before": "2023-05-27 16:20:25" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:83 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.030) 0:00:31.197 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:91 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.049) 0:00:31.246 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:99 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.022) 0:00:31.268 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:106 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.048) 0:00:31.317 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:118 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.046) 0:00:31.364 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:132 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.043) 0:00:31.408 ********** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050612", "end": "2023-05-27 16:20:42.675005", "rc": 0, "start": "2023-05-27 16:20:42.624393" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:141 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.265) 0:00:31.673 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.054) 0:00:31.727 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:6 Saturday 27 May 2023 16:20:42 +0000 (0:00:00.016) 0:00:31.744 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:11 Saturday 27 May 2023 16:20:45 +0000 (0:00:02.370) 0:00:34.114 ********** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (23.1.2) TASK [Install certreader] ****************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 May 2023 16:20:46 +0000 (0:00:00.882) 0:00:34.996 ********** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.5.0) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:26 Saturday 27 May 2023 16:20:46 +0000 (0:00:00.771) 0:00:35.767 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685204426.7169373, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cac2a56225e856b220613c702136a0baa8e3a064", "ctime": 1685204426.802937, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 196123, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1685204426.7129374, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "4120347104", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:31 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.228) 0:00:35.996 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:37 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.025) 0:00:36.022 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:47 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.056) 0:00:36.079 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:53 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.042) 0:00:36.121 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685204426.6539376, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ea0ac2f3765a017d0b9db29a4ee5f0c796217824", "ctime": 1685204426.802937, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 196122, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1685204426.7129374, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "481676295", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:58 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.228) 0:00:36.349 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:64 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.020) 0:00:36.370 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.055) 0:00:36.426 ********** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/certid.crt" ], "delta": "0:00:00.209543", "end": "2023-05-27 16:20:47.852175", "rc": 0, "start": "2023-05-27 16:20:47.642632" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "CA:03:0B:B5:54:94:E0:5B:8A:72:50:E2:2B:5A:4C:15:96:CB:6B:40", "critical": false }, "authorityKeyIdentifier": { "value": "68:D9:C7:2B:43:A9:9C:37:BB:E6:8C:98:DB:2B:FE:DF:62:E9:18:96", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0C:D7:D1:1D:46:BB:EC:48:DB:39:77:CD:00:6C:43:6A:21:09:AF:C6:3F:1A:76:82:C6:83:CF:9D:7A:E4:32:08:6C:B7:9F:AC:C9:8A:FA:C4:71:2F:57:3C:F7:F8:D3:C2:55:91:C9:6A:24:48:22:7C:8A:91:52:5B:58:D1:8D:D0:0A:F5:32:42:97:81:97:E9:E1:85:74:89:6B:B6:2C:E6:C1:66:81:B8:A0:A6:6D:96:70:D0:6A:93:31:A2:F5:2A:C7:4E:F5:36:51:0B:DC:AA:4D:F5:17:66:EA:95:13:DD:EA:F5:9A:13:02:F4:85:F2:11:EA:5B:BD:17:A7:34:A3:82:AA:C9:D5:7C:A6:16:B7:CB:89:D0:22:E2:4B:7D:72:E7:DE:53:A4:F1:3C:24:8E:94:4B:2A:D8:E1:35:B0:3B:DF:86:97:2B:73:2B:AD:20:A5:42:F7:5F:30:65:B6:D1:58:84:81:CF:5D:F0:13:23:0A:68:42:85:4B:8D:21:E3:B3:BA:96:67:27:C4:03:E9:43:E1:40:19:C6:97:3A:29:42:A9:18:BA:A6:AD:71:5D:66:39:4F:B0:7E:D6:2E:58:D3:E2:76:EF:FB:B7:26:1A:2D:E5:21:50:74:6D:44:61:C8:E8:C0:7E:1C:3E:23:3D:4D:8D:7B:8F:0C:39:F1:46" }, "key_size": 2048, "validity": { "not_valid_after": "2024-05-27 16:20:25", "not_valid_before": "2023-05-27 16:20:26" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:79 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.426) 0:00:36.852 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "68:D9:C7:2B:43:A9:9C:37:BB:E6:8C:98:DB:2B:FE:DF:62:E9:18:96" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "CA:03:0B:B5:54:94:E0:5B:8A:72:50:E2:2B:5A:4C:15:96:CB:6B:40" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0C:D7:D1:1D:46:BB:EC:48:DB:39:77:CD:00:6C:43:6A:21:09:AF:C6:3F:1A:76:82:C6:83:CF:9D:7A:E4:32:08:6C:B7:9F:AC:C9:8A:FA:C4:71:2F:57:3C:F7:F8:D3:C2:55:91:C9:6A:24:48:22:7C:8A:91:52:5B:58:D1:8D:D0:0A:F5:32:42:97:81:97:E9:E1:85:74:89:6B:B6:2C:E6:C1:66:81:B8:A0:A6:6D:96:70:D0:6A:93:31:A2:F5:2A:C7:4E:F5:36:51:0B:DC:AA:4D:F5:17:66:EA:95:13:DD:EA:F5:9A:13:02:F4:85:F2:11:EA:5B:BD:17:A7:34:A3:82:AA:C9:D5:7C:A6:16:B7:CB:89:D0:22:E2:4B:7D:72:E7:DE:53:A4:F1:3C:24:8E:94:4B:2A:D8:E1:35:B0:3B:DF:86:97:2B:73:2B:AD:20:A5:42:F7:5F:30:65:B6:D1:58:84:81:CF:5D:F0:13:23:0A:68:42:85:4B:8D:21:E3:B3:BA:96:67:27:C4:03:E9:43:E1:40:19:C6:97:3A:29:42:A9:18:BA:A6:AD:71:5D:66:39:4F:B0:7E:D6:2E:58:D3:E2:76:EF:FB:B7:26:1A:2D:E5:21:50:74:6D:44:61:C8:E8:C0:7E:1C:3E:23:3D:4D:8D:7B:8F:0C:39:F1:46" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-05-27 16:20:25", "not_valid_before": "2023-05-27 16:20:26" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:83 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.034) 0:00:36.886 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:91 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.051) 0:00:36.938 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:99 Saturday 27 May 2023 16:20:47 +0000 (0:00:00.022) 0:00:36.961 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:106 Saturday 27 May 2023 16:20:48 +0000 (0:00:00.044) 0:00:37.005 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:118 Saturday 27 May 2023 16:20:48 +0000 (0:00:00.043) 0:00:37.049 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:132 Saturday 27 May 2023 16:20:48 +0000 (0:00:00.044) 0:00:37.093 ********** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050679", "end": "2023-05-27 16:20:48.360150", "rc": 0, "start": "2023-05-27 16:20:48.309471" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:141 Saturday 27 May 2023 16:20:48 +0000 (0:00:00.264) 0:00:37.358 ********** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=55 changed=10 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Saturday 27 May 2023 16:20:48 +0000 (0:00:00.062) 0:00:37.420 ********** =============================================================================== Install the package, force upgrade -------------------------------------- 6.54s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:11 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.71s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Install certreader ------------------------------------------------------ 4.44s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.38s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.38s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:6 Ensure python3 is installed --------------------------------------------- 2.37s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:6 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.09s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.47s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.92s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:2 --------------------- Ensure user exists ------------------------------------------------------ 0.89s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:5 --------------------- Install the package, force upgrade -------------------------------------- 0.88s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:11 Install certreader ------------------------------------------------------ 0.77s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.62s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:31 -------------------- Gathering Facts --------------------------------------------------------- 0.62s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:13 -------------------- Ensure group "somegroup" exists ----------------------------------------- 0.53s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_fs_attrs.yml:9 --------------------- Parse certificate ------------------------------------------------------- 0.52s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:74 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.46s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Parse certificate ------------------------------------------------------- 0.43s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:74 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.38s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Retrieve certificate file stats ----------------------------------------- 0.33s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:26 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---