Skip to content
Open
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
25 changes: 22 additions & 3 deletions tests/scripts/pulp_deb/test_deb_sync_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ if pulp debug has-plugin --name deb --min-version 2.20.0.dev; then
fi

expect_succ pulp deb publication create \
--repository "${ENTITIES_NAME}_repo" \
--simple
--repository "${ENTITIES_NAME}_repo"

test "$(echo "${OUTPUT}" | jq -r '.checkpoint')" = "false"
test "$(echo "${OUTPUT}" | jq -r '.structured')" = "true"
test "$(echo "${OUTPUT}" | jq -r '.simple')" = "false"

PUBLICATION_HREF=$(echo "$OUTPUT" | jq -r .pulp_href)

Expand All @@ -48,5 +51,21 @@ expect_succ pulp deb distribution create --name "${ENTITIES_NAME}_distro" \

expect_succ pulp deb distribution destroy --name "${ENTITIES_NAME}_distro"
expect_succ pulp deb publication destroy --href "${PUBLICATION_HREF}"
expect_succ pulp deb repository destroy --name "${ENTITIES_NAME}_repo"
expect_succ pulp deb remote destroy --name "${ENTITIES_NAME}_remote"


# Test more unusual publication options:

expect_succ pulp deb publication create \
--repository "${ENTITIES_NAME}_repo" \
--checkpoint \
--simple \
--no-structured

test "$(echo "${OUTPUT}" | jq -r '.checkpoint')" = "true"
test "$(echo "${OUTPUT}" | jq -r '.structured')" = "false"
test "$(echo "${OUTPUT}" | jq -r '.simple')" = "true"

PUBLICATION_HREF=$(echo "$OUTPUT" | jq -r .pulp_href)
expect_succ pulp deb publication destroy --href "${PUBLICATION_HREF}"
expect_succ pulp deb repository destroy --name "${ENTITIES_NAME}_repo"
Loading