[TEST] fix remote.info CCS yaml tests
The api has been renamed to cluster.remote_info. Also we should clean up the cluster that's been registered when the test is completed.
- match: { my_remote_cluster.initial_connect_timeout: "30s" }
- match: { test_remote_cluster.initial_connect_timeout: "30s" }
+ - do:
+ cluster.put_settings:
+ body:
+ transient:
+ search.remote.test_remote_cluster.seeds: null
+
---
"skip_unavailable is returned as part of _remote/info response":
- skip:
reason: "skip_unavailable is only returned from 6.1.0 on"
- do:
- remote.info: {}
- - is_false: my_remote_cluster.skip_unavailable
+ cluster.get_settings:
+ include_defaults: true
+
+ - set: { defaults.search.remote.my_remote_cluster.seeds.0: remote_ip }
+
+ - do:
+ cluster.put_settings:
+ flat_settings: true
+ body:
+ transient:
+ search.remote.remote1.seeds: $remote_ip
+
+ - match: {transient: {search.remote.remote1.seeds: $remote_ip}}
+
+ - do:
+ cluster.remote_info: {}
+ - is_false: remote1.skip_unavailable
- do:
cluster.put_settings:
body:
transient:
- search.remote.my_remote_cluster.skip_unavailable: true
+ search.remote.remote1.skip_unavailable: true
- - is_true: transient.search.remote.my_remote_cluster.skip_unavailable
+ - is_true: transient.search.remote.remote1.skip_unavailable
- do:
- remote.info: {}
+ cluster.remote_info: {}
- - is_true: my_remote_cluster.skip_unavailable
+ - is_true: remote1.skip_unavailable
- do:
cluster.put_settings:
body:
transient:
- search.remote.my_remote_cluster.skip_unavailable: false
+ search.remote.remote1.skip_unavailable: false
- - is_false: transient.search.remote.my_remote_cluster.skip_unavailable
+ - is_false: transient.search.remote.remote1.skip_unavailable
- do:
- remote.info: {}
+ cluster.remote_info: {}
- - is_false: my_remote_cluster.skip_unavailable
+ - is_false: remote1.skip_unavailable
- do:
cluster.put_settings:
body:
transient:
- search.remote.my_remote_cluster.skip_unavailable: null
+ search.remote.remote1.skip_unavailable: null
- match: {transient: {}}
- do:
- remote.info: {}
+ cluster.remote_info: {}
+
+ - is_false: remote1.skip_unavailable
+
+ - do:
+ cluster.put_settings:
+ body:
+ transient:
+ search.remote.remote1.seeds: null
+ search.remote.remote1.skip_unavailable: null
- - is_false: my_remote_cluster.skip_unavailable
