Skip to content

Commit fd696af

Browse files
committed
Change acceptance test token value
The personal access token must be a certain length in order to use it as a Bearer token
1 parent cc57e8e commit fd696af

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TEST?=./gitlab
22
SERVICE?=gitlab-ce
3-
GITLAB_TOKEN?=ACCTEST
3+
GITLAB_TOKEN?=ACCTEST1234567890123
44
GITLAB_BASE_URL?=http://127.0.0.1:8080/api/v4
55
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $ make testacc GITLAB_TOKEN=example123 GITLAB_BASE_URL=https://example.com/api/v
106106
Then run the desired Go test as you would normally from your IDE, but configure your run configuration to set these environment variables:
107107

108108
```
109-
GITLAB_TOKEN=ACCTEST
109+
GITLAB_TOKEN=ACCTEST1234567890123
110110
GITLAB_BASE_URL=http://127.0.0.1:8080/api/v4
111111
TF_ACC=1
112112
```

scripts/await-healthy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ echo
1111
echo 'GitLab is healthy'
1212

1313
# Print the version, since it is useful debugging information.
14-
curl --silent --show-error --header 'PRIVATE-TOKEN: ACCTEST' http://127.0.0.1:8080/api/v4/version
14+
curl --silent --show-error --header 'Authorization: Bearer ACCTEST1234567890123' http://127.0.0.1:8080/api/v4/version
1515
echo

scripts/healthcheck-and-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test -f $done || {
2424
printf 'user_id: 1, '
2525
printf 'scopes: [:api, :read_user], '
2626
printf 'name: :terraform);'
27-
printf "terraform_token.set_token('ACCTEST');"
27+
printf "terraform_token.set_token('ACCTEST1234567890123');"
2828
printf 'terraform_token.save!;'
2929
) | gitlab-rails console
3030

0 commit comments

Comments
 (0)