mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
In #11265 we added an ability to filter out sensitive repository settings. This commit uses this change to filter out access_key and filter_key in S3 repository settings. Closes elastic/elasticsearch-cloud-aws#184
24 lines
686 B
YAML
24 lines
686 B
YAML
# Integration tests for Cloud AWS components
|
|
#
|
|
"S3 repository can be registereed":
|
|
- do:
|
|
snapshot.create_repository:
|
|
repository: test_repo_s3_1
|
|
verify: false
|
|
body:
|
|
type: s3
|
|
settings:
|
|
bucket: "my_bucket_name"
|
|
access_key: "AKVAIQBF2RECL7FJWGJQ"
|
|
secret_key: "vExyMThREXeRMm/b/LRzEB8jWwvzQeXgjqMX+6br"
|
|
|
|
# Get repositry
|
|
- do:
|
|
snapshot.get_repository:
|
|
repository: test_repo_s3_1
|
|
|
|
- is_true: test_repo_s3_1
|
|
- is_true: test_repo_s3_1.settings.bucket
|
|
- is_false: test_repo_s3_1.settings.access_key
|
|
- is_false: test_repo_s3_1.settings.secret_key
|