-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/spanner/uplink: add basic spanner integration test
Change-Id: I8e72a7ff6cccc49a16526f24ca19cdbd152625f4
- Loading branch information
1 parent
cf396e7
commit ed06330
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
VERSION 0.6 | ||
# integration tests | ||
test: | ||
FROM earthly/dind:ubuntu | ||
WORKDIR /go/storj-up | ||
COPY ../../../+build-app/storj-up . | ||
# setup test environment | ||
RUN /go/storj-up/storj-up init minimal,db,spanner,uplink | ||
COPY . . | ||
WITH DOCKER --compose docker-compose.yaml | ||
RUN docker compose exec -T -u 0 uplink bash -c 'storj-up health --host cockroach -d 120' && \ | ||
docker compose exec -T -u 0 uplink bash -c 'storj-up credentials -s satellite-api:7777 -c satellite-api:10000 -e >> ~/.bashrc' && \ | ||
< basic_upload_download.sh docker compose exec -T -u 0 uplink bash -i | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
dd if=/dev/random of=data count=10240 bs=1024 | ||
sha256sum data > sha256.sum | ||
|
||
BUCKET=buckett$RANDOM | ||
uplink --interactive=false mb sj://$BUCKET | ||
uplink --interactive=false cp data sj://$BUCKET/data | ||
|
||
rm data | ||
uplink --interactive=false cp sj://$BUCKET/data data | ||
sha256sum -c sha256.sum |