diff options
author | nateatkins <nateatkins@cakeinsure.com> | 2018-11-25 12:05:27 -0700 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2019-07-21 18:35:04 +0200 |
commit | b7662039d191ebb6a4061c276e78999e2da7cd3f (patch) | |
tree | 470b4623abc492f387302b8cee95a245a24fa617 /tools/cli_test_v4.sh | |
parent | 8f1ed933f58f36b5383c3f862a59ce73e7954f02 (diff) | |
download | gitlab-project-variable-update.tar.gz |
fix(cli): fix update value for key not workingproject-variable-update
Diffstat (limited to 'tools/cli_test_v4.sh')
-rwxr-xr-x[-rw-r--r--] | tools/cli_test_v4.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/cli_test_v4.sh b/tools/cli_test_v4.sh index b62e5cd..dea0509 100644..100755 --- a/tools/cli_test_v4.sh +++ b/tools/cli_test_v4.sh @@ -89,6 +89,31 @@ testcase "merge request validation" ' --iid "$MR_ID" >/dev/null 2>&1 ' +# Test project variables +testcase "create project variable" ' + OUTPUT=$(GITLAB -v project-variable create --project-id $PROJECT_ID \ + --key junk --value car) +' + +testcase "get project variable" ' + OUTPUT=$(GITLAB -v project-variable get --project-id $PROJECT_ID \ + --key junk) +' + +testcase "update project variable" ' + OUTPUT=$(GITLAB -v project-variable update --project-id $PROJECT_ID \ + --key junk --value bus) +' + +testcase "list project variable" ' + OUTPUT=$(GITLAB -v project-variable list --project-id $PROJECT_ID) +' + +testcase "delete project variable" ' + OUTPUT=$(GITLAB -v project-variable delete --project-id $PROJECT_ID \ + --key junk) +' + testcase "branch deletion" ' GITLAB project-branch delete --project-id "$PROJECT_ID" \ --name branch1 >/dev/null 2>&1 |