node-opcua-address-space-for-conformance-testing 2.183.0 → 2.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/address_space_for_conformance_testing.d.ts +1 -0
- package/dist/address_space_for_conformance_testing.d.ts.map +1 -0
- package/dist/address_space_for_conformance_testing.js +34 -37
- package/dist/address_space_for_conformance_testing.js.map +1 -1
- package/dist/conformance_testing/access_right_variables.d.ts +1 -0
- package/dist/conformance_testing/access_right_variables.d.ts.map +1 -0
- package/dist/conformance_testing/access_right_variables.js +8 -11
- package/dist/conformance_testing/access_right_variables.js.map +1 -1
- package/dist/conformance_testing/alarm_input_nodes.d.ts +1 -0
- package/dist/conformance_testing/alarm_input_nodes.d.ts.map +1 -0
- package/dist/conformance_testing/alarm_input_nodes.js +4 -7
- package/dist/conformance_testing/alarm_input_nodes.js.map +1 -1
- package/dist/conformance_testing/analog_data_items.d.ts +1 -0
- package/dist/conformance_testing/analog_data_items.d.ts.map +1 -0
- package/dist/conformance_testing/analog_data_items.js +32 -36
- package/dist/conformance_testing/analog_data_items.js.map +1 -1
- package/dist/conformance_testing/ctt_folder.d.ts +1 -0
- package/dist/conformance_testing/ctt_folder.d.ts.map +1 -0
- package/dist/conformance_testing/ctt_folder.js +97 -82
- package/dist/conformance_testing/ctt_folder.js.map +1 -1
- package/dist/conformance_testing/ctt_tree.d.ts +1 -0
- package/dist/conformance_testing/ctt_tree.d.ts.map +1 -0
- package/dist/conformance_testing/ctt_tree.js +15 -20
- package/dist/conformance_testing/ctt_tree.js.map +1 -1
- package/dist/conformance_testing/custom_extension_object.d.ts +1 -0
- package/dist/conformance_testing/custom_extension_object.d.ts.map +1 -0
- package/dist/conformance_testing/custom_extension_object.js +2 -6
- package/dist/conformance_testing/custom_extension_object.js.map +1 -1
- package/dist/conformance_testing/discrete_variables.d.ts +1 -0
- package/dist/conformance_testing/discrete_variables.d.ts.map +1 -0
- package/dist/conformance_testing/discrete_variables.js +3 -8
- package/dist/conformance_testing/discrete_variables.js.map +1 -1
- package/dist/conformance_testing/enumeration_variable.d.ts +1 -0
- package/dist/conformance_testing/enumeration_variable.d.ts.map +1 -0
- package/dist/conformance_testing/enumeration_variable.js +1 -4
- package/dist/conformance_testing/enumeration_variable.js.map +1 -1
- package/dist/conformance_testing/helpers.d.ts +1 -0
- package/dist/conformance_testing/helpers.d.ts.map +1 -0
- package/dist/conformance_testing/helpers.js +60 -103
- package/dist/conformance_testing/helpers.js.map +1 -1
- package/dist/conformance_testing/mass_variables.d.ts +1 -0
- package/dist/conformance_testing/mass_variables.d.ts.map +1 -0
- package/dist/conformance_testing/mass_variables.js +7 -10
- package/dist/conformance_testing/mass_variables.js.map +1 -1
- package/dist/conformance_testing/node_with_references.d.ts +1 -0
- package/dist/conformance_testing/node_with_references.d.ts.map +1 -0
- package/dist/conformance_testing/node_with_references.js +1 -4
- package/dist/conformance_testing/node_with_references.js.map +1 -1
- package/dist/conformance_testing/object_with_methods.d.ts +1 -0
- package/dist/conformance_testing/object_with_methods.d.ts.map +1 -0
- package/dist/conformance_testing/object_with_methods.js +16 -19
- package/dist/conformance_testing/object_with_methods.js.map +1 -1
- package/dist/conformance_testing/path_and_large_arrays.d.ts +1 -0
- package/dist/conformance_testing/path_and_large_arrays.d.ts.map +1 -0
- package/dist/conformance_testing/path_and_large_arrays.js +7 -11
- package/dist/conformance_testing/path_and_large_arrays.js.map +1 -1
- package/dist/conformance_testing/sample_view.d.ts +1 -0
- package/dist/conformance_testing/sample_view.d.ts.map +1 -0
- package/dist/conformance_testing/sample_view.js +1 -4
- package/dist/conformance_testing/sample_view.js.map +1 -1
- package/dist/conformance_testing/simulation_variables.d.ts +1 -0
- package/dist/conformance_testing/simulation_variables.d.ts.map +1 -0
- package/dist/conformance_testing/simulation_variables.js +24 -27
- package/dist/conformance_testing/simulation_variables.js.map +1 -1
- package/dist/conformance_testing/static_variables.d.ts +1 -0
- package/dist/conformance_testing/static_variables.d.ts.map +1 -0
- package/dist/conformance_testing/static_variables.js +19 -28
- package/dist/conformance_testing/static_variables.js.map +1 -1
- package/dist/conformance_testing/trigger_nodes.d.ts +1 -0
- package/dist/conformance_testing/trigger_nodes.d.ts.map +1 -0
- package/dist/conformance_testing/trigger_nodes.js +7 -10
- package/dist/conformance_testing/trigger_nodes.js.map +1 -1
- package/dist/conformance_testing/type_defaults.d.ts +3 -2
- package/dist/conformance_testing/type_defaults.d.ts.map +1 -0
- package/dist/conformance_testing/type_defaults.js +14 -50
- package/dist/conformance_testing/type_defaults.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -17
- package/dist/index.js.map +1 -1
- package/package.json +15 -14
- package/src/conformance_testing/ctt_folder.ts +27 -6
- package/src/conformance_testing/simulation_variables.ts +1 -1
- package/src/conformance_testing/static_variables.ts +1 -4
|
@@ -109,10 +109,7 @@ function addBooleanScalarAndArray(ctt: CttFolder): void {
|
|
|
109
109
|
ctt.typedVariable("Static/All Profiles/Arrays/Bool", "Boolean", 1);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
// cannot be used while this package emits CommonJS (TS1470), so the ESM migration
|
|
114
|
-
// has this single line to change rather than several scattered uses.
|
|
115
|
-
const here = __dirname;
|
|
112
|
+
const here = import.meta.dirname;
|
|
116
113
|
|
|
117
114
|
function addImageVariable(ctt: CttFolder): void {
|
|
118
115
|
// the abstract Image data type (the concrete ImagePNG/GIF/JPG/BMP nodes live under Simulation)
|
|
@@ -179,7 +176,7 @@ function addAnalogItemArrays(ctt: CttFolder): void {
|
|
|
179
176
|
// element at engineeringUnitsRange.low, rather than a fixed 0 that falls outside an
|
|
180
177
|
// unsigned range, keeps the node's own initial value conformant (PercentDeadband 006).
|
|
181
178
|
const { engineeringUnitsRange, instrumentRange } = makeRange(dataType);
|
|
182
|
-
ctt.namespace.addAnalogDataItem({
|
|
179
|
+
const analogItem = ctt.namespace.addAnalogDataItem({
|
|
183
180
|
organizedBy: folder,
|
|
184
181
|
browseName: dataTypeName,
|
|
185
182
|
nodeId: ctt.nodeId(`Static/DA Profile/AnalogItemType Arrays/${dataTypeName}`),
|
|
@@ -198,6 +195,19 @@ function addAnalogItemArrays(ctt: CttFolder): void {
|
|
|
198
195
|
accessLevel: readWrite,
|
|
199
196
|
userAccessLevel: readWrite
|
|
200
197
|
});
|
|
198
|
+
// addAnalogDataItem builds EngineeringUnits read-only, EURange and InstrumentRange
|
|
199
|
+
// writable. A CTT run has to be able to change all three: Data Access Semantic Changes 013
|
|
200
|
+
// writes the three properties of these six items in one Write, and the six BadNotWritable
|
|
201
|
+
// results - legal, and on the script's accepted list - make it null those entries and then
|
|
202
|
+
// reuse the full-length expected-results array for its revert write, which its own
|
|
203
|
+
// WriteHelper refuses ("ExpectedOperationResultsArray[] (length: 18) must have the same
|
|
204
|
+
// size as Request.NodesToWrite[] (length: 12)"). Writable here, where the test nodes are
|
|
205
|
+
// configured, rather than changing what addAnalogDataItem gives every other server.
|
|
206
|
+
const engineeringUnitsProperty = analogItem.getPropertyByName("EngineeringUnits");
|
|
207
|
+
if (engineeringUnitsProperty) {
|
|
208
|
+
engineeringUnitsProperty.accessLevel = readWrite;
|
|
209
|
+
engineeringUnitsProperty.userAccessLevel = readWrite;
|
|
210
|
+
}
|
|
201
211
|
}
|
|
202
212
|
}
|
|
203
213
|
|
|
@@ -249,8 +259,19 @@ function addArrayItems(ctt: CttFolder): void {
|
|
|
249
259
|
userAccessLevel: readWrite,
|
|
250
260
|
value: options.value
|
|
251
261
|
});
|
|
262
|
+
// the mandatory Properties of ArrayItemType are declared in namespace 0, so their
|
|
263
|
+
// BrowseName is 0:EURange and not <this namespace>:EURange - a client translating the
|
|
264
|
+
// standard browse path finds nothing otherwise. CTT Data Access Semantic Changes 014-017
|
|
265
|
+
// warned "Mandatory property 'EURange' missing" on every one of these nodes.
|
|
252
266
|
const property = (browseName: string, dataType: string, value: Variant, valueRank = -1) =>
|
|
253
|
-
namespace.addVariable({
|
|
267
|
+
namespace.addVariable({
|
|
268
|
+
propertyOf: v,
|
|
269
|
+
browseName: { namespaceIndex: 0, name: browseName },
|
|
270
|
+
dataType,
|
|
271
|
+
valueRank,
|
|
272
|
+
value,
|
|
273
|
+
modellingRule: "Mandatory"
|
|
274
|
+
});
|
|
254
275
|
property("Title", "LocalizedText", new Variant({ dataType: DataType.LocalizedText, value: { text: typeName } }));
|
|
255
276
|
property("AxisScaleType", "AxisScaleEnumeration", new Variant({ dataType: DataType.Int32, value: 0 }));
|
|
256
277
|
property("EURange", "Range", extensionObject(addressSpace.constructExtensionObject(rangeType, { low: 0, high: 100 })));
|
|
@@ -23,7 +23,7 @@ export function addSimulationVariables(namespace: Namespace, scalarFolder: UAObj
|
|
|
23
23
|
const dataType = findDataType(realTypeName);
|
|
24
24
|
const randomFunc = getRandomFuncForType(dataType, custom);
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
/* c8 ignore next */
|
|
27
27
|
if (typeof randomFunc !== "function") {
|
|
28
28
|
throw new Error(`a random function must exist for basicType ${dataTypeName}`);
|
|
29
29
|
}
|
|
@@ -13,10 +13,7 @@ import { typeAndDefaultValue } from "./type_defaults.js";
|
|
|
13
13
|
|
|
14
14
|
const errorLog = make_errorLog("static_variables");
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
// cannot be used while this package emits CommonJS (TS1470), so the ESM migration
|
|
18
|
-
// has this single line to change rather than several scattered uses.
|
|
19
|
-
const here = __dirname;
|
|
16
|
+
const here = import.meta.dirname;
|
|
20
17
|
|
|
21
18
|
export async function addStaticVariables(
|
|
22
19
|
namespace: Namespace,
|