Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Adding support for Security Test Framework #331

Merged
merged 3 commits into from
Dec 17, 2020

Conversation

saratvemulapalli
Copy link
Contributor

*Issue #195 *

Description of changes:
Adding support for Security tests for AD.
These tests will be run as part of CI and also can be locally tested with a test cluster.

Running locally:
-Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin --tests "com.amazon.opendistroforelasticsearch.ad.rest.SecureADRestIT.*"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Dec 15, 2020

Codecov Report

Merging #331 (3d645bf) into master (c949011) will increase coverage by 1.84%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #331      +/-   ##
============================================
+ Coverage     73.66%   75.51%   +1.84%     
- Complexity     2022     2159     +137     
============================================
  Files           201      207       +6     
  Lines          9664    10030     +366     
  Branches        860      898      +38     
============================================
+ Hits           7119     7574     +455     
+ Misses         2112     2034      -78     
+ Partials        433      422      -11     
Flag Coverage Δ Complexity Δ
cli 79.27% <ø> (ø) 0.00 <ø> (ø)
plugin 75.22% <ø> (+2.00%) 0.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...asticsearch/ad/cluster/ADClusterEventListener.java 88.00% <0.00%> (-4.00%) 13.00% <0.00%> (-1.00%)
...sticsearch/ad/indices/AnomalyDetectionIndices.java 49.01% <0.00%> (-0.66%) 39.00% <0.00%> (-1.00%)
...opendistroforelasticsearch/ad/stats/StatNames.java 100.00% <0.00%> (ø) 5.00% <0.00%> (ø%)
...rch/ad/transport/StatsAnomalyDetectorResponse.java 100.00% <0.00%> (ø) 5.00% <0.00%> (+1.00%)
...roforelasticsearch/ad/stats/InternalStatNames.java 100.00% <0.00%> (ø) 3.00% <0.00%> (?%)
...pendistroforelasticsearch/ad/model/ADTaskType.java 100.00% <0.00%> (ø) 1.00% <0.00%> (?%)
...endistroforelasticsearch/ad/model/ADTaskState.java 100.00% <0.00%> (ø) 1.00% <0.00%> (?%)
...oforelasticsearch/ad/model/DetectionDateRange.java 89.18% <0.00%> (ø) 11.00% <0.00%> (?%)
...forelasticsearch/ad/model/AnomalyDetectorType.java 100.00% <0.00%> (ø) 1.00% <0.00%> (?%)
...on/opendistroforelasticsearch/ad/model/ADTask.java 100.00% <0.00%> (ø) 57.00% <0.00%> (?%)
... and 10 more

@saratvemulapalli saratvemulapalli added the enhancement New feature or request label Dec 15, 2020
Copy link
Contributor

@yizheliu-amazon yizheliu-amazon left a comment

Choose a reason for hiding this comment

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

Thanks for the change. Make sure we have corresponding CI set up as next step.

@saratvemulapalli
Copy link
Contributor Author

Thanks for the change. Make sure we have corresponding CI set up as next step.

Sure this already runs as part of the CI today, we are just adding a full new suite of tests.
This is also run as part of our CI for every build: https://github.com/opendistro-for-elasticsearch/anomaly-detection/blob/master/.github/workflows/CI.yml#L77

@saratvemulapalli saratvemulapalli merged commit 4ef7e30 into master Dec 17, 2020
@saratvemulapalli saratvemulapalli deleted the fgac-integration-tests branch December 17, 2020 19:47
@ylwu-amzn ylwu-amzn added infra and removed enhancement New feature or request labels Feb 10, 2021
ylwu-amzn pushed a commit that referenced this pull request Feb 24, 2021
* Adding support for Security Test Framework

* Excluding secure tests when not running against security plugin

* Updating Delete Detector test to expect exception
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants