Skip to content

Conversation

@talevy
Copy link
Contributor

@talevy talevy commented Oct 30, 2018

This commit does a few things

  • moves ILM-specifc rest yaml tests into plugin/ilm/qa, and creates special
    :plugin:ilm:qa:rest module to test them
  • removes the with-security tests of the yaml tests since they are covered in
    the rest tests now
  • moves ChangePolicyforIndexIT into the qa/multi-node project since that test is
    not currently running in main ilm since integTest is disabled

This commit does a few things

- moves ILM-specifc rest yaml tests into plugin/ilm/qa, and creates special
  :plugin:ilm:qa:rest module to test them
- removes the with-security tests of the yaml tests since they are covered in
  the rest tests now
- moves ChangePolicyforIndexIT into the qa/multi-node project since that test is
  not currently running in main ilm since integTest is disabled
@talevy talevy added >test Issues or PRs that are addressing/adding tests blocker :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Oct 30, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@talevy
Copy link
Contributor Author

talevy commented Oct 30, 2018

As this build structure is borrowed from plugin/ccr, you will notice that there is no
:x-pack:plugin:ilm:qa:check, one must run each qa module separately, or run all with
:x-pack:plugin:ilm:check.

If this is not desired, we can modify (maybe in a followup, or here)

EDIT EDIT EDIT:
qa:check now works as committed

@talevy
Copy link
Contributor Author

talevy commented Oct 31, 2018

nevermind. CI hates that qa's check is broken with no licenseHeaders to verify

:x-pack:plugin:ilm:qa:licenseHeaders FAILED

will dig into this, I may be missing something. running theory is that there are no src files to check, unlike in CCR where there is

Copy link
Contributor

@alpar-t alpar-t left a comment

Choose a reason for hiding this comment

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

Left a minor comment, other than that LGTM


subprojects {
project.tasks.withType(RestIntegTestTask) {
final File xPackResources = new File(xpackProject('plugin').projectDir, 'src/test/resources')
Copy link
Contributor

Choose a reason for hiding this comment

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

Gradle encodes this information as a SourceSet,
so you can reference this path as xpack('plugin').sourceSets.test.resources

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like xpack is not accessible from RestIntegTestTask

> Could not create task ':x-pack:plugin:ilm:qa:multi-node:integTest'.
  > Could not find method xpack() for arguments [plugin] on task ':x-pack:plugin:ilm:qa:multi-node:integTest' of type org.elasticsearch.gradle.test.RestIntegTestTask.

Copy link
Contributor

@colings86 colings86 left a comment

Choose a reason for hiding this comment

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

LGTM on the structure side. Thanks @atorok for taking a look at the gradle side.

@talevy
Copy link
Contributor Author

talevy commented Oct 31, 2018

thank you @atorok and @colings86 for taking another look at this

@talevy talevy merged commit 5f4b23f into elastic:index-lifecycle Oct 31, 2018
@talevy talevy deleted the ilm-cleanup-qa branch October 31, 2018 18:50
talevy added a commit that referenced this pull request Oct 31, 2018
This commit does a few things

- moves ILM-specifc rest yaml tests into plugin/ilm/qa, and creates special
  :plugin:ilm:qa:rest module to test them
- removes the with-security tests of the yaml tests since they are covered in
  the rest tests now
- moves ChangePolicyforIndexIT into the qa/multi-node project since that test is
  not currently running in main ilm since integTest is disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker :Data Management/ILM+SLM Index and Snapshot lifecycle management >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants