@@ -113,11 +113,11 @@ testcase "revert commit" '
113113 --id "$COMMIT_ID" --branch master
114114'
115115
116- # Test commit GPG signature
117- testcase " attempt to get GPG signature of unsigned commit" '
116+ # Test commit signature
117+ testcase " attempt to get signature of unsigned commit" '
118118 OUTPUT=$(GITLAB project-commit signature --project-id "$PROJECT_ID" \
119119 --id "$COMMIT_ID" 2>&1 || exit 0)
120- echo "$OUTPUT" | grep -q "404 GPG Signature Not Found"
120+ echo "$OUTPUT" | grep -q "404 Signature Not Found"
121121'
122122
123123# Test project labels
@@ -218,23 +218,18 @@ testcase "values from files" '
218218CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT=$( GITLAB -v project-deploy-token create --project-id $PROJECT_ID \
219219 --name foo --username root --expires-at " 2021-09-09" --scopes " read_registry" )
220220CREATED_DEPLOY_TOKEN_ID=$( echo " $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT " | grep ^id: | cut -d" " -f2)
221- testcase " create project deploy token" '
221+ testcase " create project deploy token (name) " '
222222 echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "name: foo"
223223'
224- testcase " create project deploy token" '
224+ testcase " create project deploy token (expires-at) " '
225225 echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "expires-at: 2021-09-09T00:00:00.000Z"
226226'
227- testcase " create project deploy token" '
227+ testcase " create project deploy token (scopes) " '
228228 echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep "scopes: " | grep -q "read_registry"
229229'
230- # Uncomment once https://gitlab.com/gitlab-org/gitlab/-/issues/211963 is fixed
231- # testcase "create project deploy token" '
232- # echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "username: root"
233- # '
234230
235- # Remove once https://gitlab.com/gitlab-org/gitlab/-/issues/211963 is fixed
236- testcase " create project deploy token" '
237- echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "gitlab+deploy-token"
231+ testcase " create project deploy token (username)" '
232+ echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "username: root"
238233'
239234
240235LIST_DEPLOY_TOKEN_OUTPUT=$( GITLAB -v deploy-token list)
0 commit comments