-
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.
- Loading branch information
Showing
8 changed files
with
2,576 additions
and
538 deletions.
There are no files selected for viewing
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
112 changes: 78 additions & 34 deletions
112
cwms-radar-client/src/test/resources/radar/v1/json/water_supply_accounting.json
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,43 +1,87 @@ | ||
{ | ||
"contract-name": "TEST_CONTRACT", | ||
"contract-name": "Sac. River Contract", | ||
"water-user": { | ||
"entity-name": "Test User", | ||
"entity-name": "California Department of Water Resources", | ||
"project-id": { | ||
"name": "SACRAMENTO", | ||
"office-id": "SWT" | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta" | ||
}, | ||
"water-right": "Test Water Right" | ||
"water-right": "State of California Water Rights Permit #12345" | ||
}, | ||
"pump-accounting": [ | ||
{ | ||
"pump-location": { | ||
"office-id": "SWT", | ||
"name": "PUMP3" | ||
"pump-locations": { | ||
"pump-in": { | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta-Dam Water Pump 1" | ||
}, | ||
"pump-out": { | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta-Dam Water Pump 2" | ||
}, | ||
"pump-below": { | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta-Dam Water Pump 3" | ||
} | ||
}, | ||
"pump-accounting": { | ||
"2022-11-20T21:17:28Z": [ | ||
{ | ||
"pump-type": "IN", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 1.0, | ||
"comment": "Added water to the system" | ||
}, | ||
"transfer-type": { | ||
"office-id": "SWT", | ||
"display-value": "Test Transfer Type", | ||
"tooltip": "Test Tool Tip", | ||
"active": true | ||
{ | ||
"pump-type": "OUT", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 2.0, | ||
"comment": "Removed excess water" | ||
}, | ||
"flow": 1.0, | ||
"transfer-date": 10000012648000, | ||
"comment": "Test Comment" | ||
}, | ||
{ | ||
"pump-location": { | ||
"office-id": "SWT", | ||
"name": "PUMP1" | ||
{ | ||
"pump-type": "BELOW", | ||
"transfer-type-display": "River", | ||
"flow": 3.0, | ||
"comment": "Daily water release" | ||
} | ||
], | ||
"2022-11-21T21:17:28Z": [ | ||
{ | ||
"pump-type": "IN", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 4.0, | ||
"comment": "Pump transfer for the day" | ||
}, | ||
"transfer-type": { | ||
"office-id": "SWT", | ||
"display-value": "Test Transfer Type", | ||
"tooltip": "Test Tool Tip", | ||
"active": true | ||
{ | ||
"pump-type": "OUT", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 5.0, | ||
"comment": "Excess water transfer" | ||
}, | ||
"flow": 2.0, | ||
"transfer-date": 10000016484000, | ||
"comment": "Test Comment 2" | ||
} | ||
] | ||
} | ||
{ | ||
"pump-type": "BELOW", | ||
"transfer-type-display": "River", | ||
"flow": 6.0, | ||
"comment": "Water returned to the river" | ||
} | ||
], | ||
"2022-11-22T21:17:28Z": [ | ||
{ | ||
"pump-type": "IN", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 7.0, | ||
"comment": "Pump transfer for the day" | ||
}, | ||
{ | ||
"pump-type": "OUT", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 8.0, | ||
"comment": "Excess water transfer" | ||
}, | ||
{ | ||
"pump-type": "BELOW", | ||
"transfer-type-display": "River", | ||
"flow": 9.0, | ||
"comment": "Water returned to the river" | ||
} | ||
] | ||
} | ||
} |
110 changes: 77 additions & 33 deletions
110
cwms-radar-client/src/test/resources/radar/v1/json/water_supply_accounting_list.json
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,45 +1,89 @@ | ||
[ | ||
{ | ||
"contract-name": "TEST_CONTRACT", | ||
"contract-name": "Sac. River Contract", | ||
"water-user": { | ||
"entity-name": "Test User", | ||
"entity-name": "California Department of Water Resources", | ||
"project-id": { | ||
"name": "SACRAMENTO", | ||
"office-id": "SWT" | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta" | ||
}, | ||
"water-right": "Test Water Right" | ||
"water-right": "State of California Water Rights Permit #12345" | ||
}, | ||
"pump-accounting": [ | ||
{ | ||
"pump-location": { | ||
"office-id": "SWT", | ||
"name": "PUMP3" | ||
"pump-locations": { | ||
"pump-in": { | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta-Dam Water Pump 1" | ||
}, | ||
"pump-out": { | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta-Dam Water Pump 2" | ||
}, | ||
"pump-below": { | ||
"office-id": "SPK", | ||
"name": "Sacramento River Delta-Dam Water Pump 3" | ||
} | ||
}, | ||
"pump-accounting": { | ||
"2022-11-20T21:17:28Z": [ | ||
{ | ||
"pump-type": "IN", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 1.0, | ||
"comment": "Added water to the system" | ||
}, | ||
"transfer-type": { | ||
"office-id": "SWT", | ||
"display-value": "Test Transfer Type", | ||
"tooltip": "Test Tool Tip", | ||
"active": true | ||
{ | ||
"pump-type": "OUT", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 2.0, | ||
"comment": "Removed excess water" | ||
}, | ||
"flow": 1.0, | ||
"transfer-date": 10000012648000, | ||
"comment": "Test Comment" | ||
}, | ||
{ | ||
"pump-location": { | ||
"office-id": "SWT", | ||
"name": "PUMP1" | ||
{ | ||
"pump-type": "BELOW", | ||
"transfer-type-display": "River", | ||
"flow": 3.0, | ||
"comment": "Daily water release" | ||
} | ||
], | ||
"2022-11-21T21:17:28Z": [ | ||
{ | ||
"pump-type": "IN", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 4.0, | ||
"comment": "Pump transfer for the day" | ||
}, | ||
"transfer-type": { | ||
"office-id": "SWT", | ||
"display-value": "Test Transfer Type", | ||
"tooltip": "Test Tool Tip", | ||
"active": true | ||
{ | ||
"pump-type": "OUT", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 5.0, | ||
"comment": "Excess water transfer" | ||
}, | ||
"flow": 2.0, | ||
"transfer-date": 10000016484000, | ||
"comment": "Test Comment 2" | ||
} | ||
] | ||
{ | ||
"pump-type": "BELOW", | ||
"transfer-type-display": "River", | ||
"flow": 6.0, | ||
"comment": "Water returned to the river" | ||
} | ||
], | ||
"2022-11-22T21:17:28Z": [ | ||
{ | ||
"pump-type": "IN", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 7.0, | ||
"comment": "Pump transfer for the day" | ||
}, | ||
{ | ||
"pump-type": "OUT", | ||
"transfer-type-display": "Pipeline", | ||
"flow": 8.0, | ||
"comment": "Excess water transfer" | ||
}, | ||
{ | ||
"pump-type": "BELOW", | ||
"transfer-type-display": "River", | ||
"flow": 9.0, | ||
"comment": "Water returned to the river" | ||
} | ||
] | ||
} | ||
} | ||
] |
Oops, something went wrong.