Skip to content

Commit 2ad9ce4

Browse files
test update
1 parent 8916c65 commit 2ad9ce4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/test_planet_auth_utils/unit/auth_utils/test_plauth_factory.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,12 @@ def test_custom_valid_configs(self):
433433

434434
# Check if the issuers match the passed custom configuration
435435
for priority, config in zip(ISSUER_PRIORITIES, [VALID_PRIMARY_CONFIGS, VALID_SECONDARY_CONFIGS]):
436-
issuers = list(test_validator_vars[priority].keys())
437-
self.assertEqual(len(issuers), 1)
438-
self.assertEqual(issuers[0], config[0]["auth_server"])
436+
trust_keys = list(test_validator_vars[priority].keys())
437+
self.assertEqual(len(trust_keys), 1)
438+
self.assertEqual(
439+
trust_keys[0],
440+
planet_auth.TrustEntry(issuer=config[0]["auth_server"], audience=config[0]["audiences"][0]),
441+
)
439442

440443
def test_custom_invalid_configs(self):
441444
with self.assertRaises(planet_auth.AuthException) as context:

0 commit comments

Comments
 (0)