Skip to content

Commit

Permalink
Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdljohnson committed May 6, 2024
1 parent 179db5d commit 60f6351
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,20 +580,30 @@ def test_get_resource_tagging_region(self):
resource_type = query.TypeInfo()

# Regional endpoint checks
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'us-east-2'), 'us-east-2')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'ap-southeast-1'), 'ap-southeast-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'eu-west-1'), 'eu-west-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'us-gov-east-1'), 'us-gov-east-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'cn-north-1'), 'cn-north-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'us-iso-east-1'), 'us-iso-east-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,

Check failure on line 583 in tests/test_utils.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (W291)

tests/test_utils.py:583:74: W291 Trailing whitespace
'us-east-2'), 'us-east-2')
self.assertEqual(utils.get_resource_tagging_region(resource_type,

Check failure on line 585 in tests/test_utils.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (W291)

tests/test_utils.py:585:74: W291 Trailing whitespace
'ap-southeast-1'), 'ap-southeast-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,

Check failure on line 587 in tests/test_utils.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (W291)

tests/test_utils.py:587:74: W291 Trailing whitespace
'eu-west-1'), 'eu-west-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,

Check failure on line 589 in tests/test_utils.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (W291)

tests/test_utils.py:589:74: W291 Trailing whitespace
'us-gov-east-1'), 'us-gov-east-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,

Check failure on line 591 in tests/test_utils.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (W291)

tests/test_utils.py:591:74: W291 Trailing whitespace
'cn-north-1'), 'cn-north-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,

Check failure on line 593 in tests/test_utils.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (W291)

tests/test_utils.py:593:74: W291 Trailing whitespace
'us-iso-east-1'), 'us-iso-east-1')

# Global resource checks
resource_type.global_resource = True

self.assertEqual(utils.get_resource_tagging_region(resource_type, 'us-east-2'), 'us-east-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'us-gov-east-1'), 'us-gov-west-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'cn-north-1'), 'cn-north-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type, 'us-iso-east-1'), 'us-iso-east-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,
'us-east-2'), 'us-east-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,
'us-gov-east-1'), 'us-gov-west-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,
'cn-north-1'), 'cn-north-1')
self.assertEqual(utils.get_resource_tagging_region(resource_type,
'us-iso-east-1'), 'us-iso-east-1')

def test_get_eni_resource_type(self):
self.assertEqual(
Expand Down

0 comments on commit 60f6351

Please sign in to comment.