diff --git a/spec/jobs/eventgenerator/eventgenerator_spec.rb b/spec/jobs/eventgenerator/eventgenerator_spec.rb index 3d0a25c639..dab80e73f8 100644 --- a/spec/jobs/eventgenerator/eventgenerator_spec.rb +++ b/spec/jobs/eventgenerator/eventgenerator_spec.rb @@ -25,8 +25,7 @@ it "does not set username nor password if not configured" do properties["autoscaler"]["eventgenerator"] = { - "health" => { - } + "health" => {} } expect(rendered_template["health"]["password"]).to be_nil expect(rendered_template["health"]["username"]).to be_nil diff --git a/spec/jobs/operator/operator_spec.rb b/spec/jobs/operator/operator_spec.rb index 86bb93ef2f..f145571fda 100644 --- a/spec/jobs/operator/operator_spec.rb +++ b/spec/jobs/operator/operator_spec.rb @@ -14,14 +14,15 @@ context "config/operator.yml" do it "does not set username nor password if not configured" do expect(rendered_template["health"]).to include( - {"username" => nil, "password" => nil} -) + { + "username" => nil, + "password" => nil + } + ) end it "does not include health port anymore" do - expect(rendered_template["health"].keys).not_to include( - "port" -) + expect(rendered_template["health"].keys).not_to include("port") end it "check operator basic auth username and password" do @@ -32,13 +33,12 @@ } } - expect(rendered_template["health"]) - .to include( - { - "username" => "test-user", - "password" => "test-user-password" - } - ) + expect(rendered_template["health"]).to include( + { + "username" => "test-user", + "password" => "test-user-password" + } + ) end context "uses tls" do diff --git a/spec/jobs/scalingengine/scalingengine_spec.rb b/spec/jobs/scalingengine/scalingengine_spec.rb index eb8e89716f..0c577d8579 100644 --- a/spec/jobs/scalingengine/scalingengine_spec.rb +++ b/spec/jobs/scalingengine/scalingengine_spec.rb @@ -14,7 +14,6 @@ context "config/scalingengine.yml" do context "scalingengine" do it "does not set username nor password if not configured" do - expect(rendered_template["health"]).to include({"username" => nil, "password" => nil}) end @@ -30,7 +29,11 @@ } } - expect(rendered_template["health"]).to include({"password" => "test-user-password" }) + expect(rendered_template["health"]).to include( + { + "password" => "test-user-password" + } + ) end end