Skip to content

[7.x][ML] Remove direct access to system index from filter_crud REST …#63115

Merged
dimitris-athanasiou merged 1 commit intoelastic:7.xfrom
dimitris-athanasiou:remove-direct-access-to-system-index-from-filter-test-7x
Oct 1, 2020
Merged

[7.x][ML] Remove direct access to system index from filter_crud REST …#63115
dimitris-athanasiou merged 1 commit intoelastic:7.xfrom
dimitris-athanasiou:remove-direct-access-to-system-index-from-filter-test-7x

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

…test (#63111)

This test accesses system indices for 2 reasons.

First, it creates a filter that has a different type. This was done
to assert that filter is not returned from the APIs. However,
now that access to the .ml-meta index is restricted,
it is not really a concern.

Second, it creates a .ml-meta index without mappings to test
the get API does not fail due to lack of mappings on a sorted field,
namely the filter_id. Once again, this test is less useful once
system indices have restricted access.

Relates #62501

Backport of #63111

…test (elastic#63111)

This test accesses system indices for 2 reasons.

First, it creates a filter that has a different type. This was done
to assert that filter is not returned from the APIs. However,
now that access to the `.ml-meta` index is restricted,
it is not really a concern.

Second, it creates a `.ml-meta` index without mappings to test
the get API does not fail due to lack of mappings on a sorted field,
namely the `filter_id`. Once again, this test is less useful once
system indices have restricted access.

Relates elastic#62501

Backport of elastic#63111
@dimitris-athanasiou dimitris-athanasiou added >test Issues or PRs that are addressing/adding tests :ml Machine learning backport labels Oct 1, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (:ml)

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor Author

run elasticsearch-ci/packaging-sample-windows

@dimitris-athanasiou dimitris-athanasiou merged commit 46c3973 into elastic:7.x Oct 1, 2020
@dimitris-athanasiou dimitris-athanasiou deleted the remove-direct-access-to-system-index-from-filter-test-7x branch October 1, 2020 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :ml Machine learning >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants