Consistent 'Test' suffix in mesos test names. Review: https://reviews.apache.org/r/35770
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7a737ce2 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7a737ce2 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7a737ce2 Branch: refs/heads/master Commit: 7a737ce22756c04105b62d5d5a63ab373dddf0f0 Parents: 63cdc75 Author: Michael Park <[email protected]> Authored: Mon Jul 6 12:38:06 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Mon Jul 6 14:29:39 2015 -0700 ---------------------------------------------------------------------- src/tests/common/http_tests.cpp | 4 ++-- src/tests/cram_md5_authentication_tests.cpp | 14 +++++++------- src/tests/zookeeper_url_tests.cpp | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/7a737ce2/src/tests/common/http_tests.cpp ---------------------------------------------------------------------- diff --git a/src/tests/common/http_tests.cpp b/src/tests/common/http_tests.cpp index a30d38a..38d062b 100644 --- a/src/tests/common/http_tests.cpp +++ b/src/tests/common/http_tests.cpp @@ -42,7 +42,7 @@ using namespace mesos::internal; // This test ensures we don't break the API when it comes to JSON // representation of tasks. Also, we want to ensure that tasks are // modeled the same way when using 'Task' vs. 'TaskInfo'. -TEST(HTTP, ModelTask) +TEST(HTTPTest, ModelTask) { TaskID taskId; taskId.set_value("t"); @@ -117,7 +117,7 @@ TEST(HTTP, ModelTask) // This test verifies that Resources model combines all resources of different // roles and filters out revocable resources. -TEST(HTTP, ModelResources) +TEST(HTTPTest, ModelResources) { // Resources of mixed types, roles, duplicate names; standard ( // e.g., 'cpus') and custom (i.e., 'bar'). http://git-wip-us.apache.org/repos/asf/mesos/blob/7a737ce2/src/tests/cram_md5_authentication_tests.cpp ---------------------------------------------------------------------- diff --git a/src/tests/cram_md5_authentication_tests.cpp b/src/tests/cram_md5_authentication_tests.cpp index 0a03846..b216ae4 100644 --- a/src/tests/cram_md5_authentication_tests.cpp +++ b/src/tests/cram_md5_authentication_tests.cpp @@ -51,7 +51,7 @@ namespace internal { namespace cram_md5 { template <typename T> -class CRAMMD5Authentication : public MesosTest {}; +class CRAMMD5AuthenticationTest : public MesosTest {}; template <typename T, typename U> class Authentication @@ -76,9 +76,9 @@ typedef ::testing::Types< tests::Module<Authenticator, TestCRAMMD5Authenticator>>> AuthenticationTypes; -TYPED_TEST_CASE(CRAMMD5Authentication, AuthenticationTypes); +TYPED_TEST_CASE(CRAMMD5AuthenticationTest, AuthenticationTypes); -TYPED_TEST(CRAMMD5Authentication, Success) +TYPED_TEST(CRAMMD5AuthenticationTest, Success) { // Launch a dummy process (somebody to send the AuthenticateMessage). UPID pid = spawn(new ProcessBase(), true); @@ -123,7 +123,7 @@ TYPED_TEST(CRAMMD5Authentication, Success) // Bad password should return an authentication failure. -TYPED_TEST(CRAMMD5Authentication, Failed1) +TYPED_TEST(CRAMMD5AuthenticationTest, Failed1) { // Launch a dummy process (somebody to send the AuthenticateMessage). UPID pid = spawn(new ProcessBase(), true); @@ -168,7 +168,7 @@ TYPED_TEST(CRAMMD5Authentication, Failed1) // No user should return an authentication failure. -TYPED_TEST(CRAMMD5Authentication, Failed2) +TYPED_TEST(CRAMMD5AuthenticationTest, Failed2) { // Launch a dummy process (somebody to send the AuthenticateMessage). UPID pid = spawn(new ProcessBase(), true); @@ -215,7 +215,7 @@ TYPED_TEST(CRAMMD5Authentication, Failed2) // This test verifies that the pending future returned by // 'Authenticator::authenticate()' is properly failed when the // Authenticator Session is destroyed in the middle of authentication. -TYPED_TEST(CRAMMD5Authentication, AuthenticatorDestructionRace) +TYPED_TEST(CRAMMD5AuthenticationTest, AuthenticatorDestructionRace) { // Launch a dummy process (somebody to send the AuthenticateMessage). UPID pid = spawn(new ProcessBase(), true); @@ -272,7 +272,7 @@ TYPED_TEST(CRAMMD5Authentication, AuthenticatorDestructionRace) // This test verifies that a missing secret fails the authenticatee. -TYPED_TEST(CRAMMD5Authentication, AuthenticateeSecretMissing) +TYPED_TEST(CRAMMD5AuthenticationTest, AuthenticateeSecretMissing) { Credential credential; credential.set_principal("benh"); http://git-wip-us.apache.org/repos/asf/mesos/blob/7a737ce2/src/tests/zookeeper_url_tests.cpp ---------------------------------------------------------------------- diff --git a/src/tests/zookeeper_url_tests.cpp b/src/tests/zookeeper_url_tests.cpp index 86e6f5a..7fe5158 100644 --- a/src/tests/zookeeper_url_tests.cpp +++ b/src/tests/zookeeper_url_tests.cpp @@ -23,7 +23,7 @@ #include "zookeeper/url.hpp" -TEST(ZooKeeper, URL) +TEST(ZooKeeperURLTest, URL) { Try<zookeeper::URL> url = zookeeper::URL::parse("zk://host1:port1");
