Add cassandra backup test
Add test cases for automatic and manual backup\restore
* Enable backup
* Create backup
* Run Jenkins job for restore from the backup
or perform states manually
Change-Id: I94deb8dcd800a1fe327ad74ff50907741538abbc
diff --git a/tcp_tests/managers/reclass_manager.py b/tcp_tests/managers/reclass_manager.py
index 0e1133c..dc45be1 100644
--- a/tcp_tests/managers/reclass_manager.py
+++ b/tcp_tests/managers/reclass_manager.py
@@ -118,3 +118,21 @@
value=value,
path=short_path
))
+
+ def delete_key(self, key, short_path):
+ """
+ Remove key from the provided file
+
+ :param value: string, parameter which will be deleted
+ :param short_path: string,, path to reclass yaml file.
+ It takes into account default path where the reclass locates.
+ May look like cluster/*/cicd/control/leader.yml
+ :return: None
+ """
+ self.ssh.check_call(
+ "{reclass_tools} del-key {key} \
+ /srv/salt/reclass/classes/{path}".format(
+ reclass_tools=self.reclass_tools_cmd,
+ key=key,
+ path=short_path
+ ))