Skip to content

CWMS-2172: Enabled LRTS tests for Forecast Spec #1187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import fixtures.CwmsDataApiSetupCallback;
import fixtures.TestAccounts;
import io.restassured.filter.log.LogDetail;
import org.junit.jupiter.api.Disabled;
import usace.cwms.db.jooq.codegen.packages.CWMS_FCST_PACKAGE;

import org.apache.commons.io.IOUtils;
Expand Down Expand Up @@ -253,18 +252,14 @@ void test_create_get_delete_get() throws Exception {
}

@Test
@Disabled("Disabled until the retrieval returns the new LRTS interval identifier")
void test_create_get_delete_get_lrts() throws Exception {

// Structure of test:
//
// 1)Create the spec
// 2)Retrieve the spec and assert that it exists
// 3)Delete the spec
// 4)Retrieve the spec and assert that it does not exist
// 1) Create the spec
// 2) Retrieve the spec and assert that it exists
// 3) Delete the spec
// 4) Retrieve the spec and assert that it does not exist

String specId = "TEST-SPEC-LRTS";

TestAccounts.KeyUser user = TestAccounts.KeyUser.SPK_NORMAL;

// Step 1)
Expand Down Expand Up @@ -316,7 +311,9 @@ void test_create_get_delete_get_lrts() throws Exception {
.body("time-series-ids[1]", equalTo("TsBinTestLoc.Flow.Ave.1DayLocal.1Day.tsid2"))
.body("time-series-ids[2]", equalTo("TsBinTestLoc.Flow.Ave.1DayLocal.1Day.tsid3"))
;

truncateFcstTimeSeries();

// Step 3)
// Delete the spec
given()
Expand Down
Loading