Skip to content

Commit

Permalink
Update RPM auto-publish tests
Browse files Browse the repository at this point in the history
fixes: pulp#251
  • Loading branch information
gerrod3 committed May 20, 2021
1 parent 3be6072 commit fca3e71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/251.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated RPM auto-publish tests for future versions >=3.13.0.dev
1 change: 1 addition & 0 deletions pulpcore/cli/rpm/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def distribution(ctx: click.Context, pulp_ctx: PulpContext, distribution_type: s
update_options = [
click.option("--base-path"),
click.option("--publication"),
click.option("--repository", callback=_repository_callback),
]

distribution.add_command(list_command(decorators=filter_options))
Expand Down
10 changes: 7 additions & 3 deletions tests/scripts/pulp_rpm/test_rpm_sync_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ then
--repository "cli_test_rpm_repository"

expect_succ pulp rpm repository sync --name "cli_test_rpm_repository"

expect_succ pulp rpm distribution show --name "cli_test_rpm_distro"
echo "$OUTPUT" | jq -r ".publication" | grep -q '/pulp/api/v3/publications/rpm/rpm/'
expect_succ pulp rpm publication list
test "$(echo "$OUTPUT" | jq -r '.length')" -eq 1
if [ "$(pulp debug has-plugin --name "rpm" --max-version "3.13.0.dev")" = "true" ]
then
expect_succ pulp rpm distribution show --name "cli_test_rpm_distro"
echo "$OUTPUT" | jq -r ".publication" | grep -q '/pulp/api/v3/publications/rpm/rpm/'
fi
fi

0 comments on commit fca3e71

Please sign in to comment.