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" '
218
218
CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT=$( GITLAB -v project-deploy-token create --project-id $PROJECT_ID \
219
219
--name foo --username root --expires-at " 2021-09-09" --scopes " read_registry" )
220
220
CREATED_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) " '
222
222
echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "name: foo"
223
223
'
224
- testcase " create project deploy token" '
224
+ testcase " create project deploy token (expires-at) " '
225
225
echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "expires-at: 2021-09-09T00:00:00.000Z"
226
226
'
227
- testcase " create project deploy token" '
227
+ testcase " create project deploy token (scopes) " '
228
228
echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep "scopes: " | grep -q "read_registry"
229
229
'
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
- # '
234
230
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"
238
233
'
239
234
240
235
LIST_DEPLOY_TOKEN_OUTPUT=$( GITLAB -v deploy-token list)
You can’t perform that action at this time.
0 commit comments