Skip to content

Commit

Permalink
Merge pull request #238 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Update Dependencies and Remove Schema URL
  • Loading branch information
HaSistrunk authored Mar 21, 2024
2 parents 8966052 + 74719e7 commit 0939aa4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ repos:
hooks:
- id: isort
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
rev: 7.4.1
hooks:
- id: pip-compile
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ aquarius has seven services, all of which are exposed via HTTP endpoints (see [R
|POST|/send-update| |200|Sends updated transfer data to Aurora|
|POST|/send-accession-update| |200|Sends updated accession data to Aurora|
|GET|/status||200|Return the status of the microservice|
|GET|/schema.json||200|Returns the OpenAPI schema for this application|


### ArchivesSpace configuration

Expand Down
7 changes: 0 additions & 7 deletions aquarius/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from django.contrib import admin
from django.urls import include, re_path
from rest_framework import routers
from rest_framework.schemas import get_schema_view

from transformer.views import (AccessionUpdateRequestView, PackageViewSet,
ProcessAccessionsView,
Expand All @@ -29,11 +28,6 @@
router = routers.DefaultRouter()
router.register(r'packages', PackageViewSet, 'package')

schema_view = get_schema_view(
title="Aquarius API",
description="Endpoints for Aquarius microservice application."
)

urlpatterns = [
re_path(r'^', include(router.urls)),
re_path(r'^accessions/', ProcessAccessionsView.as_view(), name="accessions"),
Expand All @@ -44,5 +38,4 @@
re_path(r'^send-accession-update/', AccessionUpdateRequestView.as_view(), name="send-accession-update"),
re_path(r'^status/', PingView.as_view(), name='ping'),
re_path(r'^admin/', admin.site.urls),
re_path(r'^schema/', schema_view, name='schema'),
]
18 changes: 8 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
archivessnake==0.9.1
# via -r requirements.in
asgiref==3.7.2
asgiref==3.8.0
# via django
asterism==1.1.0
# via -r requirements.in
Expand All @@ -16,16 +16,16 @@ bagit==1.8.1
# via asterism
boltons==23.1.1
# via archivessnake
certifi==2023.11.17
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
django==4.2.9
django==4.2.11
# via
# -r requirements.in
# asterism
# djangorestframework
djangorestframework==3.14.0
djangorestframework==3.15.0
# via
# -r requirements.in
# asterism
Expand All @@ -45,20 +45,18 @@ odin==1.8.1
# via -r requirements.in
psycopg2==2.9.9
# via -r requirements.in
pytz==2023.4
# via djangorestframework
pyyaml==6.0.1
# via
# -r requirements.in
# archivessnake
rapidfuzz==3.6.1
rapidfuzz==3.6.2
# via archivessnake
requests==2.31.0
# via
# archivessnake
# electronbonder
# requests-oauthlib
requests-oauthlib==1.3.1
requests-oauthlib==1.4.0
# via electronbonder
six==1.16.0
# via
Expand All @@ -68,9 +66,9 @@ sqlparse==0.4.4
# via django
structlog==24.1.0
# via archivessnake
typing-extensions==4.9.0
typing-extensions==4.10.0
# via asgiref
uritemplate==4.1.1
# via -r requirements.in
urllib3==2.2.0
urllib3==2.2.1
# via requests
4 changes: 0 additions & 4 deletions transformer/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ def test_routine_views(self, mock_aurora_init, mock_routine_init):
self.assertEqual(response.json(), {"detail": "foo", "objects": [], "count": 0})
mocked_fn.assert_called_once()

def test_schema(self):
schema = self.client.get(reverse("schema"))
self.assertEqual(schema.status_code, 200, "Wrong HTTP code")

def test_health_check(self):
status = self.client.get(reverse("ping"))
self.assertEqual(status.status_code, 200, "Wrong HTTP code")
Expand Down

0 comments on commit 0939aa4

Please sign in to comment.