Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Schema
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
Schema
Commits
97525404
Commit
97525404
authored
7 months ago
by
Isha Kumari
Browse files
Options
Downloads
Patches
Plain Diff
Add given statement
parent
f27ba76d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!694
Restore trailing slash behavior
Pipeline
#281032
failed
7 months ago
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: bootstrap
Stage: integration
Stage: clean
Stage: publish
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/schema-test-core/src/test/java/org/opengroup/osdu/schema/stepdefs/InfoStepDef_GET.java
+9
-5
9 additions, 5 deletions
...a/org/opengroup/osdu/schema/stepdefs/InfoStepDef_GET.java
with
9 additions
and
5 deletions
testing/schema-test-core/src/test/java/org/opengroup/osdu/schema/stepdefs/InfoStepDef_GET.java
+
9
−
5
View file @
97525404
...
...
@@ -64,19 +64,22 @@ public class InfoStepDef_GET {
assertNotNull
(
responseObject
.
commitId
);
assertNotNull
(
responseObject
.
commitMessage
);
}
@Then
(
"service should respond back with trailing slash"
)
public
void
should_returnInfo_withTrailingSlash
()
throws
Exception
{
@Given
(
"I send get request without a token to version info with Trailing Slash"
)
public
void
i_send_get_request_to_version_info_withTrailingSlash
()
{
HttpRequest
httpRequest
=
HttpRequest
.
builder
()
.
url
(
TestConstants
.
HOST
+
TestConstants
.
GET_INFO_ENDPOINT
+
"/"
)
.
httpMethod
(
HttpRequest
.
GET
)
.
build
();
HttpResponse
response
=
HttpClientFactory
.
getInstance
().
send
(
httpRequest
);
this
.
context
.
setHttpResponse
(
response
);
}
assertEquals
(
200
,
response
.
getCode
());
@Then
(
"service should respond back with trailing slash"
)
public
void
should_returnInfo_withTrailingSlash
()
{
assertEquals
(
200
,
this
.
context
.
getHttpResponse
().
getCode
());
VersionInfoUtils
.
VersionInfo
responseObject
=
this
.
versionInfoUtil
.
getVersionInfoFromResponse
(
r
esponse
);
.
getVersionInfoFromResponse
(
this
.
context
.
getHttpR
esponse
()
);
assertNotNull
(
responseObject
.
groupId
);
assertNotNull
(
responseObject
.
artifactId
);
...
...
@@ -87,4 +90,5 @@ public class InfoStepDef_GET {
assertNotNull
(
responseObject
.
commitMessage
);
}
}
This diff is collapsed.
Click to expand it.
Isha Kumari
@ishakumari
mentioned in commit
ae0bcd3e
·
7 months ago
mentioned in commit
ae0bcd3e
mentioned in commit ae0bcd3e11c55cb08634a6225b3ea7537ba86cbc
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