Skip to content

Commit

Permalink
Pubsub testing (#243)
Browse files Browse the repository at this point in the history
* the regular Cork test no longer exists

* Example TLS certs for reference

* Pubsub integration test, tweak test names

* appease linter

* test removing PublisherIntent

* Delete default subscriptions with their publisher

* Use subscriberAddress variable in msg_server

* Test cascading deletes

* Use normalized subscription IDs in TX examples

* make sure one subscriber can't touch another
  • Loading branch information
EricBolten authored Dec 14, 2023
1 parent a42cede commit 6dd3580
Show file tree
Hide file tree
Showing 25 changed files with 930 additions and 121 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ jobs:
fail-fast: false
matrix:
test_type: [
"Cork",
"ScheduledCork",
"AuctionModule",
"Auction",
"CellarFees",
"Incentives",
"Pubsub",
]
steps:
- name: Set up Go 1.19
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,17 @@ e2e_scheduled_cork_test: e2e_clean_slate
@E2E_SKIP_CLEANUP=true integration_tests/integration_tests.test -test.failfast -test.v -test.run IntegrationTestSuite -testify.m TestScheduledCork || make -s fail

e2e_auction_module_test: e2e_clean_slate
@E2E_SKIP_CLEANUP=true integration_tests/integration_tests.test -test.failfast -test.v -test.run IntegrationTestSuite -testify.m TestAuctionModule || make -s fail
@E2E_SKIP_CLEANUP=true integration_tests/integration_tests.test -test.failfast -test.v -test.run IntegrationTestSuite -testify.m TestAuction || make -s fail

e2e_cellarfees_test: e2e_clean_slate
@E2E_SKIP_CLEANUP=true integration_tests/integration_tests.test -test.failfast -test.v -test.run IntegrationTestSuite -testify.m TestCellarFees || make -s fail

e2e_incentives_test: e2e_clean_slate
@E2E_SKIP_CLEANUP=true integration_tests/integration_tests.test -test.failfast -test.v -test.run IntegrationTestSuite -testify.m TestIncentives || make -s fail

e2e_pubsub_test: e2e_clean_slate
@E2E_SKIP_CLEANUP=true integration_tests/integration_tests.test -test.failfast -test.v -test.run IntegrationTestSuite -testify.m TestPubsub || make -s fail

fail:
@echo 'test failed; dumping container logs into ./testlogs for review'
@docker logs ethereum > testlogs/ethereum.log 2>&1 || true
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
cellarfees "github.com/peggyjv/sommelier/v7/x/cellarfees/types"
)

func (s *IntegrationTestSuite) TestAuctionModule() {
func (s *IntegrationTestSuite) TestAuction() {
s.Run("Bring up chain, test governance proposal to set token prices, submit some bids, and finish an auction", func() {
val := s.chain.validators[0]
kb, err := val.keyring()
Expand Down
108 changes: 0 additions & 108 deletions integration_tests/cork_test.go

This file was deleted.

Loading

0 comments on commit 6dd3580

Please sign in to comment.