Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGES/+filter-cli-livetest.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Filter pulp-cli livetest runs to the plugin under test when using pulp-cli 0.40.0+.
5 changes: 3 additions & 2 deletions templates/github/.github/workflows/scripts/script.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,14 @@ export PULP_FIXTURES_URL="http://pulp-fixtures:8080"
{%- endif %}
# some pulp-cli tests use the api root envvar
export PULP_API_ROOT="$(EDITOR=cat pulp config edit 2>/dev/null | awk -F'"' '/api_root/{print $2; exit}')"
{%- set cli_plugin_markers = plugins | map(attribute='name') | join(' or ') | snake %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

pushd ../{{ cli_package }}
if [[ -f "test_requirements.txt" ]]
then
pip install -r test_requirements.txt
pytest -v tests -m "{{ plugins | map(attribute='name') | join(' or ') | snake }}"
pytest -v tests -m "{{ cli_plugin_markers }}"
else
PULP_CA_BUNDLE="/usr/local/share/ca-certificates/pulp_webserver.crt" make livetest
PULP_CA_BUNDLE="/usr/local/share/ca-certificates/pulp_webserver.crt" make livetest PYTEST_MARK="live and ({{ cli_plugin_markers }})"
fi
popd
{%- endif %}
Expand Down