Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Storage
Commits
ded66216
Commit
ded66216
authored
1 year ago
by
Deepa Kumari
Browse files
Options
Downloads
Patches
Plain Diff
[MSCOSDU-1787] fix: undo unwanted change
parent
b0c0ff0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!841
Draft: Update version of default branch to 0.26.0-SNAPSHOT
,
!800
[MSOSDU-1787]: Increase code coverage percentage
Pipeline
#230863
failed
1 year ago
Stage: review
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/storage-test-core/src/main/java/org/opengroup/osdu/storage/query/PostQueryRecordsIntegrationTests.java
+5
-1
5 additions, 1 deletion
.../osdu/storage/query/PostQueryRecordsIntegrationTests.java
with
5 additions
and
1 deletion
testing/storage-test-core/src/main/java/org/opengroup/osdu/storage/query/PostQueryRecordsIntegrationTests.java
+
5
−
1
View file @
ded66216
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Deepa Kumari
@deepapathak
mentioned in commit
28915a05
·
1 year ago
mentioned in commit
28915a05
mentioned in commit 28915a05c1ef4421e7ef8b52e3a0d08dc4e7c7db
Toggle commit list
Mateusz Ruszczyk
@mruszczyk
mentioned in commit
e5e0ce37
·
9 months ago
mentioned in commit
e5e0ce37
mentioned in commit e5e0ce374f1e50dbb433341adf0b9e2522ce2f04
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment