ci: streamline pipeline and add dev deploy actions #22
@@ -170,11 +170,12 @@ class ParsersViewSetTest(APITestCase):
|
|||||||
self.assertEqual(detail.status_code, status.HTTP_200_OK)
|
self.assertEqual(detail.status_code, status.HTTP_200_OK)
|
||||||
|
|
||||||
def test_system_logs_support_search_and_organizations_count(self):
|
def test_system_logs_support_search_and_organizations_count(self):
|
||||||
|
search_marker = "manufactures-unique-search-marker"
|
||||||
first_log = ParserLoadLogFactory(
|
first_log = ParserLoadLogFactory(
|
||||||
source="manufactures",
|
source="manufactures",
|
||||||
batch_id=101,
|
batch_id=101,
|
||||||
status="success",
|
status="success",
|
||||||
error_message="ok",
|
error_message=search_marker,
|
||||||
)
|
)
|
||||||
ParserLoadLogFactory(
|
ParserLoadLogFactory(
|
||||||
source="inspections",
|
source="inspections",
|
||||||
@@ -188,7 +189,7 @@ class ParsersViewSetTest(APITestCase):
|
|||||||
self.client.force_authenticate(self.admin)
|
self.client.force_authenticate(self.admin)
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
reverse("api_v1:system:parser-logs-list"),
|
reverse("api_v1:system:parser-logs-list"),
|
||||||
{"search": "101"},
|
{"search": search_marker},
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user