Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Indexer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
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
Indexer
Commits
a8f04727
Commit
a8f04727
authored
2 years ago
by
Neelesh Thakur
Browse files
Options
Downloads
Patches
Plain Diff
resolve kind name issue
parent
954db8f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!346
Merge branch 'aws-integration' into 'master'
,
!307
use index delete api for IT post clean-up
Pipeline
#106494
passed with warnings
2 years ago
Stage: review
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Changes
1
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/SchemaServiceRecordSteps.java
+4
-3
4 additions, 3 deletions
...a/org/opengroup/osdu/common/SchemaServiceRecordSteps.java
with
4 additions
and
3 deletions
testing/indexer-test-core/src/main/java/org/opengroup/osdu/common/SchemaServiceRecordSteps.java
+
4
−
3
View file @
a8f04727
...
...
@@ -17,12 +17,11 @@ public class SchemaServiceRecordSteps extends RecordSteps {
public
void
the_schema_is_created_with_the_following_kind
(
DataTable
dataTable
)
{
List
<
Setup
>
inputList
=
dataTable
.
asList
(
Setup
.
class
);
inputList
.
forEach
(
this
::
createSchema
);
inputList
.
forEach
(
s
->
deleteIndex
(
s
.
getKind
()));
inputList
.
forEach
(
this
::
setup
);
super
.
addShutDownHook
();
}
private
void
createSchema
(
Setup
input
)
{
private
void
setup
(
Setup
input
)
{
PersistentSchemaTestIndex
testIndex
=
new
PersistentSchemaTestIndex
(
super
.
elasticUtils
,
super
.
httpClient
,
this
);
testIndex
.
setIndex
(
generateActualName
(
input
.
getIndex
(),
super
.
getTimeStamp
()));
testIndex
.
setSchemaFile
(
input
.
getSchemaFile
());
...
...
@@ -31,6 +30,8 @@ public class SchemaServiceRecordSteps extends RecordSteps {
testIndex
.
setKind
(
testIndex
.
getSchemaModel
().
getSchemaInfo
().
getSchemaIdentity
().
getId
());
super
.
getInputIndexMap
().
put
(
testIndex
.
getKind
(),
testIndex
);
deleteIndex
(
testIndex
.
getKind
());
}
private
void
deleteIndex
(
String
kind
)
{
...
...
This diff is collapsed.
Click to expand it.
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