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)
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()
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)
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)