Skip to content
Snippets Groups Projects
Commit ded66216 authored by Deepa Kumari's avatar Deepa Kumari
Browse files

[MSCOSDU-1787] fix: undo unwanted change

parent b0c0ff0d
No related branches found
No related tags found
2 merge requests!841Draft: Update version of default branch to 0.26.0-SNAPSHOT,!800[MSOSDU-1787]: Increase code coverage percentage
Pipeline #230863 failed
......@@ -41,7 +41,9 @@ public abstract class PostQueryRecordsIntegrationTests extends TestBase {
String jsonInput = RecordUtil.createDefaultJsonRecords(3, RECORD_ID, KIND, LEGAL_TAG);
CloseableHttpResponse response = TestUtils.send("records", "PUT", HeaderUtils.getHeaders(TenantUtils.getTenantName(), token), jsonInput, "");
CloseableHttpResponse modifyRecordsResponse = TestUtils.send("records", "PUT", HeaderUtils.getHeaders(TenantUtils.getTenantName(), token), jsonInput, "");
assertEquals(201, response.getCode());
assertEquals(201, modifyRecordsResponse.getCode());
}
public static void classTearDown(String token) throws Exception {
......@@ -75,6 +77,8 @@ public abstract class PostQueryRecordsIntegrationTests extends TestBase {
assertEquals(TestUtils.getAcl(), responseObject.records[0].acl.viewers[0]);
assertEquals(RECORD_ID + 0, responseObject.records[0].id);
assertEquals(KIND, responseObject.records[0].kind);
assertTrue(responseObject.records[0].createUser != null && responseObject.records[0].createTime != null);
assertTrue(responseObject.records[0].modifyUser != null && responseObject.records[0].modifyTime != null);
assertTrue(responseObject.records[0].version != null && !responseObject.records[0].version.isEmpty());
assertEquals(3, responseObject.records[0].data.size());
}
......@@ -150,4 +154,4 @@ public abstract class PostQueryRecordsIntegrationTests extends TestBase {
assertEquals("nonexisting:id", responseObject.invalidRecords[0]);
assertEquals(0, responseObject.retryRecords.length);
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment