File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -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)
You can’t perform that action at this time.
0 commit comments