-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(manager): add test for backup snapshot preparation
The test prepares backup snapshot for its future use in restore cases (restore benchmark or nemesis). The test populates the cluster with data, runs backup and logs created snapshot details into console. Corresponding jenkinsfile and testcase yamls are added. Together with test, the new helper method was introduced which extracts compaction strategy string from c-s cmd. To handle the backup size, the new environmental variable was added (SCT_MGMT_PREPARE_SNAPSHOT_SIZE). It should be specified in Jenkins job.
- Loading branch information
1 parent
b11f8df
commit 341a946
Showing
8 changed files
with
141 additions
and
0 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
18 changes: 18 additions & 0 deletions
18
jenkins-pipelines/manager/helpers/prepare-backup-snapshot.jenkinsfile
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,18 @@ | ||
#!groovy | ||
|
||
// trick from https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/43 | ||
def lib = library identifier: 'sct@snapshot', retriever: legacySCM(scm) | ||
|
||
managerPipeline( | ||
backend: 'aws', | ||
region: 'us-east-1', | ||
backup_bucket_location: 'manager-backup-tests-permanent-snapshots-us-east-1', | ||
test_name: 'mgmt_cli_test.ManagerHelperTests.test_prepare_backup_snapshot', | ||
test_config: 'test-cases/manager/prepare_snapshot/5GB_dataset.yaml', | ||
|
||
post_behavior_db_nodes: 'destroy', | ||
post_behavior_loader_nodes: 'destroy', | ||
post_behavior_monitor_nodes: 'destroy', | ||
|
||
extra_environment_variables: 'SCT_BACKUP_BUCKET_REGION=us-east-1', | ||
) |
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,12 @@ | ||
test_duration: 240 | ||
|
||
instance_type_db: 'i4i.large' | ||
instance_type_loader: 'c6i.large' | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 2 | ||
n_monitor_nodes: 1 | ||
|
||
mgmt_prepare_snapshot_size: 100 # GB | ||
|
||
user_prefix: manager-helper |
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,12 @@ | ||
test_duration: 60 | ||
|
||
instance_type_db: 'i4i.large' | ||
instance_type_loader: 'c6i.large' | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 1 | ||
n_monitor_nodes: 1 | ||
|
||
mgmt_prepare_snapshot_size: 10 # GB | ||
|
||
user_prefix: manager-helper |
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,12 @@ | ||
test_duration: 2880 | ||
|
||
instance_type_db: 'i3en.3xlarge' | ||
instance_type_loader: 'c6i.2xlarge' | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 4 | ||
n_monitor_nodes: 1 | ||
|
||
mgmt_prepare_snapshot_size: 2048 # GB | ||
|
||
user_prefix: manager-helper |
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,12 @@ | ||
test_duration: 60 | ||
|
||
instance_type_db: 'i4i.large' | ||
instance_type_loader: 'c6i.large' | ||
|
||
n_db_nodes: 3 | ||
n_loaders: 1 | ||
n_monitor_nodes: 1 | ||
|
||
mgmt_prepare_snapshot_size: 5 # GB | ||
|
||
user_prefix: manager-helper |