{
  "topic": "OPC UA Namespace URI 映射",
  "origin": "本文原创合成数据，未采集真实设备",
  "cases": [
    {
      "case_id": "命名空间顺序变化",
      "kind": "正例",
      "input": {
        "source_namespaces": [
          "http://opcfoundation.org/UA/",
          "urn:other",
          "urn:hall"
        ],
        "target_namespaces": [
          "http://opcfoundation.org/UA/",
          "urn:hall",
          "urn:other"
        ],
        "source_ns": 2,
        "identifier_type": "s",
        "identifier": "AHU1.Temp"
      },
      "expected": {
        "uri": "urn:hall",
        "source_nodeid": "ns=2;s=AHU1.Temp",
        "target_nodeid": "ns=1;s=AHU1.Temp"
      }
    },
    {
      "case_id": "目标缺命名空间",
      "kind": "显式负例",
      "input": {
        "source_namespaces": [
          "http://opcfoundation.org/UA/",
          "urn:hall"
        ],
        "target_namespaces": [
          "http://opcfoundation.org/UA/"
        ],
        "source_ns": 1,
        "identifier_type": "s",
        "identifier": "AHU1.Temp"
      },
      "expected_error": "目标URI不存在或不唯一"
    },
    {
      "case_id": "目标URI重复",
      "kind": "显式负例",
      "input": {
        "source_namespaces": [
          "http://opcfoundation.org/UA/",
          "urn:hall"
        ],
        "target_namespaces": [
          "http://opcfoundation.org/UA/",
          "urn:hall",
          "urn:hall"
        ],
        "source_ns": 1,
        "identifier_type": "s",
        "identifier": "AHU1.Temp"
      },
      "expected_error": "目标URI不存在或不唯一"
    }
  ]
}
