spec/mortar/command/describe_spec.rb in mortar-0.15.33 vs spec/mortar/command/describe_spec.rb in mortar-0.15.34

- old
+ new

@@ -93,11 +93,11 @@ it "requests and reports on a successful describe using deprecated no-path pigscript syntax" do with_git_initialized_project do |p| # stub api requests describe_id = "c571a8c7f76a4fd4a67c103d753e2dd5" - describe_url = "https://api.mortardata.com/describe/#{describe_id}" + describe_url = "https://mdog.datadoghq.com/describe/#{describe_id}" parameters = ["name"=>"key", "value"=>"value" ] mock(Mortar::Auth.api).post_describe("myproject", "my_script", "my_alias", is_a(String), :pig_version => "0.9", :project_script_path => be_a_kind_of(String), :parameters => parameters) {Excon::Response.new(:body => {"describe_id" => describe_id})} mock(Mortar::Auth.api).get_describe(describe_id, :exclude_result => true).returns(Excon::Response.new(:body => {"status_code" => Mortar::API::Describe::STATUS_QUEUED, "status_description" => "Pending"})).ordered mock(Mortar::Auth.api).get_describe(describe_id, :exclude_result => true).returns(Excon::Response.new(:body => {"status_code" => Mortar::API::Describe::STATUS_GATEWAY_STARTING, "status_description" => "Gateway starting"})).ordered @@ -114,21 +114,21 @@ Sending code snapshot to Mortar... done Starting describe... done \r\e[0K[/] Calculating schema for my_alias and ancestors...\r\e[0K[-] Calculating schema for my_alias and ancestors...\r\e[0K[\\] Calculating schema for my_alias and ancestors...\r\e[0K[|] Calculating schema for my_alias and ancestors... -Results available at https://api.mortardata.com/describe/c571a8c7f76a4fd4a67c103d753e2dd5 +Results available at https://mdog.datadoghq.com/describe/c571a8c7f76a4fd4a67c103d753e2dd5 Opening web browser to show results... done STDOUT end end it "requests and reports on a successful describe using new full path pigscript syntax" do with_git_initialized_project do |p| # stub api requests describe_id = "c571a8c7f76a4fd4a67c103d753e2dd5" - describe_url = "https://api.mortardata.com/describe/#{describe_id}" + describe_url = "https://mdog.datadoghq.com/describe/#{describe_id}" parameters = ["name"=>"key", "value"=>"value" ] mock(Mortar::Auth.api).post_describe("myproject", "my_script", "my_alias", is_a(String), :pig_version => "0.9", :project_script_path => be_a_kind_of(String), :parameters => parameters) {Excon::Response.new(:body => {"describe_id" => describe_id})} mock(Mortar::Auth.api).get_describe(describe_id, :exclude_result => true).returns(Excon::Response.new(:body => {"status_code" => Mortar::API::Describe::STATUS_QUEUED, "status_description" => "Pending"})).ordered mock(Mortar::Auth.api).get_describe(describe_id, :exclude_result => true).returns(Excon::Response.new(:body => {"status_code" => Mortar::API::Describe::STATUS_GATEWAY_STARTING, "status_description" => "Gateway starting"})).ordered @@ -145,11 +145,11 @@ Sending code snapshot to Mortar... done Starting describe... done \r\e[0K[/] Calculating schema for my_alias and ancestors...\r\e[0K[-] Calculating schema for my_alias and ancestors...\r\e[0K[\\] Calculating schema for my_alias and ancestors...\r\e[0K[|] Calculating schema for my_alias and ancestors... -Results available at https://api.mortardata.com/describe/c571a8c7f76a4fd4a67c103d753e2dd5 +Results available at https://mdog.datadoghq.com/describe/c571a8c7f76a4fd4a67c103d753e2dd5 Opening web browser to show results... done STDOUT end end @@ -193,10 +193,10 @@ it "requests and reports a describe for an embedded project" do with_embedded_project do |p| # stub api requests describe_id = "c571a8c7f76a4fd4a67c103d753e2dd5" - describe_url = "https://api.mortardata.com/describe/#{describe_id}" + describe_url = "https://mdog.datadoghq.com/describe/#{describe_id}" parameters = ["name"=>"key", "value"=>"value" ] mock(Mortar::Auth.api).post_describe("myproject", "my_script", "my_alias", is_a(String), :pig_version => "0.9", :project_script_path => be_a_kind_of(String), :parameters => parameters) {Excon::Response.new(:body => {"describe_id" => describe_id})} mock(Mortar::Auth.api).get_describe(describe_id, :exclude_result => true).returns(Excon::Response.new(:body => {"status_code" => Mortar::API::Describe::STATUS_QUEUED, "status_description" => "Pending"})).ordered mock(Mortar::Auth.api).get_describe(describe_id, :exclude_result => true).returns(Excon::Response.new(:body => {"status_code" => Mortar::API::Describe::STATUS_GATEWAY_STARTING, "status_description" => "Gateway starting"})).ordered