Skip to content

add qa project for running ILM tests against security #32218

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

Merged
merged 3 commits into from
Jul 23, 2018

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Jul 19, 2018

add QA project for running ILM tests against security

This is a bare-bones skeleton for running existing yaml tests with security enabled. Additional tests which test users and roles should follow

@talevy talevy added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Jul 19, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

This is a bare-bones skeleton for running existing yaml tests with security
enabled. Additional tests which test users and roles should follow
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.

LGTM, just some nits

// bring in machine learning rest test suite
task copyILMRestTests(type: Copy) {
into project.sourceSets.test.output.resourcesDir
from project(xpackProject('plugin').path).sourceSets.test.resources.srcDirs
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize we use this elsewhere, but was wondering if there's really a reason for it ? xpackProject('plugin') already returns a Project why wrap it in another call ? The additional project(.path) seems unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right. I'll try that

File tmpFile = new File(node.cwd, 'wait.success')
ant.get(src: "http://${node.httpUri()}/_cluster/health?wait_for_nodes=>=${numNodes}&wait_for_status=yellow",
dest: tmpFile.toString(),
username: 'test_user',
Copy link
Contributor

Choose a reason for hiding this comment

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

Would try to get this from the system properties as well.
Maybe extract these into variables to remove repetition.
I'm assuming the properties are there so they can be used with external clusters for which the wait conditions are not called, but that's an implementation detail and looks odd not to consider the properties in here.

@talevy talevy requested a review from colings86 July 20, 2018 15:40
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.

LGTM2

@talevy
Copy link
Contributor Author

talevy commented Jul 20, 2018

thanks for the review @colings86 and @atorok. Your suggestions were helpful. I am too quick to turn a blind eye when it comes to gradle/groovy configuration

@talevy talevy merged commit 1a1ae5d into elastic:index-lifecycle Jul 23, 2018
@talevy talevy deleted the ilm-tests-with-security branch July 23, 2018 18:14
jasontedor pushed a commit that referenced this pull request Aug 17, 2018
This is a bare-bones skeleton for running existing yaml tests with security
enabled. Additional tests which test users and roles should follow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
: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