feat: add model groups, verified registration and CNY credit grants
This commit is contained in:
1 parent
f5ba6cb255
commit
7a18db2123
40 files changed
+1980
-263
No files matched your search
@@ -37,6 +37,12 @@ def configuration():
|
||||
|
||||
|
||||
class DeploymentTests(unittest.TestCase):
|
||||
def test_proxy_replaces_forwarding_headers_for_verification_limits(self):
|
||||
routes = (DIRECTORY / "nginx" / "routes.conf").read_text(encoding="utf-8")
|
||||
self.assertEqual(routes.count('proxy_set_header Forwarded "";'), 2)
|
||||
self.assertEqual(routes.count('proxy_set_header X-Forwarded-For $remote_addr;'), 2)
|
||||
self.assertNotIn('$proxy_add_x_forwarded_for', routes)
|
||||
|
||||
def test_login_smoke_requires_super_admin_and_checks_management(self):
|
||||
cfg = configuration()
|
||||
cfg["services"]["moyi-api"]["environment"]["ADMIN_ACCOUNT"] = "adimin"
|
||||
|
||||
Reference in new issue
Block a user