-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature/distributed create entity #1321
Conversation
Test Results 71 files + 1 71 suites +1 1m 30s ⏱️ -1s Results for commit ee26f8d. ± Comparison against base commit aaf79ce. This pull request removes 187 and adds 45 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
dc83f2a
to
0942d7c
Compare
9dd9607
to
487d0a9
Compare
search-service/src/main/kotlin/com/egm/stellio/search/csr/model/CSRFilters.kt
Outdated
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/csr/model/ContextSourceRegistration.kt
Outdated
Show resolved
Hide resolved
shared/src/main/kotlin/com/egm/stellio/shared/model/ExpandedEntity.kt
Outdated
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/csr/model/ContextSourceRegistration.kt
Outdated
Show resolved
Hide resolved
shared/src/main/kotlin/com/egm/stellio/shared/model/ExpandedEntity.kt
Outdated
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
shared/src/main/kotlin/com/egm/stellio/shared/model/ApiExceptions.kt
Outdated
Show resolved
Hide resolved
c785fa5
to
a7699c4
Compare
shared/src/main/kotlin/com/egm/stellio/shared/model/ExpandedEntity.kt
Outdated
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/entity/web/BatchAPIResponses.kt
Outdated
Show resolved
Hide resolved
shared/src/main/kotlin/com/egm/stellio/shared/model/ApiExceptions.kt
Outdated
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/entity/web/BatchAPIResponses.kt
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/entity/web/BatchAPIResponses.kt
Outdated
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/csr/model/ContextSourceRegistration.kt
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
(missing error gestion and tests)
(test update missing)
Co-authored-by: Benoit Orihuela <[email protected]>
4ecbc64
to
5be9d25
Compare
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Show resolved
Hide resolved
...h-service/src/test/kotlin/com/egm/stellio/search/csr/model/ContextSourceRegistrationTests.kt
Outdated
Show resolved
Hide resolved
...src/test/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionServiceTests.kt
Outdated
Show resolved
Hide resolved
...src/test/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionServiceTests.kt
Outdated
Show resolved
Hide resolved
search-service/src/main/kotlin/com/egm/stellio/search/entity/web/BatchAPIResponses.kt
Outdated
Show resolved
Hide resolved
...vice/src/main/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionService.kt
Outdated
Show resolved
Hide resolved
...src/test/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionServiceTests.kt
Outdated
Show resolved
Hide resolved
...src/test/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionServiceTests.kt
Outdated
Show resolved
Hide resolved
@Test | ||
fun `postDistributedInformation should process badly formed errors`() = runTest { | ||
val csr = gimmeRawCSR() | ||
val path = "/ngsi-ld/v1/entities" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a future PR, we should extract these paths into constants, I see them popping a lot recently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, i kind of start doing it for the delete entity.
assertEquals(response.leftOrNull()?.type, ErrorType.BAD_GATEWAY.type) | ||
assertEquals(response.leftOrNull()?.status, HttpStatus.BAD_GATEWAY) | ||
assertEquals(response.leftOrNull()?.detail, invalidErrorResponse) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the asserts are not in the correct order (it is always (expected, actual))
...src/test/kotlin/com/egm/stellio/search/csr/service/DistributedEntityProvisionServiceTests.kt
Outdated
Show resolved
Hide resolved
search-service/src/test/kotlin/com/egm/stellio/search/entity/web/EntityHandlerTests.kt
Show resolved
Hide resolved
search-service/src/test/kotlin/com/egm/stellio/search/entity/web/EntityHandlerTests.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Benoit Orihuela <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK once the last suggestions have been handled
…ice/DistributedEntityProvisionServiceTests.kt Co-authored-by: Benoit Orihuela <[email protected]>
* feat:support for local parameter * feat:support for local parameter * fix: apply local on true * fix: apply local on true * fix: apply local on true * fix: apply local on true * fix: issue with rebase * fix: detekt after suggestion
|
Still missing :
test for EntityHandler createtest for DistributedEntityProvisionService