Skip to content

Commit 04bf5e2

Browse files
committed
Updated integration test to return valid results
1 parent 5ab2d0c commit 04bf5e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cwms-data-api/src/test/java/cwms/cda/api/LevelsControllerTestIT.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ void test_location_level() throws Exception {
133133

134134
@Test
135135
void test_retrieve_effective_date() throws Exception {
136-
createLocation("level_with_effective_date", true, OFFICE);
137-
String levelId = "level_with_effective_date.Stor.Ave.1Day.Regulating";
136+
createLocation("level_with_effect", true, OFFICE);
137+
String levelId = "level_with_effect.Flow.Ave.1Day.Regulating";
138138
ZonedDateTime time = ZonedDateTime.of(2023, 6, 1, 0, 0, 0, 0, ZoneId.of("America/Los_Angeles"));
139139
CwmsDataApiSetupCallback.getDatabaseLink().connection(c -> {
140140
LocationLevel level = new LocationLevel.Builder(levelId, time)
141141
.withOfficeId(OFFICE)
142142
.withConstantValue(1.0)
143-
.withLevelUnitsId("ft")
143+
.withLevelUnitsId("cms")
144144
.build();
145145
levelList.add(level);
146146
DSLContext dsl = dslContext(c, OFFICE);
@@ -153,7 +153,7 @@ void test_retrieve_effective_date() throws Exception {
153153
.accept(Formats.JSONV2)
154154
.contentType(Formats.JSONV2)
155155
.queryParam(Controllers.OFFICE, OFFICE)
156-
.queryParam(LEVEL_ID_MASK, "level_get_all_loc_*")
156+
.queryParam(LEVEL_ID_MASK, "level_with_effect*")
157157
.queryParam(BEGIN, "2020-06-01T00:00:00Z")
158158
.when()
159159
.redirects().follow(true)

0 commit comments

Comments
 (0)