aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llservicebuilder_tut.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/test/llservicebuilder_tut.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/test/llservicebuilder_tut.cpp b/linden/indra/test/llservicebuilder_tut.cpp
index 762aa46..3b9d8b4 100644
--- a/linden/indra/test/llservicebuilder_tut.cpp
+++ b/linden/indra/test/llservicebuilder_tut.cpp
@@ -92,5 +92,22 @@ namespace tut
92 std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map); 92 std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map);
93 ensure_equals("Replacement URL Creation for Non-existant Service", test_url , "/agent/{$agent-id}/name"); 93 ensure_equals("Replacement URL Creation for Non-existant Service", test_url , "/agent/{$agent-id}/name");
94 } 94 }
95
96 template<> template<>
97 void ServiceBuilderTestObject::test<5>()
98 {
99 LLSD test_block;
100 test_block["service-builder"] = "/proc/{$proc}{%params}";
101 mServiceBuilder.createServiceDefinition("ServiceBuilderTest", test_block["service-builder"]);
102 LLSD data_map;
103 data_map["proc"] = "do/something/useful";
104 data_map["params"]["estate_id"] = 1;
105 data_map["params"]["query"] = "public";
106 std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map);
107 ensure_equals(
108 "two part URL Creation",
109 test_url ,
110 "/proc/do/something/useful?estate_id=1&query=public");
111 }
95} 112}
96 113