Beispiel #1
0
 def test_encrypt_file_no_override_empty(self):
     args={"ddb_table":test_ddb_table,"parameter_key":test_ddb_name_file,"parameter_file":test_private_key_name, "kms_key": test_kms_key}
     keypot_instance=Keypot(args)
     self.assertIsInstance(keypot_instance.do_encrypt(),str)
Beispiel #2
0
 def test_encrypt_value_override_false_override_failure(self):
     args={"ddb_table":test_ddb_table,"parameter_key":test_ddb_name_text_var,"parameter_value":test_ddb_name_text_val1, "overwrite": "FALSE", "kms_key": test_kms_key}
     keypot_instance=Keypot(args)
     with self.assertRaises(KeypotError) as ke:
         keypot_instance.do_encrypt()
Beispiel #3
0
 def test_encrypt_value_with_overwrite(self):
     args={"ddb_table":test_ddb_table,"parameter_key":test_ddb_name_text_var,"parameter_value":test_ddb_name_text_val2, "overwrite": "TRUE", "kms_key": test_kms_key}
     keypot_instance=Keypot(args)
     self.assertIsInstance(keypot_instance.do_encrypt(),str)
Beispiel #4
0
 def test_encrypt_value_no_override_empty(self):
     args={"ddb_table":test_ddb_table,"parameter_key":test_ddb_name_text_var,"parameter_value":test_ddb_name_text_val1,"kms_key": test_kms_key}
     keypot_instance=Keypot(args)
     self.assertIsInstance(keypot_instance.do_encrypt(),str)