From e214c028d8b8781d10fac72cf9b3a9248de769fd Mon Sep 17 00:00:00 2001 From: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com> Date: Sat, 5 Oct 2024 16:52:09 +0000 Subject: [PATCH] fix: url --- api_app/queryset.py | 2 +- docker/Dockerfile | 4 ++-- requirements/project-requirements.txt | 2 +- tests/__init__.py | 8 ++++---- tests/api_app/analyzers_manager/test_classes.py | 2 +- tests/api_app/connectors_manager/test_classes.py | 2 +- tests/api_app/test_serializers.py | 4 ++-- tests/api_app/test_views.py | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/api_app/queryset.py b/api_app/queryset.py index f0b7c790..7aff7725 100644 --- a/api_app/queryset.py +++ b/api_app/queryset.py @@ -574,7 +574,7 @@ def _alias_for_test(self): test_value=Case( When( name__icontains="url", - then=Value("https://threatmatrix.com", output_field=JSONField()), + then=Value("https://khulnasoft.com", output_field=JSONField()), ), When( name="pdns_credentials", diff --git a/docker/Dockerfile b/docker/Dockerfile index f227437f..4d78de44 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ # Stage 1: Frontend # Remove this part if it is conflicting with the frontend you are currently testing -FROM node:lts-alpine3.18 as frontend-build +FROM node:lts-alpine3.18 AS frontend-build WORKDIR / # copy react source code @@ -13,7 +13,7 @@ RUN npm install npm@latest --location=global \ && PUBLIC_URL=/static/reactapp/ npm run build # Stage 2: Backend -FROM python:3.11.7 as backend-build +FROM python:3.11.7 AS backend-build ENV PYTHONUNBUFFERED 1 ENV DJANGO_SETTINGS_MODULE threat_matrix.settings diff --git a/requirements/project-requirements.txt b/requirements/project-requirements.txt index 798317a3..41ca9e06 100644 --- a/requirements/project-requirements.txt +++ b/requirements/project-requirements.txt @@ -49,7 +49,7 @@ lief==0.15.1 maxminddb==2.6.0 geoip2==4.8.0 mwdblib==4.5.0 -git+https://github.com/decalage2/oletools.git@ccf99d1a8f85e552f5cc130fbaa504cfe5725a92 +git+https://github.com/decalage2/oletools.git@b565533d6757f3dde2501e946ed6977ebbf2830a OTXv2==1.5.12 peepdf-fork==0.4.3 pdfid==1.1.0 diff --git a/tests/__init__.py b/tests/__init__.py index d95fc6c6..d2481273 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -33,21 +33,21 @@ def setUpTestData(cls): cls.guest = User.objects.get(is_superuser=False, username="guest") except User.DoesNotExist: cls.guest = User.objects.create( - username="guest", email="guest@threatmatrix.com", password="test" + username="guest", email="guest@khulnasoft.com", password="test" ) try: cls.user = User.objects.get(is_superuser=False, username="user") except User.DoesNotExist: cls.user = User.objects.create( - username="user", email="user@threatmatrix.com", password="test" + username="user", email="user@khulnasoft.com", password="test" ) try: cls.admin = User.objects.get(is_superuser=False, username="admin") except User.DoesNotExist: cls.admin = User.objects.create( - username="admin", email="admin@threatmatrix.com", password="test" + username="admin", email="admin@khulnasoft.com", password="test" ) try: @@ -57,7 +57,7 @@ def setUpTestData(cls): except User.DoesNotExist: cls.superuser = User.objects.create_superuser( username="superuser@threatmatrix.org", - email="test@threatmatrix.com", + email="test@khulnasoft.com", password="test", ) diff --git a/tests/api_app/analyzers_manager/test_classes.py b/tests/api_app/analyzers_manager/test_classes.py index 36a45cff..9df16630 100644 --- a/tests/api_app/analyzers_manager/test_classes.py +++ b/tests/api_app/analyzers_manager/test_classes.py @@ -221,7 +221,7 @@ def _create_jobs(self): ) Job.objects.create( user=self.superuser, - observable_name="test@threatmatrix.com", + observable_name="test@khulnasoft.com", observable_classification="generic", status="reported_without_fails", ) diff --git a/tests/api_app/connectors_manager/test_classes.py b/tests/api_app/connectors_manager/test_classes.py index 0d9676fc..426b8357 100644 --- a/tests/api_app/connectors_manager/test_classes.py +++ b/tests/api_app/connectors_manager/test_classes.py @@ -38,7 +38,7 @@ def run(self) -> dict: with self.assertRaises(NotImplementedError): MockUpConnector(cc).health_check(self.user) pc = PluginConfig.objects.create( - value="https://threatmatrix.com", + value="https://khulnasoft.com", owner=self.user, parameter=Parameter.objects.get(name="url_key_name", python_module=pm), connector_config=cc, diff --git a/tests/api_app/test_serializers.py b/tests/api_app/test_serializers.py index a6612b97..7e7c67ac 100644 --- a/tests/api_app/test_serializers.py +++ b/tests/api_app/test_serializers.py @@ -63,7 +63,7 @@ def test_to_representation(self): type="str", ).first() pc = PluginConfig.objects.create( - value="https://threatmatrix.com", + value="https://khulnasoft.com", owner=self.user, parameter=param, analyzer_config=AnalyzerConfig.objects.filter( @@ -77,7 +77,7 @@ def test_to_representation(self): self.assertEqual(org.name, data["organization"]) pc.delete() pc = PluginConfig.objects.create( - value="https://threatmatrix.com", + value="https://khulnasoft.com", owner=self.user, parameter=param, analyzer_config=AnalyzerConfig.objects.filter( diff --git a/tests/api_app/test_views.py b/tests/api_app/test_views.py index c6044673..a49309f8 100644 --- a/tests/api_app/test_views.py +++ b/tests/api_app/test_views.py @@ -101,7 +101,7 @@ def test_get(self): # they should not find anything self.standard_user = User.objects.create_user( username="standard_user", - email="standard_user@threatmatrix.com", + email="standard_user@khulnasoft.com", password="test", ) self.standard_user.save() @@ -178,7 +178,7 @@ def test_list(self): org1 = Organization.objects.create(name="testorg1") another_owner = User.objects.create_user( username="another_owner", - email="another_owner@threatmatrix.com", + email="another_owner@khulnasoft.com", password="test", ) another_owner.save()