Example #1
0
 def test_convert_aws_args(self):
     aws_args = dict(region_name='name',
                     aws_access_key_id='id',
                     aws_secret_access_key='key',
                     aws_session_token='token',
                     profile_name='profile_name')
     self.assertEqual(convert_aws_args(aws_args), aws_args)
 def test_convert_aws_args_old_options(self):
     self.assertEqual(
         convert_aws_args(
             dict(region='name', access_id='id', secret_key='key')),
         dict(region_name='name',
              aws_access_key_id='id',
              aws_secret_access_key='key'))
 def test_convert_aws_args_old_options(self):
     self.assertEqual(
         convert_aws_args(dict(region="name", access_id="id", secret_key="key")),
         dict(
             region_name="name", aws_access_key_id="id", aws_secret_access_key="key"
         ),
     )
 def test_convert_aws_args_old_options(self):
     self.assertEqual(
         convert_aws_args(dict(region='name',
                               access_id='id',
                               secret_key='key')),
         dict(region_name='name',
              aws_access_key_id='id',
              aws_secret_access_key='key'))
Example #5
0
 def test_convert_aws_args_old_options(self):
     self.assertEqual(
         convert_aws_args(
             dict(region="name", access_id="id", secret_key="key")),
         dict(region_name="name",
              aws_access_key_id="id",
              aws_secret_access_key="key"),
     )
 def test_convert_aws_args(self):
     aws_args = dict(
         region_name="name",
         aws_access_key_id="id",
         aws_secret_access_key="key",
         aws_session_token="token",
         profile_name="profile_name",
     )
     self.assertEqual(convert_aws_args(aws_args), aws_args)
Example #7
0
 def test_convert_aws_args(self):
     aws_args = dict(
         region_name="name",
         aws_access_key_id="id",
         aws_secret_access_key="key",
         aws_session_token="token",
         profile_name="profile_name",
     )
     self.assertEqual(convert_aws_args(aws_args), aws_args)
Example #8
0
 def test_convert_aws_args_raises_invalid_configuration(self):
     with self.assertRaises(errors.InvalidConfiguration):
         convert_aws_args('not_dict')