Skip to content

Commit

Permalink
Fix CDN host for Dev1
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Jan 9, 2024
1 parent 7e590d0 commit 9f6e47c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions harvester/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def __getattr__(self, name: str) -> Any: # noqa: ANN401
def http_cdn_root(self) -> str:
"""Property to return the base HTTP CDN URL path based on environment."""
return {
None: "https://cdn.dev.mitlibrary.net/geo",
"test": "https://cdn.dev.mitlibrary.net/geo",
"dev": "https://cdn.dev.mitlibrary.net/geo",
None: "https://cdn.dev1.mitlibrary.net/geo",
"test": "https://cdn.dev1.mitlibrary.net/geo",
"dev": "https://cdn.dev1.mitlibrary.net/geo",
"stage": "https://cdn.stage.mitlibrary.net/geo",
"prod": "https://cdn.libraries.mit.edu/geo",
}[self.WORKSPACE]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def test_config_env_var_access_error(config_instance):


def test_config_cdn_root(config_instance):
assert config_instance.http_cdn_root == "https://cdn.dev.mitlibrary.net/geo"
assert config_instance.http_cdn_root == "https://cdn.dev1.mitlibrary.net/geo"
6 changes: 3 additions & 3 deletions tests/test_records/test_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,19 @@ def test_record_shared_field_method_dct_references_s_success(
{
"label": "Source Metadata",
"protocol": "Download",
"url": "https://cdn.dev.mitlibrary.net/geo/public"
"url": "https://cdn.dev1.mitlibrary.net/geo/public"
"/SDE_DATA_AE_A8GNS_2003.source.fgdc.xml",
},
{
"label": "Normalized Metadata",
"protocol": "Download",
"url": "https://cdn.dev.mitlibrary.net/geo/public"
"url": "https://cdn.dev1.mitlibrary.net/geo/public"
"/SDE_DATA_AE_A8GNS_2003.normalized.aardvark.json",
},
{
"label": "Data Zipfile",
"protocol": "Download",
"url": "https://cdn.dev.mitlibrary.net/geo/public"
"url": "https://cdn.dev1.mitlibrary.net/geo/public"
"/SDE_DATA_AE_A8GNS_2003.zip",
},
]
Expand Down

0 comments on commit 9f6e47c

Please sign in to comment.