We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59fe617 commit ba52edbCopy full SHA for ba52edb
2 files changed
src/objects/setup_configuration/tests/files/token_auth/no_tokens.yaml
@@ -0,0 +1,3 @@
1
+tokenauth_config_enable: true
2
+tokenauth:
3
+ items: []
src/objects/setup_configuration/tests/test_token_auth_config.py
@@ -421,6 +421,15 @@ def test_invalid_empty_identifier(self):
421
self.assertTrue("String should match pattern" in str(command_error.exception))
422
self.assertEqual(TokenAuth.objects.count(), 0)
423
424
+ def test_valid_without_configured_tokens(self):
425
+ execute_single_step(
426
+ TokenAuthConfigurationStep,
427
+ yaml_source=str(DIR_FILES / "no_tokens.yaml"),
428
+ )
429
+
430
+ tokens = TokenAuth.objects.all()
431
+ self.assertEqual(tokens.count(), 0)
432
433
434
class TokenAuthConfigurationStepWithPermissionsTests(TokenTestCase):
435
def test_valid_setup_default_without_permissions(self):
0 commit comments