This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INFINITY-2064] Test upgrade (but not downgrade) in all sanity tests* (…
…#1339) * Revert [INFINITY-2038] Support data_center and rack configuration in Cassandra #1303 * Test upgrade (but not downgrade) in all sanity tests* * Except template * Fix syntax in sdk_upgrade, clean up unused imports * Fix shakedown imports, remove apparently unnecessary vendor copy * More fixes * Finish HDFS upgrade test * Fixed HDFS upgrade user * More conrete journal node readiness check * Re-enable recovery check * Combined readiness check methods * Test upgrade (but not downgrade) in all sanity tests* * Except template * Fix syntax in sdk_upgrade, clean up unused imports * Fix shakedown imports, remove apparently unnecessary vendor copy * More fixes * Finish HDFS upgrade test * Fixed HDFS upgrade user * Bump upgrade timeout * Added deterministic field to HDFS's JMX lookup
- Loading branch information
1 parent
4bc5051
commit 25fd1c5
Showing
128 changed files
with
385 additions
and
24,946 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import json | ||
import os | ||
|
||
import shakedown | ||
import sdk_hosts | ||
import sdk_jobs | ||
import sdk_plan | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import os | ||
import pytest | ||
import shakedown | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
import pytest | ||
|
||
import sdk_install | ||
import sdk_upgrade | ||
import sdk_utils | ||
from tests.config import * | ||
|
||
|
||
@pytest.fixture(scope='module', autouse=True) | ||
def configure_package(configure_universe): | ||
try: | ||
sdk_install.uninstall(PACKAGE_NAME, package_name=PACKAGE_NAME) | ||
sdk_utils.gc_frameworks() | ||
|
||
# TODO: This test is only here because we can't currently test upgrades on a foldered service | ||
# After the next beta-hdfs release (with folder support), delete test_upgrade.py and uncomment the upgrade test in test_shakedown.py | ||
sdk_upgrade.test_upgrade( | ||
"beta-{}".format(PACKAGE_NAME), | ||
PACKAGE_NAME, | ||
DEFAULT_TASK_COUNT, | ||
service_name=PACKAGE_NAME, | ||
additional_options={"service": {"name": PACKAGE_NAME} }, | ||
test_version_options={"service": {"name": PACKAGE_NAME, "user": "root"} }) | ||
|
||
yield # let the test session execute | ||
finally: | ||
sdk_install.uninstall(PACKAGE_NAME, package_name=PACKAGE_NAME) | ||
|
||
|
||
@pytest.mark.sanity | ||
def test_upgrade(): | ||
check_healthy() |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import pytest | ||
|
||
import shakedown | ||
import sdk_install | ||
import sdk_plan | ||
import sdk_utils | ||
|
Oops, something went wrong.