fix: clean up test fixtures and remove stale .bak test files
- Reset gitea settings after bug tests to prevent cross-test contamination - Add deleted_at and deleted_by fields to ingress proxy test instance creation - Call refresh_snapshot after ingress proxy test setup and teardown - Remove orphaned .bak test files (test_attachments.py.bak, test_demo.py.bak) that were left behind from a previous refactor
This commit is contained in:
@@ -91,8 +91,11 @@ def test_http_ingress_proxy(app_server):
|
||||
"ingress_slug": slug,
|
||||
"ingress_port": 8000,
|
||||
"ports_json": f'[{{"host": {port}, "container": 8000, "proto": "tcp"}}]',
|
||||
"deleted_at": None,
|
||||
"deleted_by": None,
|
||||
}
|
||||
)
|
||||
refresh_snapshot()
|
||||
try:
|
||||
r = requests.get(f"{BASE_URL}/p/{slug}/foo")
|
||||
assert r.status_code == 200, r.text
|
||||
@@ -101,3 +104,4 @@ def test_http_ingress_proxy(app_server):
|
||||
finally:
|
||||
httpd.shutdown()
|
||||
get_table("instances").delete(uid=uid)
|
||||
refresh_snapshot()
|
||||
|
||||
Reference in New Issue
Block a user