コード例 #1
0
 def test_retention_action_invalid(self):
     client = boto3.client('kinesis', region_name=aws_region)
     success, err_msg = (
         kinesis_stream.retention_action(
             client, 'test', 24, 'create', check_mode=True
         )
     )
     self.assertFalse(success)
コード例 #2
0
 def test_retention_action_invalid(self):
     client = boto3.client('kinesis', region_name=aws_region)
     success, err_msg = (
         kinesis_stream.retention_action(
             client, 'test', 24, 'create', check_mode=True
         )
     )
     self.assertFalse(success)
コード例 #3
0
 def test_retention_action_increase(self):
     client = boto3.client('kinesis', region_name=aws_region)
     success, err_msg = (
         kinesis_stream.retention_action(
             client, 'test', 48, 'increase', check_mode=True
         )
     )
     self.assertTrue(success)
コード例 #4
0
 def test_retention_action_increase(self):
     client = boto3.client('kinesis', region_name=aws_region)
     success, err_msg = (
         kinesis_stream.retention_action(
             client, 'test', 48, 'increase', check_mode=True
         )
     )
     self.assertTrue(success)