diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-03-05 17:35:41 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-03-05 17:35:41 +0100 |
commit | 748d57ee64036305a84301db7211b713c1995391 (patch) | |
tree | 1ecb834a0db215a1bbb784f3e8d45ad2ab80f183 /tools | |
parent | c7b3f969fc3fcf9d057a23638d121f51513bb13c (diff) | |
download | gitlab-748d57ee64036305a84301db7211b713c1995391.tar.gz |
[cli] Allow to read args from files
With the @/file/path syntax (similar to curl) user can provide values
from attributes in files.
Fixes #448
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cli_test_v4.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/cli_test_v4.sh b/tools/cli_test_v4.sh index 01f84e8..b62e5cd 100644 --- a/tools/cli_test_v4.sh +++ b/tools/cli_test_v4.sh @@ -108,5 +108,16 @@ testcase "application settings get" ' ' testcase "application settings update" ' - GITLAB application-settings update --signup-enabled false + GITLAB application-settings update --signup-enabled false >/dev/null 2>&1 +' + +cat > /tmp/gitlab-project-description << EOF +Multi line + +Data +EOF +testcase "values from files" ' + OUTPUT=$(GITLAB -v project create --name fromfile \ + --description @/tmp/gitlab-project-description) + echo $OUTPUT | grep -q "Multi line" ' |