Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,83 +13,6 @@
"gunicorn"
],
"operatingsystem_support": [
{
"operatingsystem": "AIX",
"operatingsystemrelease": [
"6100-09-11-1810",
"7100-05-03-1837"
]
},
{
"operatingsystem": "AlmaLinux",
"operatingsystemrelease": [
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10",
"11",
"12"
]
},
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"11",
"12",
"13",
"14"
]
},
{
"operatingsystem": "Gentoo"
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04",
"22.04"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"8",
"9"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"8",
"9"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
"8",
"9"
]
},
{
"operatingsystem": "SLES",
"operatingsystemrelease": [
"11.3"
]
},
{
"operatingsystem": "Archlinux"
}
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/pip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe 'python::pip defined resource' do
context 'install package with custom name' do
it 'works with no errors' do

Check failure on line 7 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource install package with custom name works with no errors Failure/Error: apply_manifest(pp, catch_failures: true, debug: true) Beaker::Host::CommandFailure: Host 'archlinuxrolling-64.example.com' exited with 6 running: puppet apply --debug --detailed-exitcodes /tmp/apply_manifest_202016079.kIo15D.pp Last 10 lines of output were: Debug: Stage[main]: Resource is being skipped, unscheduling all events Debug: Finishing transaction 14380 Debug: Storing state Debug: Pruned old state cache entries in 0.00 seconds Debug: Stored state in 0.00 seconds �[mNotice: Applied catalog in 3.82 seconds Debug: Applying settings catalog for sections reporting, metrics Debug: Finishing transaction 14420 Debug: Received report to process from archlinuxrolling-64.example.com Debug: Processing report from archlinuxrolling-64.example.com with processor Puppet::Reports::Store
pp = <<-PUPPET
class { 'python':
dev => 'present',
Expand All @@ -24,20 +24,20 @@
}
PUPPET

apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
apply_manifest(pp, catch_failures: true, debug: true)
apply_manifest(pp, catch_changes: true, debug: true)
end
end

# rubocop:disable RSpec/RepeatedExampleGroupDescription
# rubocop:disable RSpec/RepeatedExampleGroupBody
describe command('/opt/test-venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }

Check failure on line 35 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource Command "/opt/test-venv/bin/pip list" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
its(:stdout) { is_expected.to match %r{agent.* 0\.1\.2} }

Check failure on line 36 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource Command "/opt/test-venv/bin/pip list" stdout is expected to match /agent.* 0\.1\.2/ Failure/Error: its(:stdout) { is_expected.to match %r{agent.* 0\.1\.2} } expected "" to match /agent.* 0\.1\.2/ Diff: @@ -1 +1 @@ -/agent.* 0\.1\.2/ +""
end

context 'uninstall package with custom name' do
it 'works with no errors' do

Check failure on line 40 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource uninstall package with custom name works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'archlinuxrolling-64.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_202022070.stuoGP.pp Last 10 lines of output were: �[mNotice: /Stage[main]/Main/Python::Pip[agent package install]/Exec[pip_install_agent package install]/returns: File "/opt/test-venv/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> �[mNotice: /Stage[main]/Main/Python::Pip[agent package install]/Exec[pip_install_agent package install]/returns: from pip._internal.cli import cmdoptions �[mNotice: /Stage[main]/Main/Python::Pip[agent package install]/Exec[pip_install_agent package install]/returns: File "/opt/test-venv/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 18, in <module> �[mNotice: /Stage[main]/Main/Python::Pip[agent package install]/Exec[pip_install_agent package install]/returns: from distutils.util import strtobool �[mNotice: /Stage[main]/Main/Python::Pip[agent package install]/Exec[pip_install_agent package install]/returns: ModuleNotFoundError: No module named 'distutils' Error: '/opt/test-venv/bin/pip --log /opt/test-venv/pip.log install agent==0.1.2' returned 1 instead of one of [0] Error: /Stage[main]/Main/Python::Pip[agent package install]/Exec[pip_install_agent package install]/returns: change from 'notrun' to ['0'] failed: '/opt/test-venv/bin/pip --log /opt/test-venv/pip.log install agent==0.1.2' returned 1 instead of one of [0] �[mNotice: /Stage[main]/Main/Python::Pip[agent package uninstall custom pkgname]/Exec[pip_uninstall_agent package uninstall custom pkgname]: Dependency Exec[pip_install_agent package install] has failures: true Warning: /Stage[main]/Main/Python::Pip[agent package uninstall custom pkgname]/Exec[pip_uninstall_agent package uninstall custom pkgname]: Skipping because of failed dependencies �[mNotice: Applied catalog in 0.54 seconds
pp = <<-PUPPET
class { 'python':
dev => 'present',
Expand Down Expand Up @@ -70,12 +70,12 @@
end

describe command('/opt/test-venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }

Check failure on line 73 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource Command "/opt/test-venv/bin/pip list" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
its(:stdout) { is_expected.not_to match %r{agent.* 0\.1\.2} }
end

context 'fails to install package with wrong version' do
it 'throws an error' do

Check failure on line 78 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource fails to install package with wrong version throws an error Failure/Error: expect(result.stderr).to contain(%r{returned 1 instead of one of}) expected "\e[1;33mWarning: Facter: Container runtime, 'docker', is unsupported, setting to 'container_other'\e...:Pip[agent package]/Exec[pip_install_agent package]: Skipping because of failed dependencies\e[0m\n" to contain /returned 1 instead of one of/
pp = <<-PUPPET
class { 'python':
version => '3',
Expand Down Expand Up @@ -106,7 +106,7 @@
end

context 'install package via extra_index' do
it 'works with no errors' do

Check failure on line 109 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource install package via extra_index works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'archlinuxrolling-64.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_202028180.FHhsQf.pp Last 10 lines of output were: �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: File "/opt/test-venv/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module> �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: from pip._internal.cli.main_parser import create_main_parser �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: File "/opt/test-venv/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: from pip._internal.cli import cmdoptions �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: File "/opt/test-venv/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 18, in <module> �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: from distutils.util import strtobool �[mNotice: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: ModuleNotFoundError: No module named 'distutils' Error: '/opt/test-venv/bin/pip --log /opt/test-venv/pip.log install --index-url=invalid --extra-index-url=https://pypi.org/simple agent==0.1.2' returned 1 instead of one of [0] Error: /Stage[main]/Main/Python::Pip[agent package via extra_index]/Exec[pip_install_agent package via extra_index]/returns: change from 'notrun' to ['0'] failed: '/opt/test-venv/bin/pip --log /opt/test-venv/pip.log install --index-url=invalid --extra-index-url=https://pypi.org/simple agent==0.1.2' returned 1 instead of one of [0] �[mNotice: Applied catalog in 0.54 seconds
pp = <<-PUPPET
class { 'python':
dev => 'present',
Expand Down Expand Up @@ -134,8 +134,8 @@
end

describe command('/opt/test-venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }

Check failure on line 137 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource Command "/opt/test-venv/bin/pip list" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
its(:stdout) { is_expected.to match %r{agent.* 0\.1\.2} }

Check failure on line 138 in spec/acceptance/pip_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Distro Puppet - Archlinux rolling

python::pip defined resource Command "/opt/test-venv/bin/pip list" stdout is expected to match /agent.* 0\.1\.2/ Failure/Error: its(:stdout) { is_expected.to match %r{agent.* 0\.1\.2} } expected "" to match /agent.* 0\.1\.2/ Diff: @@ -1 +1 @@ -/agent.* 0\.1\.2/ +""
end
# rubocop:enable RSpec/RepeatedExampleGroupBody
# rubocop:enable RSpec/RepeatedExampleGroupDescription
Expand Down
Loading