diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-23 00:06:01 +0200 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-23 00:06:01 +0200 |
commit | e6c9fe920df43ae2ab13f26310213e8e4db6b415 (patch) | |
tree | 0c6481f5dd5ae21b9800402b9c933915e17a6f35 | |
parent | dc382fe3443a797e016f8c5f6eac68b7b69305ab (diff) | |
download | gitlab-e6c9fe920df43ae2ab13f26310213e8e4db6b415.tar.gz |
chore(test): remove outdated token testchore/signature-gpg-x509
-rwxr-xr-x | tools/cli_test_v4.sh | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/cli_test_v4.sh b/tools/cli_test_v4.sh index ac43837..725e418 100755 --- a/tools/cli_test_v4.sh +++ b/tools/cli_test_v4.sh @@ -218,23 +218,18 @@ testcase "values from files" ' CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT=$(GITLAB -v project-deploy-token create --project-id $PROJECT_ID \ --name foo --username root --expires-at "2021-09-09" --scopes "read_registry") CREATED_DEPLOY_TOKEN_ID=$(echo "$CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT" | grep ^id: | cut -d" " -f2) -testcase "create project deploy token" ' +testcase "create project deploy token (name)" ' echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "name: foo" ' -testcase "create project deploy token" ' +testcase "create project deploy token (expires-at)" ' echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "expires-at: 2021-09-09T00:00:00.000Z" ' -testcase "create project deploy token" ' +testcase "create project deploy token (scopes)" ' echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep "scopes: " | grep -q "read_registry" ' -# Uncomment once https://gitlab.com/gitlab-org/gitlab/-/issues/211963 is fixed -#testcase "create project deploy token" ' -# echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "username: root" -#' -# Remove once https://gitlab.com/gitlab-org/gitlab/-/issues/211963 is fixed -testcase "create project deploy token" ' - echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "gitlab+deploy-token" +testcase "create project deploy token (username)" ' + echo $CREATE_PROJECT_DEPLOY_TOKEN_OUTPUT | grep -q "username: root" ' LIST_DEPLOY_TOKEN_OUTPUT=$(GITLAB -v deploy-token list) |