[asterisk-scf-commits] asterisk-scf/integration/servicediscovery.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Sat Sep 11 15:55:47 CDT 2010


branch "master" has been updated
       via  0ec59e8f89de73ecaede91b9f60b25d2a68530af (commit)
      from  6fbd03b807c867086ae0bdf5db62bfa434368a9f (commit)

Summary of changes:
 test/TestServiceLocator.cpp |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 0ec59e8f89de73ecaede91b9f60b25d2a68530af
Author: Joshua Colp <jcolp at digium.com>
Date:   Sat Sep 11 18:02:26 2010 -0300

    Add a unit test for getting all services using an empty category.

diff --git a/test/TestServiceLocator.cpp b/test/TestServiceLocator.cpp
index 1da8ce9..6f6bffc 100644
--- a/test/TestServiceLocator.cpp
+++ b/test/TestServiceLocator.cpp
@@ -454,6 +454,25 @@ BOOST_AUTO_TEST_CASE(FindMultipleServices)
 }
 
 /**
+ * Confirm that we get multiple services when we ask for them using an empty category
+ */
+BOOST_AUTO_TEST_CASE(FindMultipleServicesUsingEmptyCategory)
+{
+	ServiceLocatorParamsPtr params = new ServiceLocatorParams;
+	ServiceManagementPrx compare_management = Testbed.management->addService(Testbed.compare, "testcompare2");
+
+	params->category = "test";
+
+	compare_management->addLocatorParams(params, "");
+
+	bool found = Testbed.FindServices("", 2);
+
+	compare_management->unregister();
+
+	BOOST_CHECK(found);
+}
+
+/**
  * Confirm that we can suspend a service.
  */
 BOOST_AUTO_TEST_CASE(ServiceSuspend)

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/servicediscovery.git



More information about the asterisk-scf-commits mailing list