Skip to content

Commit

Permalink
Merge pull request #3189 from cfpb/zencircle-newman-bank0
Browse files Browse the repository at this point in the history
additional bank0 files
  • Loading branch information
omnipresent07 authored Oct 23, 2019
2 parents 7ce6cc1 + 6445e00 commit b163725
Show file tree
Hide file tree
Showing 7 changed files with 2,238 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
[
{
"host-admin-api": "localhost:8081",
"host_filing_api": "localhost:8080",
"host-public-api": "localhost:8082",
"test-lei": "B90YWS6AFX2LGWOXJ1LD",
"filing-year": "2018",
"testData": [
{
"testName": "admin api health check",
"expectedID": "hmda-admin-api",
"testNumber": 0
},
{
"testName": "filing health check",
"expectedID": "hmda-filing-api",
"testNumber": 1
},
{
"testName": "public-api health check",
"expectedID": "hmda-public-api",
"testNumber": 2
},
{
"testName": "create institution",
"requestBody": {
"activityYear": 2018,
"lei": "B90YWS6AFX2LGWOXJ1LD",
"agency": 9,
"institutionType": -1,
"institutionId2017": "",
"taxId": "01-0123456",
"rssd": -1,
"emailDomains": [
"bank0.com"
],
"respondent": {
"name": "Bank 0",
"state": "",
"city": ""
},
"parent": {
"idRssd": -1,
"name": ""
},
"assets": -1,
"otherLenderCode": -1,
"topHolder": {
"idRssd": -1,
"name": ""
},
"hmdaFiler": true
},
"expectedResponse": {
"activityYear": 2018,
"lei": "B90YWS6AFX2LGWOXJ1LD",
"agency": 9,
"institutionType": -1,
"institutionId2017": "",
"taxId": "01-0123456",
"rssd": -1,
"emailDomains": [
"bank0.com"
],
"respondent": {
"name": "Bank 0",
"state": "",
"city": ""
},
"parent": {
"idRssd": -1,
"name": ""
},
"assets": -1,
"otherLenderCode": -1,
"topHolder": {
"idRssd": -1,
"name": ""
},
"hmdaFiler": true
},
"expectedMessage": "Institution B90YWS6AFX2LGWOXJ1LD already exists",
"testNumber": 3
},
{
"testName": "institution get api call",
"expectedResponse": {
"activityYear": 2018,
"lei": "B90YWS6AFX2LGWOXJ1LD",
"agency": 9,
"institutionType": -1,
"institutionId2017": "",
"taxId": "01-0123456",
"rssd": -1,
"emailDomains": [
"bank0.com"
],
"respondent": {
"name": "Bank 0",
"state": "",
"city": ""
},
"parent": {
"idRssd": -1,
"name": ""
},
"assets": -1,
"otherLenderCode": -1,
"topHolder": {
"idRssd": -1,
"name": ""
},
"hmdaFiler": true
},
"testNumber": 4
},
{
"testName": "test start a filing",
"expectedResponse": {
"filing": {
"period": "2018",
"lei": "B90YWS6AFX2LGWOXJ1LD",
"status": {
"code": 2,
"message": "in-progress"
},
"filingRequired": true,
"start": 1562651878216,
"end": 0
},
"submissions": []
},
"testNumber": 5
},
{
"testName": "test create a filing",
"expectedResponse": {
"id": {
"lei": "B90YWS6AFX2LGWOXJ1LD",
"period": "2018",
"sequenceNumber": 1
},
"status": {
"code": 1,
"message": "No data has been uploaded yet.",
"description": "The filing period is open and available to accept HMDA data. Make sure your data is in a pipe-delimited text file."
},
"start": 1562655789617,
"end": 0,
"fileName": "",
"receipt": ""
},
"testNumber": 6
},
{
"testName": "filing psv upload test",
"sourceFile": "../../../../data/2018/clean_test_files/bank_0/clean_file_10_rows_Bank0_syntax_validity.txt",
"expectedResponse": {
"id": {
"lei": "B90YWS6AFX2LGWOXJ1LD",
"period": "2018",
"sequenceNumber": 7
},
"status": {
"code": 3,
"message": "Your file has been uploaded.",
"description": "Your data is ready to be analyzed."
},
"start": 1562662332293,
"end": 0,
"fileName": "",
"receipt": ""
},
"testNumber": 7
},
{
"testName": "get latest submission test",
"expectedResponse": {
"id": {
"lei": "B90YWS6AFX2LGWOXJ1LD",
"period": "2018",
"sequenceNumber": 12
},
"status": {
"code": 9,
"message": "Your data has syntactical and/or validity edits that need to be reviewed.",
"description": "Your file has been uploaded, but the filing process may not proceed until the file is corrected and re-uploaded."
},
"start": 1562662935676,
"end": 0,
"fileName": "clean_10_row.txt",
"receipt": ""
},
"testNumber": 8
},
{
"testName": "quality edits test",
"requestBody": {
"verified": true
},
"testNumber": 9
},
{
"testName": "macro edits test",
"requestBody": {
"verified": true
},
"testNumber": 10
},
{
"testName": "sign latest submission test",
"requestBody": {
"signed": true
},
"testNumber": 11
}
]
}
]
Loading

0 comments on commit b163725

Please sign in to comment.