NEXJAST: runtime-regress LSL XML-RPC RemoteData core
This commit is contained in:
1 parent
eb524d9e9b
commit
e6366a0712
4 files changed
+98
-1
No files matched your search
@@ -117,6 +117,10 @@ jobs:
|
||||
test -f bin/NexVerse.Server.Api.dll
|
||||
test -f bin/NexVerse.RegionModules.dll
|
||||
|
||||
- name: Runtime regression LSL XML-RPC RemoteData compatibility
|
||||
shell: bash
|
||||
run: dotnet run --configuration Release --project tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj
|
||||
|
||||
- name: Verify NexVerse version
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -265,7 +265,8 @@ Implemented during NEXJAST:
|
||||
- [ ] local grid login remains functional through successful simulator placement.
|
||||
- [x] Firestorm-compatible LLLogin XML-RPC endpoint is runtime smoke-tested with a real Robust process.
|
||||
- [ ] Firestorm baseline smoke tests pass through successful viewer/simulator login.
|
||||
- [ ] compatibility-sensitive XML-RPC/LSL functionality remains intact after runtime verification.
|
||||
- [x] core LSL XML-RPC RemoteData channel lifecycle and invalid-channel handler behavior are runtime-regression tested against the built XMLRPCModule.
|
||||
- [ ] end-to-end LSL XML-RPC RemoteData callback with a running region/script remains to be runtime verified.
|
||||
- [x] development runtime version source identifies itself as NexVerse 0.9.3.1 Dev.
|
||||
|
||||
---
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Net;
|
||||
using Nini.Config;
|
||||
using Nwc.XmlRpc;
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Region.CoreModules.Scripting.XMLRPC;
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
private static void Require(bool condition, string message)
|
||||
{
|
||||
if (!condition)
|
||||
throw new InvalidOperationException(message);
|
||||
}
|
||||
|
||||
private static int Main()
|
||||
{
|
||||
IniConfigSource config = new IniConfigSource();
|
||||
IConfig xmlrpc = config.AddConfig("XMLRPC");
|
||||
xmlrpc.Set("XmlRpcPort", 20800);
|
||||
|
||||
XMLRPCModule module = new XMLRPCModule();
|
||||
module.Initialise(config);
|
||||
|
||||
Require(module.IsEnabled(), "XMLRPCModule did not enable with a configured port");
|
||||
Require(module.Port == 20800, "XMLRPCModule port mismatch");
|
||||
|
||||
UUID itemA = UUID.Random();
|
||||
UUID channelA = module.OpenXMLRPCChannel(41, itemA, UUID.Zero);
|
||||
Require(!channelA.IsZero(), "llOpenRemoteDataChannel-compatible channel creation failed");
|
||||
|
||||
UUID duplicate = module.OpenXMLRPCChannel(41, itemA, UUID.Zero);
|
||||
Require(duplicate == channelA, "opening a second channel for the same script item changed the channel");
|
||||
|
||||
UUID itemB = UUID.Random();
|
||||
UUID requestedChannel = UUID.Random();
|
||||
UUID channelB = module.OpenXMLRPCChannel(42, itemB, requestedChannel);
|
||||
Require(channelB == requestedChannel, "custom RemoteData channel was not preserved");
|
||||
|
||||
module.CloseXMLRPCChannel(channelA);
|
||||
|
||||
Hashtable requestData = new Hashtable
|
||||
{
|
||||
["Channel"] = channelA.ToString(),
|
||||
["IntValue"] = 7,
|
||||
["StringValue"] = "nexverse-ci"
|
||||
};
|
||||
ArrayList parameters = new ArrayList { requestData };
|
||||
XmlRpcRequest request = new XmlRpcRequest("llRemoteData", parameters);
|
||||
|
||||
XmlRpcResponse response = module.XmlRpcRemoteData(
|
||||
request,
|
||||
new IPEndPoint(IPAddress.Loopback, 20800));
|
||||
|
||||
Require(response.IsFault, "closed/invalid RemoteData channel did not return an XML-RPC fault");
|
||||
|
||||
module.CloseXMLRPCChannel(channelB);
|
||||
Require(!module.hasRequests(), "unexpected pending RemoteData requests remain");
|
||||
|
||||
Console.WriteLine("NexVerse LSL XML-RPC RemoteData runtime regression: OK");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="OpenSim.Region.CoreModules">
|
||||
<HintPath>../../../bin/OpenSim.Region.CoreModules.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenSim.Framework">
|
||||
<HintPath>../../../bin/OpenSim.Framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenSim.Region.Framework">
|
||||
<HintPath>../../../bin/OpenSim.Region.Framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenMetaverse">
|
||||
<HintPath>../../../bin/OpenMetaverse.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Nini">
|
||||
<HintPath>../../../bin/Nini.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="XMLRPC">
|
||||
<HintPath>../../../bin/XMLRPC.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in new issue
Block a user