test(gen1): account for normalized HG UUI in statistics provenance regression
This commit is contained in:
1 parent
6ead642f04
commit
a762bccb0d
1 file changed
+8
-5
@@ -38,15 +38,18 @@ assert 'NexNodeRegistry nodes = null' in stats
|
||||
assert 'nodeRegistry);' in routes
|
||||
assert "m_UserAccounts == null || m_GridUsers == null" not in stats
|
||||
|
||||
# Full OpenSim HG UUIs must be looked up exactly. Prefixing all lookups
|
||||
# with the bare 36-character UUID merges different HG homes and can erase
|
||||
# the GridUser origin rows expected by statistics:read.
|
||||
# Fully qualified HG UUIs must retain their HomeURI and display identity;
|
||||
# only the nonsemantic terminal HomeURI slash is normalized before an exact
|
||||
# lookup. Prefixing with the bare UUID merges different HG homes and can
|
||||
# erase provenance rows published by statistics:read.
|
||||
griduser = (root / "OpenSim/Services/UserAccountService/GridUserService.cs").read_text(encoding="utf-8")
|
||||
for marker in (
|
||||
"private static string GridUserCacheKey(string userID)",
|
||||
"userID.Length > 36 && userID[36] == ';'",
|
||||
"GridUserData exact = m_Database.Get(userID);",
|
||||
"CacheGridUser(userID, exact);",
|
||||
"private static string CanonicalHGUserID(string userID)",
|
||||
"return CanonicalHGUserID(userID);",
|
||||
"GridUserData exact = m_Database.Get(cacheKey);",
|
||||
"CacheGridUser(cacheKey, exact);",
|
||||
"GridUserData local = m_Database.Get(bareId);",
|
||||
"CacheGridUser(userID, d);",
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user