Skip to content

Commit 03f3a8c

Browse files
committed
Updating the deploy with the Native Land key properly.
I had put the key in the wrong place. Making sure it's in the actual deploy string.
1 parent 7804ebe commit 03f3a8c

33 files changed

+5400
-6194
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
"VPCId=${{ secrets.VPC_ID }}" \
9797
"PrivateSubnets=${{ env.SUBNET_LIST }}" \
9898
"DomainName=${{ env.ENDPOINT }}" \
99+
"NativeLandKey=${{ secrets.NATIVELANDKEY }}" \
99100
--capabilities CAPABILITY_NAMED_IAM \
100101
--region ${{ env.AWS_REGION }} \
101102
--no-fail-on-empty-changeset

infrastructure/cloudformation-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ Parameters:
5050
Type: String
5151
NoEcho: true
5252
Description: RDS password
53+
54+
NativeLandKey:
55+
Type: String
56+
NoEcho: true
57+
Description: The API key for the Native Lands API
5358

5459
Resources:
5560
# Security Group for App Runner
@@ -120,6 +125,8 @@ Resources:
120125
ImageConfiguration:
121126
Port: '3001'
122127
RuntimeEnvironmentVariables:
128+
- Name: NATIVELANDKEY
129+
Value: !Ref NativeLandKey
123130
- Name: NODE_ENV
124131
Value: !Ref Environment
125132
- Name: RDS_HOSTNAME

public/tests.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/tests.json

Lines changed: 5362 additions & 6164 deletions
Large diffs are not rendered by default.

test/v1.5-data-contacts-{contactid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/contacts/{contactid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Contact"', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/contacts/500', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/contacts/-84248232', {
1111
'time': true,
1212
});
1313

test/v1.5-data-geopoliticalunits-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v1.5/data/geopoliticalunits', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of geopolitical units."', function() {
1010
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', {
11-
'qs': {'gpid': 5392, 'gpname': 'Canada', 'rank': 4, 'lower': true},
11+
'qs': {'gpid': 5392, 'gpname': 'Canada', 'rank': 1, 'lower': false},
1212
'time': true,
1313
});
1414

test/v1.5-data-geopoliticalunits-{gpid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/geopoliticalunits/{gpid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of geopolitical units."', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/3595', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/6057', {
1111
'time': true,
1212
});
1313

test/v2.0-apps-constdb-datasetages-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetages', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', {
11-
'qs': {'dbid': 35},
11+
'qs': {'dbid': 1},
1212
'time': true,
1313
});
1414

test/v2.0-apps-constdb-datasets-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasets', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns the set of datasets contained within a constituent database, identified by the constituent database identifier. Used for quick landing page generation. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', {
11-
'qs': {'dbid': 27},
11+
'qs': {'dbid': 11},
1212
'time': true,
1313
});
1414

test/v2.0-apps-constdb-datasetuploads-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetuploads', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', {
11-
'qs': {'dbid': 15},
11+
'qs': {'dbid': 21},
1212
'time': true,
1313
});
1414

0 commit comments

Comments
 (0)