Skip to content

Commit

Permalink
repo-auth - change exit code expectation on unauthorized repo
Browse files Browse the repository at this point in the history
  • Loading branch information
iNecas committed Feb 6, 2012
1 parent 1f7d8d6 commit b9269da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/system-test/cli_tests/repo.sh
Expand Up @@ -13,12 +13,12 @@ test_success "repo synchronize" repo synchronize --id="$REPO_ID"

PACKAGE_URL=https://localhost/pulp/repos/$TEST_ORT/$TEST_ORG/Library/$FEWUPS_PRODUCT/$REPO_NAME/lion-0.3-0.8.noarch.rpm
REPO_STATUS_CODE=`curl $PACKAGE_URL -k --write-out '%{http_code}' -s -o /dev/null`
if [ $REPO_STATUS_CODE != '401' ]; then
if [ $REPO_STATUS_CODE != '403' ]; then
msg_status "repo secured" "${txtred}FAILED${txtrst}"
echo "We expected the pulp repo to be sucured (status code 401), got $REPO_STATUS_CODE"
echo "We expected the pulp repo to be sucured (status code 403), got $REPO_STATUS_CODE"
let failed_cnt+=1
fi

test_success "repo filter_list" repo list_filters --org="$TEST_ORG" --id="$REPO_ID"
test_success "repo add_filter" repo add_filter --org="$TEST_ORG" --id="$REPO_ID" --filter="$FILTER1"
test_success "repo remove_filter" repo remove_filter --org="$TEST_ORG" --id="$REPO_ID" --filter="$FILTER1"
test_success "repo remove_filter" repo remove_filter --org="$TEST_ORG" --id="$REPO_ID" --filter="$FILTER1"

0 comments on commit b9269da

Please sign in to comment.