kapua icon indicating copy to clipboard operation
kapua copied to clipboard

QA - Elasticsearch Embedded Node should be used only in Datastore tests

Open gbarbon opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. The Elasticsearch Embedded Node is being used also in integration tests that are not related to the Datastore. For instance, the User Permission Cucumber tests are using a Datastore instance in the following scenario:

  Scenario: Add Datastore domain permissions to new user
    Create a new kapua-a user in the kapua-sys account.
    Add permissions from the Datastore domain to the kapua-a user.
    Login as kapua-a user and verify that all the permissions are added correctly.

while it should be sufficient to perform a check with AuthenticationService.checkPermission.

The use of an embedded Datastore makes the test not only more complex, but also slower.

Describe the solution you'd like Integration tests should be checked in order to remove the Datastore instances where not needed.

Describe alternatives you've considered n/a

Additional context n/a

gbarbon avatar Dec 18 '20 14:12 gbarbon