Skip to content

Commit

Permalink
fix pipeline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fauna-chase committed Nov 2, 2023
1 parent a25ce51 commit c6035fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion concourse/scripts/wait-for-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ until $(curl -m 1 --output /dev/null --silent --head --fail $1); do
exit 1
fi

printf '.'
echo "."
attempt_counter=$(($attempt_counter+1))
sleep 5
done
Expand Down
5 changes: 4 additions & 1 deletion concourse/tasks/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ platform: linux
image_resource:
type: registry-image
source:
repository: karlkfi/concourse-dcind
repository: shared-concourse-dind
aws_access_key_id: ((prod-images-aws-access-key-id))
aws_secret_access_key: ((prod-images-aws-secret-key))
aws_region: us-east-2

params:
FAUNA_SECRET:
Expand Down
9 changes: 5 additions & 4 deletions concourse/tasks/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ services:
working_dir: "/tmp/app"
command:
- sh
- -c
- apk add curl
- concourse/scripts/wait-for-it.sh http://core:8443/ping
- yarn install && yarn run test
- -cx
- |
apk add curl
concourse/scripts/wait-for-it.sh http://core:8443/ping
yarn install && yarn run test
3 changes: 1 addition & 2 deletions src/lib/fauna-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ class FaunaCommand extends Command {
role
);
const endpoint = new URL(
`${connectionOptions.scheme ?? "https"}://${
connectionOptions.domain
`${connectionOptions.scheme ?? "https"}://${connectionOptions.domain
}:${connectionOptions.port ?? 443}`
);
const client = new FaunaClient(
Expand Down

0 comments on commit c6035fc

Please sign in to comment.