-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Address: 1. Fix stratos_config initiation 2. Fix cluster-name sync, (for both version <3.7.0 and >= 3.7.0). 3. Fixes release workflow (cherry picked from commit f6b1f8351cf1c1c805f23b37d05753e57dd6d699)
- Loading branch information
1 parent
f61c671
commit 56c5270
Showing
4 changed files
with
52 additions
and
34 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
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,15 @@ | ||
from calm.dsl.config import get_context | ||
|
||
|
||
def test_stratos_config(): | ||
ContextObj = get_context() | ||
stratos_config = ContextObj.get_stratos_config() | ||
assert stratos_config.get("stratos_status", False) in [True, False] | ||
|
||
|
||
def test_connection_config(): | ||
ContextObj = get_context() | ||
connection_config = ContextObj.get_connection_config() | ||
assert isinstance(connection_config["retries_enabled"], bool) | ||
assert isinstance(connection_config["connection_timeout"], int) | ||
assert isinstance(connection_config["read_timeout"], int) |