From e1ab7d8a30cc40cbd1d471c67def21508c82ff49 Mon Sep 17 00:00:00 2001 From: Kartic Krishnamurthy Date: Wed, 18 Jul 2007 01:28:59 +0000 Subject: svn merge -r63705:65463 svn+ssh://svn/svn/linden/branches/dpo-3-bug-fix NOTE: r63705 is *not* the earliest rev# for dpo-3-bug-fix. --- indra/test/llservicebuilder_tut.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'indra/test') diff --git a/indra/test/llservicebuilder_tut.cpp b/indra/test/llservicebuilder_tut.cpp index b4a814ebb9..e782cfbb6f 100644 --- a/indra/test/llservicebuilder_tut.cpp +++ b/indra/test/llservicebuilder_tut.cpp @@ -72,5 +72,22 @@ namespace tut std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map); ensure_equals("Replacement URL Creation for Non-existant Service", test_url , "/agent/{$agent-id}/name"); } + + template<> template<> + void ServiceBuilderTestObject::test<5>() + { + LLSD test_block; + test_block["service-builder"] = "/proc/{$proc}{%params}"; + mServiceBuilder.createServiceDefinition("ServiceBuilderTest", test_block["service-builder"]); + LLSD data_map; + data_map["proc"] = "do/something/useful"; + data_map["params"]["estate_id"] = 1; + data_map["params"]["query"] = "public"; + std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map); + ensure_equals( + "two part URL Creation", + test_url , + "/proc/do/something/useful?estate_id=1&query=public"); + } } -- cgit v1.2.3