-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented updated IT for siteresources
- Loading branch information
Showing
5 changed files
with
171 additions
and
42 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
32 changes: 32 additions & 0 deletions
32
...s-rest-api/src/test/resources/org/opendcs/odcsapi/res/it/OPEN_TSDB/site_get_expected.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"siteId" : 1, | ||
"sitenames" : { | ||
"PUMP" : "Pump Site" | ||
}, | ||
"description" : "Pump located in NM, USA", | ||
"latitude" : "0.0", | ||
"longitude" : "0.0", | ||
"elevation" : 56.3, | ||
"elevUnits" : "m", | ||
"nearestCity" : "Albuquerque", | ||
"timezone" : "UTC", | ||
"state" : "NM", | ||
"country" : "US", | ||
"region" : null, | ||
"active" : true, | ||
"locationType" : "PUMP", | ||
"publicName" : "Pump Site", | ||
"properties" : { | ||
"pumpType" : "Centrifugal", | ||
"pumpSize" : "1000 gpm", | ||
"pumpModel" : "ABC-123", | ||
"pumpSerial" : "123456", | ||
"pumpManufacturer" : "PumpCo", | ||
"pumpInstallDate" : 1612194310000, | ||
"pumpLastMaintDate" : 1612194310000, | ||
"pumpMaintInterval" : 365, | ||
"pumpMaintIntervalUnits" : "days", | ||
"pumpMaintNotes" : "This is a test pump" | ||
}, | ||
"lastModified" : 1609515910000 | ||
} |
11 changes: 11 additions & 0 deletions
11
...t-api/src/test/resources/org/opendcs/odcsapi/res/it/OPEN_TSDB/site_get_refs_expected.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"siteId": 4, | ||
"sitenames": | ||
{ | ||
"PUMP": "Pump Site" | ||
}, | ||
"publicName": "Pump Site", | ||
"description": "Pump located in NM, USA" | ||
} | ||
] |
32 changes: 32 additions & 0 deletions
32
...est-api/src/test/resources/org/opendcs/odcsapi/res/it/OPEN_TSDB/site_post_delete_dto.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"siteId" : 18817, | ||
"sitenames" : { | ||
"LOCK" : "Test Lock" | ||
}, | ||
"description" : "LOCK Site", | ||
"latitude" : "38.56", | ||
"longitude" : "-121.72", | ||
"elevation" : 56.3, | ||
"elevUnits" : "m", | ||
"nearestCity" : "Davis", | ||
"timezone" : "UTC", | ||
"state" : "CA", | ||
"country" : "US", | ||
"region" : null, | ||
"active" : true, | ||
"locationType" : "LOCK", | ||
"publicName" : "Pool Site", | ||
"properties" : { | ||
"pumpType" : "Centrifugal", | ||
"pumpSize" : "1000 gpm", | ||
"pumpModel" : "ABC-123", | ||
"pumpSerial" : "123456", | ||
"pumpManufacturer" : "PumpCo", | ||
"pumpInstallDate" : 161219431000, | ||
"pumpLastMaintDate" : 1612194510000, | ||
"pumpMaintInterval" : 365, | ||
"pumpMaintIntervalUnits" : "days", | ||
"pumpMaintNotes" : "This is a test pump" | ||
}, | ||
"lastModified" : 1612194310000 | ||
} |
32 changes: 32 additions & 0 deletions
32
opendcs-rest-api/src/test/resources/org/opendcs/odcsapi/res/it/OPEN_TSDB/site_setup_dto.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"siteId" : null, | ||
"sitenames" : { | ||
"PUMP" : "Pump Site" | ||
}, | ||
"description" : "Pump located in NM, USA", | ||
"latitude" : "0.0", | ||
"longitude" : "0.0", | ||
"elevation" : 56.3, | ||
"elevUnits" : "m", | ||
"nearestCity" : "Albuquerque", | ||
"timezone" : "UTC", | ||
"state" : "NM", | ||
"country" : "US", | ||
"region" : null, | ||
"active" : true, | ||
"locationType" : "PUMP", | ||
"publicName" : "Pump Site", | ||
"properties" : { | ||
"pumpType" : "Centrifugal", | ||
"pumpSize" : "1000 gpm", | ||
"pumpModel" : "ABC-123", | ||
"pumpSerial" : "123456", | ||
"pumpManufacturer" : "PumpCo", | ||
"pumpInstallDate" : 1612194310000, | ||
"pumpLastMaintDate" : 1612194310000, | ||
"pumpMaintInterval" : 365, | ||
"pumpMaintIntervalUnits" : "days", | ||
"pumpMaintNotes" : "This is a test pump" | ||
}, | ||
"lastModified" : 1609515910000 | ||
} |