forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from ustaxcourt/master
Merge Sprint 43 into migration
- Loading branch information
Showing
871 changed files
with
28,429 additions
and
16,212 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# usage: | ||
# Deletes existing cases from DynamoDB and ElasticSearch | ||
|
||
# Usage | ||
# ./clear-env.sh $ENV | ||
# where $ENV is dev|stg|prod|test|... | ||
|
||
if [[ -z "${USTC_ADMIN_PASS}" ]]; then | ||
echo "You must have USTC_ADMIN_PASS set in your environment" | ||
exit 1 | ||
fi | ||
# Requirements | ||
# - terraform must be installed on your machine | ||
# - aws cli must be installed on your machine | ||
# - aws credentials must be setup on your machine | ||
# - node must be setup on your machine | ||
|
||
# Arguments | ||
# - $1 - the environment to clear | ||
|
||
[ -z "$1" ] && echo "The branch name to check must be provided as the \$1 argument." && exit 1 | ||
[ -z "${USTC_ADMIN_PASS}" ] && echo "You must have USTC_ADMIN_PASS set in your environment" && exit 1 | ||
[ -z "${AWS_ACCESS_KEY_ID}" ] && echo "You must have AWS_ACCESS_KEY_ID set in your environment" && exit 1 | ||
[ -z "${AWS_SECRET_ACCESS_KEY}" ] && echo "You must have AWS_SECRET_ACCESS_KEY set in your environment" && exit 1 | ||
|
||
ENV=$1 | ||
|
||
$(which terraform) > /dev/null | ||
if [[ "$?" == "1" ]]; then | ||
echo "Terraform was not found on your path. Please install terraform." | ||
exit 1 | ||
fi | ||
|
||
./web-api/clear-elasticsearch-index.sh $1 | ||
./web-api/setup-elasticsearch-index.sh $1 | ||
./web-api/clear-elasticsearch-index.sh $ENV | ||
./web-api/setup-elasticsearch-index.sh $ENV | ||
|
||
pushd web-api | ||
node clear-dynamodb-table.js $1 | ||
./setup-cognito-users.sh $1 | ||
./setup-court-users.sh $1 | ||
node clear-dynamodb-table.js $ENV | ||
./setup-cognito-users.sh $ENV | ||
./setup-court-users.sh $ENV | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
const faker = require('faker'); | ||
const { MOCK_CASE } = require('../../shared/src/test/mockCase'); | ||
|
||
exports.BASE_CASE = { | ||
...MOCK_CASE, | ||
associatedJudge: 'Chief Judge', | ||
caseCaption: 'A Migrated Casee', | ||
caseId: undefined, | ||
preferredTrialCity: 'Washington, District of Columbia', | ||
status: 'Calendared', | ||
}; | ||
|
||
exports.CASE_WITH_OTHER_PETITIONERS = { | ||
...exports.BASE_CASE, | ||
otherPetitioners: [ | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
{ | ||
additionalName: `Additional ${faker.name.findName()}`, | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
title: 'Petitioner', | ||
}, | ||
], | ||
}; | ||
|
||
exports.CASE_WITH_OTHER_FILERS = { | ||
...exports.BASE_CASE, | ||
otherFilers: [ | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Intervenor', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
{ | ||
address1: faker.address.streetAddress(), | ||
address2: faker.address.secondaryAddress(), | ||
city: faker.address.city(), | ||
countryType: 'domestic', | ||
name: faker.name.findName(), | ||
otherFilerType: 'Participant', | ||
phone: faker.phone.phoneNumber(), | ||
postalCode: faker.address.zipCode(), | ||
state: faker.address.stateAbbr(), | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "hello@cypress.io", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
Empty file.
Binary file not shown.
Oops, something went wrong.