Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test validate the buftoken is there #19

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions tests/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/usr/bin/env bash
set -euxo pipefail
#set -euxo pipefail

substreams init --state-file /app/generator.json --force-download-cwd

substreams build

## To validate the manifest
substreams info
if [[ ${#BUF_TOKEN} == 0 ]]; then
echo "BUF_TOKEN is not set"
exit 1
fi
#substreams init --state-file /app/generator.json --force-download-cwd
#
#substreams build
#
### To validate the manifest
#substreams info
#
2 changes: 2 additions & 0 deletions tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ func runTestsInDocker(t *testing.T, cases []struct {
fmt.Sprintf("%s:/app/generator.json", c.stateFile),
"-e",
"SUBSTREAMS_CODEGEN_ENDPOINT=" + endpoint,
"-e",
"BUF_TOKEN=" + os.Getenv("BUF_TOKEN"),
"substreams-test-image",
}

Expand Down
Loading