-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump in edifice: ign-common4 #163
Conversation
Signed-off-by: Louise Poubel <[email protected]>
There are lots of failing tests because of the changes in the URI class on diff --git a/src/ClientConfig_TEST.cc b/src/ClientConfig_TEST.cc
index 74c5d24..7b8b001 100644
--- a/src/ClientConfig_TEST.cc
+++ b/src/ClientConfig_TEST.cc
@@ -386,15 +386,21 @@ TEST(ServerConfig, Url)
ServerConfig srv;
srv.SetUrl(common::URI("http://banana:8080"));
EXPECT_EQ("http://banana:8080", srv.Url().Str());
+ EXPECT_EQ("", srv.Url().Path().Str());
EXPECT_EQ("http", srv.Url().Scheme());
- EXPECT_EQ("banana:8080", srv.Url().Path().Str());
+ EXPECT_EQ("banana", srv.Url().Authority().Host());
+ EXPECT_EQ(8080, srv.Url().Authority().Port());
}
// Trailing /
{
ServerConfig srv;
srv.SetUrl(common::URI("http://banana:8080/"));
- EXPECT_EQ("http://banana:8080", srv.Url().Str());
+ EXPECT_EQ("http://banana:8080/", srv.Url().Str());
+ EXPECT_EQ("/", srv.Url().Path().Str());
+ EXPECT_EQ("http", srv.Url().Scheme());
+ EXPECT_EQ("banana", srv.Url().Authority().Host());
+ EXPECT_EQ(8080, srv.Url().Authority().Port());
}
// Set from URI
@@ -405,9 +411,12 @@ TEST(ServerConfig, Url)
ServerConfig srv;
srv.SetUrl(url);
- EXPECT_EQ("http://banana:8080", srv.Url().Str());
- EXPECT_EQ("http", srv.Url().Scheme());
+ EXPECT_EQ("http:banana:8080", srv.Url().Str());
EXPECT_EQ("banana:8080", srv.Url().Path().Str());
+ EXPECT_EQ("http", srv.Url().Scheme());
+ EXPECT_EQ("", srv.Url().Authority().Host());
+ EXPECT_FALSE(srv.Url().Authority().Port());
+ EXPECT_EQ("http:banana:8080", srv.Url().Str());
}
} Among other things, note how the I think the new |
The changes all look correct based on the tests. The
Here a |
Thank you for the clarification, @nkoenig. The test results make more sense to me now. Because there was no concept of "authority" up to One suggestion is to:
|
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #163 +/- ##
==========================================
+ Coverage 77.85% 77.93% +0.07%
==========================================
Files 19 20 +1
Lines 2606 2619 +13
==========================================
+ Hits 2029 2041 +12
- Misses 577 578 +1
Continue to review full report at Codecov.
|
Signed-off-by: Louise Poubel <[email protected]>
Addresses gazebo-tooling/release-tools#361