diff --git a/README.md b/README.md index 70ba070b..0febb1de 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ https://ignitionfuel.org/anonymous/test_model_380348669 ** Find a model on disk ** ``` $ ign fuel locate --name am1 -/home/developer/.ignition/fuel/staging_ignitionfuel/alice/am1 +/home/developer/.ignition/fuel/fuel.ignitionrobotics.org/alice/am1 ``` ** C++ Get List models ** diff --git a/src/FuelClient_TEST.cc b/src/FuelClient_TEST.cc index de9ad3c3..74411305 100644 --- a/src/FuelClient_TEST.cc +++ b/src/FuelClient_TEST.cc @@ -887,7 +887,7 @@ TEST(FuelClient, DownloadWorld) common::createDirectories("test_cache"); ServerConfig server; - server.URL("https://staging-api.ignitionfuel.org"); + server.URL("https://fuel.ignitionrobotics.org"); ClientConfig config; config.AddServer(server); @@ -901,7 +901,7 @@ TEST(FuelClient, DownloadWorld) { // Unversioned URL should get the latest available version common::URI url{ - "https://staging-api.ignitionfuel.org/1.0/chapulina/worlds/Empty"}; + "https://fuel.ignitionrobotics.org/1.0/chapulina/worlds/Empty"}; // Check it is not cached std::string cachedPath; @@ -917,15 +917,15 @@ TEST(FuelClient, DownloadWorld) // Check it was downloaded to `1` EXPECT_EQ(path, common::cwd() + - "/test_cache/staging-api.ignitionfuel.org/chapulina/worlds/Empty/1"); + "/test_cache/fuel.ignitionrobotics.org/chapulina/worlds/Empty/1"); EXPECT_TRUE(common::exists( - "test_cache/staging-api.ignitionfuel.org/chapulina/worlds/Empty/1")); + "test_cache/fuel.ignitionrobotics.org/chapulina/worlds/Empty/1")); EXPECT_TRUE(common::exists( - "test_cache/staging-api.ignitionfuel.org/chapulina/worlds/Empty/1/" + "test_cache/fuel.ignitionrobotics.org/chapulina/worlds/Empty/1/" "empty.world")); // Check it wasn't downloaded to world root directory - EXPECT_FALSE(common::exists("test_cache/staging-api.ignitionfuel.org/" + + EXPECT_FALSE(common::exists("test_cache/fuel.ignitionrobotics.org/" + std::string("chapulina/worlds/Empty/empty.world"))); // Check it is cached @@ -933,14 +933,14 @@ TEST(FuelClient, DownloadWorld) EXPECT_TRUE(res3); EXPECT_EQ(Result(Result::FETCH_ALREADY_EXISTS), res3); EXPECT_EQ(common::cwd() + - "/test_cache/staging-api.ignitionfuel.org/chapulina/worlds/Empty/1", + "/test_cache/fuel.ignitionrobotics.org/chapulina/worlds/Empty/1", cachedPath); } // Try using nonexistent URL { common::URI url{ - "https://staging-api.ignitionfuel.org/1.0/chapulina/worlds/Bad world"}; + "https://fuel.ignitionrobotics.org/1.0/chapulina/worlds/Bad world"}; std::string path; auto result = client.DownloadWorld(url, path); EXPECT_FALSE(result); diff --git a/src/ign_TEST.cc b/src/ign_TEST.cc index e603ce0a..39b5e2de 100644 --- a/src/ign_TEST.cc +++ b/src/ign_TEST.cc @@ -102,16 +102,16 @@ TEST(CmdLine, ModelListConfigServerUgly) TEST(CmdLine, ModelListCustomServerPretty) { auto output = custom_exec_str( - g_listCmd + " -t model -u https://staging-api.ignitionfuel.org"); + g_listCmd + " -t model -u https://fuel.ignitionrobotics.org"); - EXPECT_NE(output.find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(output.find("https://fuel.ignitionrobotics.org"), std::string::npos) << output; EXPECT_NE(output.find("owners"), std::string::npos) << output; EXPECT_NE(output.find("models"), std::string::npos) << output; EXPECT_EQ(output.find("https://api.ignitionfuel.org"), std::string::npos) << output; - EXPECT_EQ(output.find("https://staging-api.ignitionfuel.org/1.0/"), + EXPECT_EQ(output.find("https://fuel.ignitionrobotics.org/1.0/"), std::string::npos) << output; } @@ -119,8 +119,8 @@ TEST(CmdLine, ModelListCustomServerPretty) TEST(CmdLine, WorldListConfigServerUgly) { auto output = custom_exec_str(g_listCmd + - " -t world --raw -u https://staging-api.ignitionfuel.org"); - EXPECT_NE(output.find("https://staging-api.ignitionfuel.org/1.0/"), + " -t world --raw -u https://fuel.ignitionrobotics.org"); + EXPECT_NE(output.find("https://fuel.ignitionrobotics.org/1.0/"), std::string::npos) << output; EXPECT_EQ(output.find("owners"), std::string::npos) << output; } @@ -129,9 +129,9 @@ TEST(CmdLine, WorldListConfigServerUgly) TEST(CmdLine, WorldListCustomServerPretty) { auto output = custom_exec_str( - g_listCmd + " -t world -u https://staging-api.ignitionfuel.org"); + g_listCmd + " -t world -u https://fuel.ignitionrobotics.org"); - EXPECT_NE(output.find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(output.find("https://fuel.ignitionrobotics.org"), std::string::npos) << output; EXPECT_NE(output.find("owners"), std::string::npos) << output; EXPECT_NE(output.find("worlds"), std::string::npos) << output; diff --git a/src/ign_src_TEST.cc b/src/ign_src_TEST.cc index 1bef1559..0d4c0a24 100644 --- a/src/ign_src_TEST.cc +++ b/src/ign_src_TEST.cc @@ -99,9 +99,9 @@ TEST(CmdLine, ModelListCustomServerPretty) std::stringstream stdErrBuffer; redirectIO(stdOutBuffer, stdErrBuffer); - EXPECT_TRUE(listModels("https://staging-api.ignitionfuel.org")); + EXPECT_TRUE(listModels("https://fuel.ignitionrobotics.org")); - EXPECT_NE(stdOutBuffer.str().find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(stdOutBuffer.str().find("https://fuel.ignitionrobotics.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_NE(stdOutBuffer.str().find("owners"), std::string::npos) << stdOutBuffer.str(); @@ -111,7 +111,7 @@ TEST(CmdLine, ModelListCustomServerPretty) EXPECT_EQ(stdOutBuffer.str().find("https://api.ignitionfuel.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_EQ(stdOutBuffer.str().find( - "https://staging-api.ignitionfuel.org/1.0/"), std::string::npos) + "https://fuel.ignitionrobotics.org/1.0/"), std::string::npos) << stdOutBuffer.str(); clearIOStreams(stdOutBuffer, stdErrBuffer); @@ -125,10 +125,10 @@ TEST(CmdLine, ModelListCustomServerPrettyOwner) std::stringstream stdErrBuffer; redirectIO(stdOutBuffer, stdErrBuffer); - EXPECT_TRUE(listModels("https://staging-api.ignitionfuel.org", + EXPECT_TRUE(listModels("https://fuel.ignitionrobotics.org", "openrobotics")); - EXPECT_NE(stdOutBuffer.str().find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(stdOutBuffer.str().find("https://fuel.ignitionrobotics.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_NE(stdOutBuffer.str().find("1 owners"), std::string::npos) << stdOutBuffer.str(); @@ -142,7 +142,7 @@ TEST(CmdLine, ModelListCustomServerPrettyOwner) EXPECT_EQ(stdOutBuffer.str().find("https://api.ignitionfuel.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_EQ(stdOutBuffer.str().find( - "https://staging-api.ignitionfuel.org/1.0/"), std::string::npos) + "https://fuel.ignitionrobotics.org/1.0/"), std::string::npos) << stdOutBuffer.str(); clearIOStreams(stdOutBuffer, stdErrBuffer); @@ -242,9 +242,9 @@ TEST(CmdLine, WorldListConfigServerUgly) std::stringstream stdErrBuffer; redirectIO(stdOutBuffer, stdErrBuffer); - EXPECT_TRUE(listWorlds("https://staging-api.ignitionfuel.org", "", "true")); + EXPECT_TRUE(listWorlds("https://fuel.ignitionrobotics.org", "", "true")); - EXPECT_NE(stdOutBuffer.str().find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(stdOutBuffer.str().find("https://fuel.ignitionrobotics.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_EQ(stdOutBuffer.str().find("owners"), std::string::npos) << stdOutBuffer.str(); @@ -260,9 +260,9 @@ TEST(CmdLine, WorldListCustomServerPretty) std::stringstream stdErrBuffer; redirectIO(stdOutBuffer, stdErrBuffer); - EXPECT_TRUE(listWorlds("https://staging-api.ignitionfuel.org")); + EXPECT_TRUE(listWorlds("https://fuel.ignitionrobotics.org")); - EXPECT_NE(stdOutBuffer.str().find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(stdOutBuffer.str().find("https://fuel.ignitionrobotics.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_NE(stdOutBuffer.str().find("owners"), std::string::npos) << stdOutBuffer.str(); @@ -272,7 +272,7 @@ TEST(CmdLine, WorldListCustomServerPretty) EXPECT_EQ(stdOutBuffer.str().find("https://api.ignitionfuel.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_EQ(stdOutBuffer.str().find( - "https://staging-api.ignitionfuel.org/1.0/"), std::string::npos) + "https://fuel.ignitionrobotics.org/1.0/"), std::string::npos) << stdOutBuffer.str(); clearIOStreams(stdOutBuffer, stdErrBuffer); @@ -286,10 +286,10 @@ TEST(CmdLine, WorldListCustomServerPrettyOwner) std::stringstream stdErrBuffer; redirectIO(stdOutBuffer, stdErrBuffer); - EXPECT_TRUE(listWorlds("https://staging-api.ignitionfuel.org", + EXPECT_TRUE(listWorlds("https://fuel.ignitionrobotics.org", "chapulina")); - EXPECT_NE(stdOutBuffer.str().find("https://staging-api.ignitionfuel.org"), + EXPECT_NE(stdOutBuffer.str().find("https://fuel.ignitionrobotics.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_NE(stdOutBuffer.str().find("1 owners"), std::string::npos) << stdOutBuffer.str(); @@ -303,7 +303,7 @@ TEST(CmdLine, WorldListCustomServerPrettyOwner) EXPECT_EQ(stdOutBuffer.str().find("https://api.ignitionfuel.org"), std::string::npos) << stdOutBuffer.str(); EXPECT_EQ(stdOutBuffer.str().find( - "https://staging-api.ignitionfuel.org/1.0/"), std::string::npos) + "https://fuel.ignitionrobotics.org/1.0/"), std::string::npos) << stdOutBuffer.str(); clearIOStreams(stdOutBuffer, stdErrBuffer); @@ -360,7 +360,7 @@ TEST(CmdLine, WorldDownloadUnversioned) // Download EXPECT_TRUE(downloadUrl( - "https://staging-api.ignitionfuel.org/1.0/chapulina/worlds/Empty")); + "https://fuel.ignitionrobotics.org/1.0/chapulina/worlds/Empty")); // Check output EXPECT_NE(stdOutBuffer.str().find("Download succeeded"), @@ -369,11 +369,11 @@ TEST(CmdLine, WorldDownloadUnversioned) // Check files EXPECT_TRUE(ignition::common::isDirectory( - "test_cache/staging-api.ignitionfuel.org/chapulina/worlds/Empty")); + "test_cache/fuel.ignitionrobotics.org/chapulina/worlds/Empty")); EXPECT_TRUE(ignition::common::isDirectory( - "test_cache/staging-api.ignitionfuel.org/chapulina/worlds/Empty/1")); + "test_cache/fuel.ignitionrobotics.org/chapulina/worlds/Empty/1")); EXPECT_TRUE(ignition::common::isFile( - std::string("test_cache/staging-api.ignitionfuel.org/chapulina/worlds/") + std::string("test_cache/fuel.ignitionrobotics.org/chapulina/worlds/") + "Empty/1/empty.world")); clearIOStreams(stdOutBuffer, stdErrBuffer);