Skip to content

Commit e6c9fe9

Browse files
committed
chore(test): remove outdated token test
1 parent dc382fe commit e6c9fe9

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tools/cli_test_v4.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,18 @@ testcase "values from files" '
218218
CREATE_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")
220220
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)" '
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

240235
LIST_DEPLOY_TOKEN_OUTPUT=$(GITLAB -v deploy-token list)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy