<86>Oct 18 14:49:47 userdel[3779632]: delete user 'rooter' <86>Oct 18 14:49:47 userdel[3779632]: removed group 'rooter' owned by 'rooter' <86>Oct 18 14:49:47 userdel[3779632]: removed shadow group 'rooter' owned by 'rooter' <86>Oct 18 14:49:47 groupadd[3779669]: group added to /etc/group: name=rooter, GID=1826 <86>Oct 18 14:49:47 groupadd[3779669]: group added to /etc/gshadow: name=rooter <86>Oct 18 14:49:47 groupadd[3779669]: new group: name=rooter, GID=1826 <86>Oct 18 14:49:47 useradd[3779701]: new user: name=rooter, UID=1826, GID=1826, home=/root, shell=/bin/bash, from=none <86>Oct 18 14:49:47 userdel[3779762]: delete user 'builder' <86>Oct 18 14:49:47 userdel[3779762]: removed group 'builder' owned by 'builder' <86>Oct 18 14:49:47 userdel[3779762]: removed shadow group 'builder' owned by 'builder' <86>Oct 18 14:49:47 groupadd[3779813]: group added to /etc/group: name=builder, GID=1827 <86>Oct 18 14:49:47 groupadd[3779813]: group added to /etc/gshadow: name=builder <86>Oct 18 14:49:47 groupadd[3779813]: new group: name=builder, GID=1827 <86>Oct 18 14:49:47 useradd[3779853]: new user: name=builder, UID=1827, GID=1827, home=/usr/src, shell=/bin/bash, from=none <13>Oct 18 14:49:51 rpmi: rpm-build-compat-2.2.12-alt1 sisyphus+296907.100.1.1 1647731749 installed <13>Oct 18 14:49:51 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Oct 18 14:49:51 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed <13>Oct 18 14:49:51 rpmi: libexpat-2.5.0-alt1 sisyphus+346180.200.2.1 1716349835 installed <13>Oct 18 14:49:51 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Oct 18 14:49:51 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Oct 18 14:49:51 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Oct 18 14:49:51 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Oct 18 14:49:51 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Oct 18 14:49:51 rpmi: ca-certificates-2024.07.01-alt1 sisyphus+351897.100.1.1 1719826350 installed <13>Oct 18 14:49:51 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Oct 18 14:49:51 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Oct 18 14:49:51 rpmi: libcrypto3-3.1.7-alt1 sisyphus+356755.100.1.1 1725388416 installed <13>Oct 18 14:49:51 rpmi: libssl3-3.1.7-alt1 sisyphus+356755.100.1.1 1725388416 installed <13>Oct 18 14:49:51 rpmi: python3-3.12.7-alt1 sisyphus+358796.100.1.1 1727844808 installed <13>Oct 18 14:49:52 rpmi: python3-base-3.12.7-alt1 sisyphus+358796.100.1.1 1727844808 installed <13>Oct 18 14:49:52 rpmi: python3-module-py3dephell-0.1.0-alt2 sisyphus+328191.600.5.1 1693609196 installed <13>Oct 18 14:49:52 rpmi: tests-for-installed-python3-pkgs-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Oct 18 14:49:52 rpmi: rpm-build-python3-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Oct 18 14:49:52 rpmi: rpm-build-intro-2.2.12-alt1 sisyphus+296907.100.1.1 1647731749 installed <13>Oct 18 14:49:53 rpmi: python3-module-urllib3-2:2.2.3-alt1 sisyphus+357427.100.2.1 1726567364 installed <13>Oct 18 14:49:53 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Oct 18 14:49:53 rpmi: python3-module-pkg_resources-1:70.3.0-alt1 sisyphus+352532.100.2.1 1720689192 installed <13>Oct 18 14:49:53 rpmi: python3-module-packaging-24.1-alt1 sisyphus+350717.100.2.1 1718268656 installed <13>Oct 18 14:49:53 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Oct 18 14:49:53 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Oct 18 14:49:53 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733155 installed <13>Oct 18 14:49:53 rpmi: libpython3-3.12.7-alt1 sisyphus+358796.100.1.1 1727844808 installed <13>Oct 18 14:49:54 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Oct 18 14:49:54 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Oct 18 14:49:54 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Oct 18 14:49:54 rpmi: python3-dev-3.12.7-alt1 sisyphus+358796.100.1.1 1727844808 installed <13>Oct 18 14:49:54 rpmi: python3-module-setuptools-1:70.3.0-alt1 sisyphus+352532.100.2.1 1720689192 installed <13>Oct 18 14:49:54 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Oct 18 14:49:55 rpmi: python3-module-pytest-8.3.3-alt1 sisyphus+357310.100.1.1 1726063386 installed <13>Oct 18 14:49:55 rpmi: python3-module-xmltodict-0.14.1-alt1 sisyphus+359393.100.1.1 1728543044 installed <13>Oct 18 14:49:55 rpmi: python3-module-wheel-0.44.0-alt1 sisyphus+355530.100.1.1 1724069901 installed <13>Oct 18 14:49:55 rpmi: python3-module-six-1.16.0-alt2 sisyphus+324249.100.1.1 1688484676 installed <13>Oct 18 14:49:55 rpmi: python3-module-mock-5.1.0-alt1 sisyphus+325622.100.1.1 1690382129 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-winrm-0.4.3-alt2.nosrc.rpm (w1.gzdio) <13>Oct 18 14:49:56 rpmi: python3-module-pyproject-installer-0.5.4-alt1 sisyphus+352023.140.3.1 1720195943 installed Installing python3-module-winrm-0.4.3-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.85598 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-winrm-0.4.3 + echo 'Source #0 (python3-module-winrm-0.4.3.tar):' Source #0 (python3-module-winrm-0.4.3.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-winrm-0.4.3.tar + cd python3-module-winrm-0.4.3 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.38283 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-winrm-0.4.3 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-winrm-0.4.3 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-winrm-0.4.3/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec INFO : pyproject_installer.lib.build_backend : pyproject.toml was not found, using defaults INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta:__legacy__ INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-winrm-0.4.3/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : root : running bdist_wheel INFO : root : running build INFO : root : running build_py INFO : root : creating build INFO : root : creating build/lib INFO : root : creating build/lib/winrm INFO : root : copying winrm/transport.py -> build/lib/winrm INFO : root : copying winrm/protocol.py -> build/lib/winrm INFO : root : copying winrm/exceptions.py -> build/lib/winrm INFO : root : copying winrm/encryption.py -> build/lib/winrm INFO : root : copying winrm/__init__.py -> build/lib/winrm INFO : root : creating build/lib/winrm/vendor INFO : root : copying winrm/vendor/__init__.py -> build/lib/winrm/vendor INFO : root : creating build/lib/winrm/tests INFO : root : copying winrm/tests/test_wql.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_transport.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_session.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_protocol.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_powershell.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_nori_type_casting.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_integration_session.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_integration_protocol.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_encryption.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/test_cmd.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/conftest.py -> build/lib/winrm/tests INFO : root : copying winrm/tests/__init__.py -> build/lib/winrm/tests INFO : root : creating build/lib/winrm/vendor/requests_kerberos INFO : root : copying winrm/vendor/requests_kerberos/kerberos_.py -> build/lib/winrm/vendor/requests_kerberos INFO : root : copying winrm/vendor/requests_kerberos/exceptions.py -> build/lib/winrm/vendor/requests_kerberos INFO : root : copying winrm/vendor/requests_kerberos/compat.py -> build/lib/winrm/vendor/requests_kerberos INFO : root : copying winrm/vendor/requests_kerberos/__init__.py -> build/lib/winrm/vendor/requests_kerberos INFO : root : copying winrm/tests/sample_script.ps1 -> build/lib/winrm/tests INFO : root : installing to build/bdist.linux-x86_64/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-x86_64 INFO : root : creating build/bdist.linux-x86_64/wheel INFO : root : creating build/bdist.linux-x86_64/wheel/winrm INFO : root : creating build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/sample_script.ps1 -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/__init__.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/conftest.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_cmd.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_encryption.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_integration_protocol.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_integration_session.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_nori_type_casting.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_powershell.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_protocol.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_session.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_transport.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : copying build/lib/winrm/tests/test_wql.py -> build/bdist.linux-x86_64/wheel/winrm/tests INFO : root : creating build/bdist.linux-x86_64/wheel/winrm/vendor INFO : root : creating build/bdist.linux-x86_64/wheel/winrm/vendor/requests_kerberos INFO : root : copying build/lib/winrm/vendor/requests_kerberos/__init__.py -> build/bdist.linux-x86_64/wheel/winrm/vendor/requests_kerberos INFO : root : copying build/lib/winrm/vendor/requests_kerberos/compat.py -> build/bdist.linux-x86_64/wheel/winrm/vendor/requests_kerberos INFO : root : copying build/lib/winrm/vendor/requests_kerberos/exceptions.py -> build/bdist.linux-x86_64/wheel/winrm/vendor/requests_kerberos INFO : root : copying build/lib/winrm/vendor/requests_kerberos/kerberos_.py -> build/bdist.linux-x86_64/wheel/winrm/vendor/requests_kerberos INFO : root : copying build/lib/winrm/vendor/__init__.py -> build/bdist.linux-x86_64/wheel/winrm/vendor INFO : root : copying build/lib/winrm/__init__.py -> build/bdist.linux-x86_64/wheel/winrm INFO : root : copying build/lib/winrm/encryption.py -> build/bdist.linux-x86_64/wheel/winrm INFO : root : copying build/lib/winrm/exceptions.py -> build/bdist.linux-x86_64/wheel/winrm INFO : root : copying build/lib/winrm/protocol.py -> build/bdist.linux-x86_64/wheel/winrm INFO : root : copying build/lib/winrm/transport.py -> build/bdist.linux-x86_64/wheel/winrm INFO : root : running install_egg_info INFO : root : running egg_info INFO : root : creating pywinrm.egg-info INFO : root : writing pywinrm.egg-info/PKG-INFO /usr/lib64/python3/site-packages/setuptools/_core_metadata.py:228: SetuptoolsDeprecationWarning: Ambiguity during "extra" normalization for dependencies. !! ******************************************************************************** 'kerberos' and 'kerberos' normalize to the same value: 'kerberos' In future versions, setuptools might halt the build process. See https://peps.python.org/pep-0685/ for details. ******************************************************************************** !! _write_provides_extra(file, processed_extras, extra, unsafe_extra) INFO : root : writing dependency_links to pywinrm.egg-info/dependency_links.txt INFO : root : writing requirements to pywinrm.egg-info/requires.txt INFO : root : writing top-level names to pywinrm.egg-info/top_level.txt INFO : root : writing manifest file 'pywinrm.egg-info/SOURCES.txt' INFO : root : reading manifest file 'pywinrm.egg-info/SOURCES.txt' INFO : root : reading manifest template 'MANIFEST.in' INFO : root : adding license file 'LICENSE' INFO : root : writing manifest file 'pywinrm.egg-info/SOURCES.txt' INFO : root : Copying pywinrm.egg-info to build/bdist.linux-x86_64/wheel/pywinrm-0.4.3-py3.12.egg-info INFO : root : running install_scripts INFO : root : creating build/bdist.linux-x86_64/wheel/pywinrm-0.4.3.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/python3-module-winrm-0.4.3/dist/.tmp-62_907i9/pywinrm-0.4.3-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it INFO : wheel : adding 'winrm/__init__.py' INFO : wheel : adding 'winrm/encryption.py' INFO : wheel : adding 'winrm/exceptions.py' INFO : wheel : adding 'winrm/protocol.py' INFO : wheel : adding 'winrm/transport.py' INFO : wheel : adding 'winrm/tests/__init__.py' INFO : wheel : adding 'winrm/tests/conftest.py' INFO : wheel : adding 'winrm/tests/sample_script.ps1' INFO : wheel : adding 'winrm/tests/test_cmd.py' INFO : wheel : adding 'winrm/tests/test_encryption.py' INFO : wheel : adding 'winrm/tests/test_integration_protocol.py' INFO : wheel : adding 'winrm/tests/test_integration_session.py' INFO : wheel : adding 'winrm/tests/test_nori_type_casting.py' INFO : wheel : adding 'winrm/tests/test_powershell.py' INFO : wheel : adding 'winrm/tests/test_protocol.py' INFO : wheel : adding 'winrm/tests/test_session.py' INFO : wheel : adding 'winrm/tests/test_transport.py' INFO : wheel : adding 'winrm/tests/test_wql.py' INFO : wheel : adding 'winrm/vendor/__init__.py' INFO : wheel : adding 'winrm/vendor/requests_kerberos/__init__.py' INFO : wheel : adding 'winrm/vendor/requests_kerberos/compat.py' INFO : wheel : adding 'winrm/vendor/requests_kerberos/exceptions.py' INFO : wheel : adding 'winrm/vendor/requests_kerberos/kerberos_.py' INFO : wheel : adding 'pywinrm-0.4.3.dist-info/LICENSE' INFO : wheel : adding 'pywinrm-0.4.3.dist-info/METADATA' INFO : wheel : adding 'pywinrm-0.4.3.dist-info/WHEEL' INFO : wheel : adding 'pywinrm-0.4.3.dist-info/top_level.txt' INFO : wheel : adding 'pywinrm-0.4.3.dist-info/RECORD' INFO : root : removing build/bdist.linux-x86_64/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: pywinrm-0.4.3-py2.py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.38283 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-winrm-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-winrm-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-winrm-0.4.3 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-winrm-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-winrm-0.4.3/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: pywinrm-0.4.3-py2.py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-winrm-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pywinrm-0.4.3.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pywinrm-0.4.3.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pywinrm-0.4.3.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: pywinrm-0.4.3.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + mkdir -p /usr/src/tmp/python3-module-winrm-buildroot/usr/bin + install -m755 /usr/src/RPM/SOURCES/winexe_py3winrm -t /usr/src/tmp/python3-module-winrm-buildroot/usr/bin + rm -r /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/tests/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-winrm-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-winrm-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-winrm-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-winrm-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-winrm-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-winrm-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-winrm-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-winrm-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/compat.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/exceptions.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/kerberos_.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/encryption.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/exceptions.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/protocol.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/transport.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-winrm-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/compat.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/exceptions.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/kerberos_.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/encryption.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/exceptions.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/protocol.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/transport.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-winrm-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/compat.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/exceptions.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/kerberos_.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/vendor/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/__init__.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/encryption.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/exceptions.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/protocol.py compile /usr/src/tmp/python3-module-winrm-buildroot/usr/lib/python3/site-packages/winrm/transport.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/winrm/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/__pycache__/encryption.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/__pycache__/encryption.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/__pycache__/exceptions.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/__pycache__/exceptions.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/__pycache__/transport.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/__pycache__/transport.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/__pycache__/transport.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/winrm/__pycache__/transport.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/winrm/vendor/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/vendor/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/vendor/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/winrm/vendor/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/compat.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/compat.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/exceptions.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/exceptions.cpython-312.pyc' './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/kerberos_.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/winrm/vendor/requests_kerberos/__pycache__/kerberos_.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.38283 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-winrm-0.4.3 + py.test3 -v winrm/tests/ ============================= test session starts ============================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /usr/src/RPM/BUILD/python3-module-winrm-0.4.3 configfile: setup.cfg collecting ... collected 67 items winrm/tests/test_encryption.py::test_init_with_invalid_protocol PASSED [ 1%] winrm/tests/test_encryption.py::test_encrypt_message PASSED [ 2%] winrm/tests/test_encryption.py::test_encrypt_large_credssp_message PASSED [ 4%] winrm/tests/test_encryption.py::test_decrypt_message PASSED [ 5%] winrm/tests/test_encryption.py::test_decrypt_message_boundary_with_end_hyphens PASSED [ 7%] winrm/tests/test_encryption.py::test_decrypt_message_length_mismatch PASSED [ 8%] winrm/tests/test_encryption.py::test_decrypt_large_credssp_message PASSED [ 10%] winrm/tests/test_encryption.py::test_decrypt_message_decryption_not_needed PASSED [ 11%] winrm/tests/test_encryption.py::test_get_credssp_trailer_length_gcm PASSED [ 13%] winrm/tests/test_encryption.py::test_get_credssp_trailer_length_md5_rc4 PASSED [ 14%] winrm/tests/test_encryption.py::test_get_credssp_trailer_length_sha256_3des PASSED [ 16%] winrm/tests/test_encryption.py::test_get_credssp_trailer_length_sha384_aes PASSED [ 17%] winrm/tests/test_encryption.py::test_get_credssp_trailer_length_no_hash PASSED [ 19%] winrm/tests/test_integration_protocol.py::test_unicode_roundtrip SKIPPED [ 20%] winrm/tests/test_integration_protocol.py::test_open_shell_and_close_shell SKIPPED [ 22%] winrm/tests/test_integration_protocol.py::test_run_command_with_arguments_and_cleanup_command SKIPPED [ 23%] winrm/tests/test_integration_protocol.py::test_run_command_without_arguments_and_cleanup_command SKIPPED [ 25%] winrm/tests/test_integration_protocol.py::test_run_command_with_env SKIPPED [ 26%] winrm/tests/test_integration_protocol.py::test_get_command_output SKIPPED [ 28%] winrm/tests/test_integration_protocol.py::test_run_command_taking_more_than_operation_timeout_sec SKIPPED [ 29%] winrm/tests/test_integration_protocol.py::test_set_timeout SKIPPED (...) [ 31%] winrm/tests/test_integration_protocol.py::test_set_max_env_size SKIPPED [ 32%] winrm/tests/test_integration_protocol.py::test_set_locale SKIPPED (W...) [ 34%] winrm/tests/test_integration_session.py::test_run_cmd XFAIL [ 35%] winrm/tests/test_protocol.py::test_open_shell_and_close_shell FAILED [ 37%] winrm/tests/test_protocol.py::test_run_command_with_arguments_and_cleanup_command FAILED [ 38%] winrm/tests/test_protocol.py::test_run_command_without_arguments_and_cleanup_command FAILED [ 40%] winrm/tests/test_protocol.py::test_get_command_output FAILED [ 41%] winrm/tests/test_protocol.py::test_send_command_input FAILED [ 43%] winrm/tests/test_protocol.py::test_set_timeout_as_sec PASSED [ 44%] winrm/tests/test_protocol.py::test_fail_set_read_timeout_as_sec PASSED [ 46%] winrm/tests/test_protocol.py::test_fail_set_operation_timeout_as_sec PASSED [ 47%] winrm/tests/test_session.py::test_run_cmd FAILED [ 49%] winrm/tests/test_session.py::test_run_ps_with_error FAILED [ 50%] winrm/tests/test_session.py::test_target_as_hostname PASSED [ 52%] winrm/tests/test_session.py::test_target_as_hostname_then_port PASSED [ 53%] winrm/tests/test_session.py::test_target_as_schema_then_hostname PASSED [ 55%] winrm/tests/test_session.py::test_target_as_schema_then_hostname_then_port PASSED [ 56%] winrm/tests/test_session.py::test_target_as_full_url PASSED [ 58%] winrm/tests/test_session.py::test_target_with_dots PASSED [ 59%] winrm/tests/test_session.py::test_decode_clixml_error PASSED [ 61%] winrm/tests/test_session.py::test_decode_clixml_no_clixml PASSED [ 62%] winrm/tests/test_session.py::test_decode_clixml_no_errors PASSED [ 64%] winrm/tests/test_session.py::test_decode_clixml_invalid_xml PASSED [ 65%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_ignore_1 PASSED [ 67%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_ignore_2 PASSED [ 68%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_override_1 PASSED [ 70%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_override_2 PASSED [ 71%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_override_3 PASSED [ 73%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_1 PASSED [ 74%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_2 PASSED [ 76%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_default PASSED [ 77%] winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_default_env PASSED [ 79%] winrm/tests/test_transport.py::TestTransport::test_build_session_invalid_auth PASSED [ 80%] winrm/tests/test_transport.py::TestTransport::test_build_session_invalid_encryption PASSED [ 82%] winrm/tests/test_transport.py::TestTransport::test_build_session_krb_delegation_as_invalid_str PASSED [ 83%] winrm/tests/test_transport.py::TestTransport::test_build_session_krb_delegation_as_str PASSED [ 85%] winrm/tests/test_transport.py::TestTransport::test_build_session_no_password PASSED [ 86%] winrm/tests/test_transport.py::TestTransport::test_build_session_no_username PASSED [ 88%] winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_defined PASSED [ 89%] winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_defined_and_env PASSED [ 91%] winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_none PASSED [ 92%] winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_with_env_http PASSED [ 94%] winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_with_env_https PASSED [ 95%] winrm/tests/test_transport.py::TestTransport::test_build_session_server_cert_validation_invalid PASSED [ 97%] winrm/tests/test_transport.py::TestTransport::test_close_session PASSED [ 98%] winrm/tests/test_transport.py::TestTransport::test_close_session_not_built PASSED [100%] =================================== FAILURES =================================== _______________________ test_open_shell_and_close_shell ________________________ protocol_fake = def test_open_shell_and_close_shell(protocol_fake): shell_id = protocol_fake.open_shell() assert shell_id == '11111111-1111-1111-1111-111111111113' > protocol_fake.close_shell(shell_id, close_session=True) winrm/tests/test_protocol.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception _____________ test_run_command_with_arguments_and_cleanup_command ______________ protocol_fake = def test_run_command_with_arguments_and_cleanup_command(protocol_fake): shell_id = protocol_fake.open_shell() command_id = protocol_fake.run_command(shell_id, 'ipconfig', ['/all']) assert command_id == '11111111-1111-1111-1111-111111111114' protocol_fake.cleanup_command(shell_id, command_id) > protocol_fake.close_shell(shell_id) winrm/tests/test_protocol.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception ____________ test_run_command_without_arguments_and_cleanup_command ____________ protocol_fake = def test_run_command_without_arguments_and_cleanup_command(protocol_fake): shell_id = protocol_fake.open_shell() command_id = protocol_fake.run_command(shell_id, 'hostname') assert command_id == '11111111-1111-1111-1111-111111111114' protocol_fake.cleanup_command(shell_id, command_id) > protocol_fake.close_shell(shell_id) winrm/tests/test_protocol.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception ___________________________ test_get_command_output ____________________________ protocol_fake = def test_get_command_output(protocol_fake): shell_id = protocol_fake.open_shell() command_id = protocol_fake.run_command(shell_id, 'ipconfig', ['/all']) std_out, std_err, status_code = protocol_fake.get_command_output( shell_id, command_id) assert status_code == 0 assert b'Windows IP Configuration' in std_out assert len(std_err) == 0 protocol_fake.cleanup_command(shell_id, command_id) > protocol_fake.close_shell(shell_id) winrm/tests/test_protocol.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception ___________________________ test_send_command_input ____________________________ protocol_fake = def test_send_command_input(protocol_fake): shell_id = protocol_fake.open_shell() command_id = protocol_fake.run_command(shell_id, u'cmd') protocol_fake.send_command_input(shell_id, command_id, u'echo "hello world" && exit\r\n') std_out, std_err, status_code = protocol_fake.get_command_output( shell_id, command_id) assert status_code == 0 assert b'hello world' in std_out assert len(std_err) == 0 protocol_fake.cleanup_command(shell_id, command_id) > protocol_fake.close_shell(shell_id) winrm/tests/test_protocol.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception _________________________________ test_run_cmd _________________________________ protocol_fake = def test_run_cmd(protocol_fake): # TODO this test should cover __init__ method s = Session('windows-host', auth=('john.smith', 'secret')) s.protocol = protocol_fake > r = s.run_cmd('ipconfig', ['/all']) winrm/tests/test_session.py:11: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/__init__.py:44: in run_cmd self.protocol.close_shell(shell_id) winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception ____________________________ test_run_ps_with_error ____________________________ protocol_fake = def test_run_ps_with_error(protocol_fake): # TODO this test should cover __init__ method s = Session('windows-host', auth=('john.smith', 'secret')) s.protocol = protocol_fake > r = s.run_ps('Write-Error "Error"') winrm/tests/test_session.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ winrm/__init__.py:53: in run_ps rs = self.run_cmd('powershell -encodedcommand {0}'.format(encoded_ps)) winrm/__init__.py:44: in run_cmd self.protocol.close_shell(shell_id) winrm/protocol.py:305: in close_shell res = self.send_message(xmltodict.unparse(req)) winrm/protocol.py:243: in send_message resp = self.transport.send_message(message) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = message = '\n11111111-1111-1111-1111-111111111113' def send_message(self, message): if xml_str_compare(message, open_shell_request): return open_shell_response elif xml_str_compare(message, close_shell_request): return close_shell_response elif xml_str_compare( message, run_cmd_with_args_request) or xml_str_compare( message, run_cmd_wo_args_request): return run_cmd_ps_response % '1' elif xml_str_compare(message, run_ps_request): return run_cmd_ps_response % '2' elif xml_str_compare( message, cleanup_cmd_request % '1') or xml_str_compare( message, cleanup_cmd_request % '2'): return cleanup_cmd_response elif xml_str_compare(message, get_cmd_ps_output_request % '1'): return get_cmd_output_response elif xml_str_compare(message, get_cmd_ps_output_request % '2'): return get_ps_output_response elif xml_str_compare(message, run_cmd_req_input): return run_cmd_req_input_response elif xml_str_compare(message, run_cmd_send_input): return run_cmd_send_input_response elif xml_str_compare(message, run_cmd_send_input_get_output): return run_cmd_send_input_get_output_response elif xml_str_compare(message, stdin_cmd_cleanup): return stdin_cmd_cleanup_response else: > raise Exception('Message was not expected\n\n%s' % message) E Exception: Message was not expected E E E http://windows-host:5985/wsmanhttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous153600uuid:11111111-1111-1111-1111-111111111111PT20Shttp://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmdhttp://schemas.xmlsoap.org/ws/2004/09/transfer/Delete11111111-1111-1111-1111-111111111113 winrm/tests/conftest.py:542: Exception =============================== warnings summary =============================== ../../../../lib/python3/site-packages/_pytest/config/__init__.py:1441 /usr/lib/python3/site-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: flake8-ignore self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") ../../../../lib/python3/site-packages/_pytest/config/__init__.py:1441 /usr/lib/python3/site-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: flake8-max-line-length self._warn_or_fail_if_strict(f"Unknown config option: {key}\n") winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_1 winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_default_env /usr/src/RPM/BUILD/python3-module-winrm-0.4.3/winrm/transport.py:220: DeprecationWarning: 'pywinrm' will use an environment variable defined CA Trust. This feature will be disabled in the future, please specify it explicitly. REQUESTS_CA_BUNDLE contains path_to_REQUESTS_CA_CERT warnings.warn(message, DeprecationWarning) winrm/tests/test_transport.py::TestTransport::test_build_session_cert_validate_2 /usr/src/RPM/BUILD/python3-module-winrm-0.4.3/winrm/transport.py:220: DeprecationWarning: 'pywinrm' will use an environment variable defined CA Trust. This feature will be disabled in the future, please specify it explicitly. CURL_CA_BUNDLE contains path_to_CURL_CA_CERT warnings.warn(message, DeprecationWarning) winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_with_env_http /usr/src/RPM/BUILD/python3-module-winrm-0.4.3/winrm/transport.py:194: DeprecationWarning: 'pywinrm' will use an environment defined proxy. This feature will be disabled in the future, please specify it explicitly. HTTP proxy random_proxy discovered. warnings.warn(message, DeprecationWarning) winrm/tests/test_transport.py::TestTransport::test_build_session_proxy_with_env_https /usr/src/RPM/BUILD/python3-module-winrm-0.4.3/winrm/transport.py:194: DeprecationWarning: 'pywinrm' will use an environment defined proxy. This feature will be disabled in the future, please specify it explicitly. HTTPS proxy random_proxy discovered. warnings.warn(message, DeprecationWarning) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED winrm/tests/test_protocol.py::test_open_shell_and_close_shell - Except... FAILED winrm/tests/test_protocol.py::test_run_command_with_arguments_and_cleanup_command FAILED winrm/tests/test_protocol.py::test_run_command_without_arguments_and_cleanup_command FAILED winrm/tests/test_protocol.py::test_get_command_output - Exception: Mes... FAILED winrm/tests/test_protocol.py::test_send_command_input - Exception: Mes... FAILED winrm/tests/test_session.py::test_run_cmd - Exception: Message was not... FAILED winrm/tests/test_session.py::test_run_ps_with_error - Exception: Messa... ======= 7 failed, 49 passed, 10 skipped, 1 xfailed, 7 warnings in 0.21s ======== error: Bad exit status from /usr/src/tmp/rpm-tmp.38283 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.38283 (%check) Command exited with non-zero status 1 1.06user 0.49system 0:01.51elapsed 103%CPU (0avgtext+0avgdata 43216maxresident)k 0inputs+0outputs (0major+97715minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-winrm-0.4.3-alt2.src.rpm' failed. Command exited with non-zero status 1 4.47user 3.31system 0:14.32elapsed 54%CPU (0avgtext+0avgdata 136524maxresident)k 32inputs+0outputs (0major+315644minor)pagefaults 0swaps