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

New test framework #1967

Merged
merged 47 commits into from
Sep 20, 2022

Commits on Sep 13, 2022

  1. New test framework

    Signed-Off-By: Nils Bandener <[email protected]>
    nibix authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    1efe734 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3ae9a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6db0e64 View commit details
    Browse the repository at this point in the history
  4. removed unused code, replaced some old ES references

    Signed-off-by: Jochen Kressin <[email protected]>
    jochenkressin authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    1fa6c0a View commit details
    Browse the repository at this point in the history
  5. replaced JUnit asserts with Hamcrest asserts

    Signed-off-by: Jochen Kressin <[email protected]>
    jochenkressin authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    895e396 View commit details
    Browse the repository at this point in the history
  6. renamed ClusterConfiguration to ClusterManager

    Signed-off-by: Jochen Kressin <[email protected]>
    jochenkressin authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    b4cf9e9 View commit details
    Browse the repository at this point in the history
  7. throw exception if index already exists

    Signed-off-by: Jochen Kressin <[email protected]>
    jochenkressin authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    c79c68e View commit details
    Browse the repository at this point in the history
  8. fixed incorrect test

    Signed-off-by: Jochen Kressin <[email protected]>
    jochenkressin authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    8f94acf View commit details
    Browse the repository at this point in the history
  9. fixed code hygiene issues

    Signed-off-by: Jochen Kressin <[email protected]>
    jochenkressin authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    f1cef31 View commit details
    Browse the repository at this point in the history
  10. TestRestClient uses unchecked exceptions

    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    6f4dae9 View commit details
    Browse the repository at this point in the history
  11. List of plugins in ClusterManager is immutable.

    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    bbf5dc9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0289749 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f81ccc4 View commit details
    Browse the repository at this point in the history
  14. fix build.gradle - new test configuration, dependencies, desable forb…

    …iddenApisNewTest
    
    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    3e6179f View commit details
    Browse the repository at this point in the history
  15. Try with resources was used to close OpenSearch clinet in the LocalCl…

    …uster class.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    f373131 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d135827 View commit details
    Browse the repository at this point in the history
  17. Nodes objects are stored in one list (instead of four) in class Local…

    …OpenSearchCluster. Methods which return random node removed.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    69dfa18 View commit details
    Browse the repository at this point in the history
  18. OpenSearch claster is stopped immediatly, without invocations of thre…

    …ad sleep.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    9c1a35d View commit details
    Browse the repository at this point in the history
  19. rename newTest to integrationTest

    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    26f098b View commit details
    Browse the repository at this point in the history
  20. Method org.opensearch.test.framework.cluster.LocalOpenSearchCluster.N…

    …ode#start returns StartStage enum instead of string.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    69e3d31 View commit details
    Browse the repository at this point in the history
  21. Method org.opensearch.test.framework.cluster.LocalCluster.Builder#nod…

    …eSettings accepts map instead of varargs.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    216153e View commit details
    Browse the repository at this point in the history
  22. Method getUnitTestForkNumber removed, system property forkno is no lo…

    …nger used.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    85f599f View commit details
    Browse the repository at this point in the history
  23. ClusterBlockException does not appear in the course of integration te…

    …sts. Log4j2 reads configuration from src/integrationTest/resources/log4j2-test.properties
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    c32984e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    5b22c51 View commit details
    Browse the repository at this point in the history
  25. Redundant code in method org.opensearch.test.framework.cluster.LocalC…

    …luster#after replaced by close() invocation
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    075adfa View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    f217c35 View commit details
    Browse the repository at this point in the history
  27. Correction in class MinimumSecuritySettingsSupplierFactory to pass ch…

    …eckstyle tests, licence header added where missing, test classes moved to proper packages.
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    65df948 View commit details
    Browse the repository at this point in the history
  28. Netty dependencies conflict resolved

    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    ea4251c View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    237a49b View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    c0b23d2 View commit details
    Browse the repository at this point in the history
  31. Method LocalOpenSearchCluster#stop simplified.

    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    9f6a60c View commit details
    Browse the repository at this point in the history
  32. integrationTest - upgrade org.hamcrest:hamcrest to 2.2

    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    a418b64 View commit details
    Browse the repository at this point in the history
  33. add tests for SocketUtils class

    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    5340d9a View commit details
    Browse the repository at this point in the history
  34. add new line to SocketUtilsTests class

    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    e2c66c9 View commit details
    Browse the repository at this point in the history
  35. add separate spotless configuration for integrationTest

    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    777096e View commit details
    Browse the repository at this point in the history
  36. integrationTest - apply spotless formatting

    Signed-off-by: Kacper Trochimiak <[email protected]>
    kt-eliatra authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    652af5b View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    df0da3c View commit details
    Browse the repository at this point in the history
  38. Removed uses of NestedValueMap and replaced by ToXContent

    Signed-Off-By: Nils Bandener <[email protected]>
    nibix authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    9f4d715 View commit details
    Browse the repository at this point in the history
  39. Fixed imports

    Signed-Off-By: Nils Bandener <[email protected]>
    nibix authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    33f35f5 View commit details
    Browse the repository at this point in the history
  40. Modify defaults to prevent warnings from being added to the test output

    Removes the following messages from the output:
    2022-08-25 12:51:21 SUITE-SecurityRolesTests-seed#[BB25A03A663EB2F7] WARN  Salt:48 - If you plan to use field masking pls configure compliance salt e1ukloTsQlOgPquJ to be a random string of 16 chars length identical on all nodes
    2022-08-25 12:51:21 SUITE-SecurityRolesTests-seed#[BB25A03A663EB2F7] ERROR SinkProvider:64 - Default endpoint could not be created, auditlog will not work properly.
    2022-08-25 12:51:21 SUITE-SecurityRolesTests-seed#[BB25A03A663EB2F7] WARN  AuditMessageRouter:61 - No default storage available, audit log may not work properly. Please check configuration.
    
    Signed-off-by: Peter Nied <[email protected]>
    peternied authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    f1bce59 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    33b78b3 View commit details
    Browse the repository at this point in the history
  42. Output of integration tests cleaned.

    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    674be40 View commit details
    Browse the repository at this point in the history
  43. Added API docs

    Signed-Off-By: Nils Bandener <[email protected]>
    nibix authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    0757c08 View commit details
    Browse the repository at this point in the history
  44. Applied spotless rules

    Signed-Off-By: Nils Bandener <[email protected]>
    nibix authored and lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    08d6500 View commit details
    Browse the repository at this point in the history
  45. A temporary solution to limit the number of warning messages caused b…

    …y class NodeAndClusterIdConverter during tests execution
    
    Signed-off-by: Lukasz Soszynski <[email protected]>
    lukasz-soszynski-eliatra committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    67b5446 View commit details
    Browse the repository at this point in the history
  46. Fixed license headers

    Signed-Off-By: Nils Bandener <[email protected]>
    nibix committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    6e5e885 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. Configuration menu
    Copy the full SHA
    9fdb73a View commit details
    Browse the repository at this point in the history