Пример #1
0
 def test_wait_for_status(self):
     client = boto3.client('kinesis', region_name=aws_region)
     success, err_msg, stream = (kinesis_stream.wait_for_status(
         client, 'test', 'ACTIVE', check_mode=True))
     should_return = {
         'HasMoreShards': True,
         'RetentionPeriodHours': 24,
         'StreamName': 'test',
         'StreamARN': 'arn:aws:kinesis:east-side:123456789:stream/test',
         'StreamStatus': 'ACTIVE'
     }
     self.assertTrue(success)
     self.assertEqual(stream, should_return)
Пример #2
0
 def test_wait_for_status(self):
     client = boto3.client('kinesis', region_name=aws_region)
     success, err_msg, stream = (
         kinesis_stream.wait_for_status(
             client, 'test', 'ACTIVE', check_mode=True
         )
     )
     should_return = {
         'HasMoreShards': True,
         'RetentionPeriodHours': 24,
         'StreamName': 'test',
         'StreamARN': 'arn:aws:kinesis:east-side:123456789:stream/test',
         'StreamStatus': 'ACTIVE'
     }
     self.assertTrue(success)
     self.assertEqual(stream, should_return)