Skip to content

Commit

Permalink
makes test data route more explicit; adds memory and instance vars to…
Browse files Browse the repository at this point in the history
… manifest
  • Loading branch information
btylerburton committed Sep 23, 2024
1 parent ae00cdf commit a96ac3f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def cli_remove_harvest_source(id):

## Load Test Data
# TODO move this into its own file when you break up routes
@testdata.cli.command("load")
@testdata.cli.command("load_test_data")
def fixtures():
"""Load database fixtures from JSON."""
import json
Expand Down
3 changes: 2 additions & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ applications:
services:
- ((app_name))-db
- ((app_name))-secrets
instances: 1
instances: ((admin_instances))
memory: ((admin_memory_quota))
env:
FLASK_APP: run.py
CF_API_URL: ((CF_API_URL))
Expand Down
2 changes: 2 additions & 0 deletions vars.development.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
app_name: datagov-harvest
route_external: datagov-harvest-admin-dev.app.cloud.gov
admin_instances: 2
admin_memory_quota: 3G
CF_API_URL: https://api.fr.cloud.gov
CKAN_API_URL: https://catalog-next-dev-admin-datagov.app.cloud.gov
HARVEST_RUNNER_APP_GUID: e6a8bba8-ed6d-4200-8280-67b46cebdc63
Expand Down
2 changes: 2 additions & 0 deletions vars.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
app_name: datagov-harvest
route_external: datagov-harvest-admin-prod.app.cloud.gov
admin_instances: 2
admin_memory_quota: 3G
CF_API_URL: https://api.fr.cloud.gov
CKAN_API_URL: https://catalog.data.gov
HARVEST_RUNNER_APP_GUID: null
Expand Down
2 changes: 2 additions & 0 deletions vars.staging.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
app_name: datagov-harvest
route_external: datagov-harvest-admin-stage.app.cloud.gov
admin_instances: 2
admin_memory_quota: 3G
CF_API_URL: https://api.fr.cloud.gov
CKAN_API_URL: https://catalog-stage.data.gov
HARVEST_RUNNER_APP_GUID: null
Expand Down

1 comment on commit a96ac3f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests Skipped Failures Errors Time
2 0 💤 0 ❌ 0 🔥 5.651s ⏱️

Please sign in to comment.