diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Capabilities/Handlers/FetchInventory/Tests | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Capabilities/Handlers/FetchInventory/Tests')
-rw-r--r-- | OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventory2HandlerTests.cs | 2 | ||||
-rw-r--r-- | OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventory2HandlerTests.cs b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventory2HandlerTests.cs index 8af3c64..94c2c89 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventory2HandlerTests.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventory2HandlerTests.cs | |||
@@ -120,7 +120,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests | |||
120 | string request = "<llsd><map><key>items</key><array><map><key>item_id</key><uuid>"; | 120 | string request = "<llsd><map><key>items</key><array><map><key>item_id</key><uuid>"; |
121 | request += "10000000-0000-0000-0000-000000000001"; // Notecard 1 | 121 | request += "10000000-0000-0000-0000-000000000001"; // Notecard 1 |
122 | request += "</uuid></map></array></map></llsd>"; | 122 | request += "</uuid></map></array></map></llsd>"; |
123 | 123 | ||
124 | string llsdresponse = handler.FetchInventoryRequest(request, "/FETCH", string.Empty, req, resp); | 124 | string llsdresponse = handler.FetchInventoryRequest(request, "/FETCH", string.Empty, req, resp); |
125 | 125 | ||
126 | Assert.That(llsdresponse != null, Is.True, "Incorrect null response"); | 126 | Assert.That(llsdresponse != null, Is.True, "Incorrect null response"); |
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs index 2d5531a..4143aa3 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs | |||
@@ -140,7 +140,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests | |||
140 | string request = "<llsd><map><key>folders</key><array><map><key>fetch_folders</key><integer>1</integer><key>fetch_items</key><boolean>1</boolean><key>folder_id</key><uuid>"; | 140 | string request = "<llsd><map><key>folders</key><array><map><key>fetch_folders</key><integer>1</integer><key>fetch_items</key><boolean>1</boolean><key>folder_id</key><uuid>"; |
141 | request += m_rootFolderID; | 141 | request += m_rootFolderID; |
142 | request += "</uuid><key>owner_id</key><uuid>00000000-0000-0000-0000-000000000000</uuid><key>sort_order</key><integer>1</integer></map></array></map></llsd>"; | 142 | request += "</uuid><key>owner_id</key><uuid>00000000-0000-0000-0000-000000000000</uuid><key>sort_order</key><integer>1</integer></map></array></map></llsd>"; |
143 | 143 | ||
144 | string llsdresponse = handler.FetchInventoryDescendentsRequest(request, "/FETCH", string.Empty, req, resp); | 144 | string llsdresponse = handler.FetchInventoryDescendentsRequest(request, "/FETCH", string.Empty, req, resp); |
145 | 145 | ||
146 | Assert.That(llsdresponse != null, Is.True, "Incorrect null response"); | 146 | Assert.That(llsdresponse != null, Is.True, "Incorrect null response"); |
@@ -203,7 +203,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests | |||
203 | 203 | ||
204 | // Make sure that the note card link is included | 204 | // Make sure that the note card link is included |
205 | Assert.That(llsdresponse.Contains("Link to notecard"), Is.True, "Link to notecard is missing"); | 205 | Assert.That(llsdresponse.Contains("Link to notecard"), Is.True, "Link to notecard is missing"); |
206 | 206 | ||
207 | //Make sure the notecard item itself is included | 207 | //Make sure the notecard item itself is included |
208 | Assert.That(llsdresponse.Contains("Test Notecard 2"), Is.True, "Notecard 2 item (the source) is missing"); | 208 | Assert.That(llsdresponse.Contains("Test Notecard 2"), Is.True, "Notecard 2 item (the source) is missing"); |
209 | 209 | ||
@@ -215,10 +215,11 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests | |||
215 | // Make sure the folder link is included | 215 | // Make sure the folder link is included |
216 | Assert.That(llsdresponse.Contains("Link to Objects folder"), Is.True, "Link to Objects folder is missing"); | 216 | Assert.That(llsdresponse.Contains("Link to Objects folder"), Is.True, "Link to Objects folder is missing"); |
217 | 217 | ||
218 | /* contents of link folder are not supposed to be listed | ||
218 | // Make sure the objects inside the Objects folder are included | 219 | // Make sure the objects inside the Objects folder are included |
219 | // Note: I'm not entirely sure this is needed, but that's what I found in the implementation | 220 | // Note: I'm not entirely sure this is needed, but that's what I found in the implementation |
220 | Assert.That(llsdresponse.Contains("Some Object"), Is.True, "Some Object item (contents of the source) is missing"); | 221 | Assert.That(llsdresponse.Contains("Some Object"), Is.True, "Some Object item (contents of the source) is missing"); |
221 | 222 | */ | |
222 | // Make sure that the source item is before the link item | 223 | // Make sure that the source item is before the link item |
223 | pos1 = llsdresponse.IndexOf("Some Object"); | 224 | pos1 = llsdresponse.IndexOf("Some Object"); |
224 | pos2 = llsdresponse.IndexOf("Link to Objects folder"); | 225 | pos2 = llsdresponse.IndexOf("Link to Objects folder"); |