Skip to content

Commit 7a5cb18

Browse files
committed
Don't validate cert when getting Elasticsearch details
This commit does not validate the certificate when getting details about the Elasticsearch cluster that YAML tests will be generated for.
1 parent fe2dac5 commit 7a5cb18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

yaml_test_runner/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ fn main() -> Result<(), failure::Error> {
141141
fn branch_suite_and_version_from_elasticsearch(
142142
url: &str,
143143
) -> Result<(String, TestSuite, semver::Version), failure::Error> {
144-
let mut response = reqwest::get(url)?;
144+
let client = reqwest::ClientBuilder::new()
145+
.danger_accept_invalid_certs(true)
146+
.build()?;
147+
148+
let mut response = client.get(url).send()?;
145149
let json: Value = response.json()?;
146150
let branch = json["version"]["build_hash"].as_str().unwrap().to_string();
147151
let suite = match json["version"]["build_flavor"].as_str().unwrap() {

0 commit comments

Comments
 (0)