-
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.
Add tests with multiple brokers to manager_test.go
We were not testing some important scenarios of the brokers.Manager (e.g. starting/ending session on the correct broker if multiple are configured, not triggering autodiscovery when configuredBrokers != nil). This commit adds test cases to cover those scenarios.
- Loading branch information
1 parent
d2d12ec
commit f30209b
Showing
3 changed files
with
42 additions
and
10 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
2 changes: 2 additions & 0 deletions
2
...TestNewManager/golden/creates_brokers_without_autodiscovery_when_configuredbrokers_is_set
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,2 @@ | ||
- local | ||
- Broker2 |
2 changes: 2 additions & 0 deletions
2
...s/testdata/TestNewSession/golden/successfully_start_a_new_session_with_the_correct_broker
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,2 @@ | ||
ID: BROKER_ID-success-session_id | ||
Encryption Key: TestNewSession_Broker1_key |