Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(tests): Restructure HttpElasticExecutorSpec #270

Merged

Conversation

mihajlo-ra92
Copy link
Contributor

No description provided.

@drmarjanovic drmarjanovic changed the title Refactor httpElasticExecutorSpec (tests): Restructure HttpElasticExecutorSpec Jun 24, 2023
Comment on lines 58 to 60
equalTo(
Map(
"aggregation1" -> TermsAggregationResult(
docErrorCount = 0,
sumOtherDocCount = 0,
buckets = Chunk(TermsAggregationBucketResult(docCount = 5, key = "name", subAggregations = Map.empty))
)
)
expectedTermsAggregationResult
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this in one (not same).

Comment on lines 87 to 93
assertZIO(
Executor.execute(ElasticRequest.bulk(ElasticRequest.create(index, doc)).refreshTrue)
executorBulk
)(
equalTo(
BulkResponse(
took = 3,
errors = false,
items = Chunk(
CreateBulkResponse(
index = "repositories",
id = "123",
version = Some(1),
result = Some("created"),
shards = Some(Shards(total = 1, successful = 1, failed = 0)),
status = Some(201),
error = None
)
)
)
expectedBulkResponse
)
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeat same here.

Comment on lines 99 to 105
assertZIO(
executorCount
)(
equalTo(
2
)
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

@dbulaja98 dbulaja98 merged commit afeda67 into lambdaworks:main Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants