-
Notifications
You must be signed in to change notification settings - Fork 4
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
api: Recognize sapphire, cipher as valid Layer values #427
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,12 +65,23 @@ fill-cache-for-e2e-regression: oasis-indexer | |
|
||
# Run the api tests locally, assuming the environment is set up with an oasis-node that is | ||
# accessible as specified in the config file. | ||
test-e2e-regression: export TZ=UTC | ||
test-e2e-regression: oasis-indexer | ||
./oasis-indexer --config tests/e2e_regression/e2e_config.yml analyze | ||
@$(ECHO) "$(CYAN)*** Indexer finished; starting api tests...$(OFF)" | ||
./tests/e2e_regression/run.sh | ||
|
||
# Accept the outputs of the e2e tests as the new expected outputs. | ||
accept-e2e-regression: | ||
@# Delete all old expected files first, in case any test cases were renamed or removed. | ||
rm -rf ./tests/e2e_regression/expected | ||
@# Copy the actual outputs to the expected outputs. | ||
cp -r ./tests/e2e_regression/{actual,expected} | ||
@# The result of the "spec" test is a special case. It should always match the | ||
@# current openAPI spec file, so we symlink it to avoid having to update the expected | ||
@# output every time the spec changes. | ||
Comment on lines
+79
to
+81
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I abstracted the inline command form |
||
rm ./tests/e2e_regression/expected/spec.body | ||
ln -s ../../../api/spec/v1.yaml ./tests/e2e_regression/expected/spec.body | ||
|
||
# Format code. | ||
fmt: | ||
@$(ECHO) "$(CYAN)*** Running Go formatters...$(OFF)" | ||
|
@@ -137,6 +148,10 @@ release-build: codegen-go | |
all build \ | ||
codegen-go \ | ||
oasis-indexer \ | ||
test-e2e \ | ||
test-e2e-regression \ | ||
fill-cache-for-e2e-regression \ | ||
accept-e2e-regression \ | ||
docker \ | ||
clean \ | ||
test \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add to .PHONY?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 We don't really use/need it. Added, and half-heartedly added several other e2e-related targets that were missing, but didn't make a careful pass to ensure every relevant target is listed under .PHONY.