mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 19:58:59 +00:00
add the unit test for api getDatasetVersions
This commit is contained in:
parent
ceb623f30e
commit
ff599a88f5
@ -111,6 +111,12 @@ public class ControllersTest {
|
||||
JsonNode sampleNode = Json.parse(contentAsString(result));
|
||||
assertThat(sampleNode.isContainerNode());
|
||||
//assertThat(sampleNode.get("status").asText()).isEqualTo("ok");
|
||||
|
||||
result = controllers.api.v1.Dataset.getDatasetVersions(datasetId)
|
||||
assertThat(status(result)).isEqualTo(OK);
|
||||
JsonNode versionNode = Json.parse(contentAsString(result));
|
||||
assertThat(versionNode.isContainerNode());
|
||||
assertThat(versionNode.get("status").asText()).isEqualTo("ok");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user