Skip to content

Commit

Permalink
Use support email as oai admin
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed May 8, 2024
1 parent be3be7e commit 1322bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ def oai_pmh():
return make_response("OAI-PMH not enabled.", 404, {'Content-Type': 'text/plain'})

oai = OAI(settings.oaipmh_repo_name, request.base_url, settings.oaipmh_repo_description,
settings.oaipmh_repo_base_identifier_url)
settings.oaipmh_repo_base_identifier_url, repo_admin_email=app.config.get('SUPPORT_EMAIL'))

metadata_dict = {}
for name, tosca in toscaInfo.items():
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def test_oai(self):
self.assertIsNotNone(root.find(".//oaipmh:earliestDatestamp", namespace))
self.assertEqual(root.find(".//oaipmh:deletedRecord", namespace).text, "no")
self.assertEqual(root.find(".//oaipmh:granularity", namespace).text, "YYYY-MM-DD")
self.assertEqual(root.find(".//oaipmh:adminEmail", namespace).text, "admin@localhost")
self.assertEqual(root.find(".//oaipmh:adminEmail", namespace).text, "support@example.com")

# Test GetRecord
tosca_id = "https://github.com/grycap/tosca/blob/main/templates/simple-node-disk.yml"
Expand Down

0 comments on commit 1322bae

Please sign in to comment.