-
Notifications
You must be signed in to change notification settings - Fork 21
CLOUDP-342858: Running search test under OM 8.2 #467
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
Open
lsierant
wants to merge
11
commits into
master
Choose a base branch
from
lsierant/search-8.2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8c95711
Allow for more than one deployment per test under cloud-qa
lsierant 84ff3d6
Removed any changes to the existing tests
lsierant ac898f4
Running search test under OM 8.2
lsierant d6d7c70
Review fixes
lsierant 2046f89
Incorporated cloud-qa changes
lsierant 48c5aaa
Test fixes
lsierant e3fa3e7
Review fixes
lsierant 853a47f
Review fixes
lsierant 8d3f0b3
Lint
lsierant f763e34
Review fixes
lsierant 16af9a2
Waiting for the agents to reach goal state
lsierant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
5 changes: 5 additions & 0 deletions
5
docker/mongodb-kubernetes-tests/tests/common/ops_manager/cloud_manager.py
This file contains hidden or 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,5 @@ | ||
import os | ||
|
||
|
||
def is_cloud_qa() -> bool: | ||
return os.getenv("ops_manager_version", "cloud_qa") == "cloud_qa" |
This file contains hidden or 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 hidden or 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
30 changes: 30 additions & 0 deletions
30
docker/mongodb-kubernetes-tests/tests/search/om_deployment.py
This file contains hidden or 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,30 @@ | ||
from typing import Optional | ||
|
||
from kubetester import try_load | ||
from kubetester.kubetester import fixture as yaml_fixture | ||
from kubetester.kubetester import is_multi_cluster | ||
from kubetester.opsmanager import MongoDBOpsManager | ||
from pytest import fixture | ||
from tests.common.ops_manager.cloud_manager import is_cloud_qa | ||
from tests.conftest import get_custom_appdb_version, get_custom_om_version | ||
from tests.opsmanager.withMonitoredAppDB.conftest import enable_multi_cluster_deployment | ||
|
||
|
||
def get_ops_manager(namespace: str) -> Optional[MongoDBOpsManager]: | ||
if is_cloud_qa(): | ||
return None | ||
|
||
resource: MongoDBOpsManager = MongoDBOpsManager.from_yaml( | ||
yaml_fixture("om_ops_manager_basic.yaml"), namespace=namespace | ||
) | ||
|
||
if try_load(resource): | ||
return resource | ||
|
||
resource.set_version(get_custom_om_version()) | ||
resource.set_appdb_version(get_custom_appdb_version()) | ||
|
||
if is_multi_cluster(): | ||
enable_multi_cluster_deployment(resource) | ||
|
||
return resource |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.