@@ -89,7 +89,7 @@ public void testOPCUAServerSink() throws Exception {
8989 try (final SyncConfigNodeIServiceClient client =
9090 (SyncConfigNodeIServiceClient ) env .getLeaderConfigNodeConnection ()) {
9191
92- TestUtils .executeNonQuery (env , "insert into root.db.d1(time, s1 ) values (1, 1)" , null );
92+ TestUtils .executeNonQuery (env , "insert into root.db.d1(time, `1` ) values (1, 1)" , null );
9393
9494 final Map <String , String > sinkAttributes = new HashMap <>();
9595
@@ -127,7 +127,9 @@ public void testOPCUAServerSink() throws Exception {
127127 }
128128 }
129129 value =
130- opcUaClient .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/d1/s1" )).get ();
130+ opcUaClient
131+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/d1/`1`" ))
132+ .get ();
131133 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
132134 Assert .assertEquals (new DateTime (timestampToUtc (1 )), value .getSourceTime ());
133135 opcUaClient .disconnect ().get ();
@@ -138,12 +140,12 @@ public void testOPCUAServerSink() throws Exception {
138140 TestUtils .executeNonQueries (
139141 env ,
140142 Arrays .asList (
141- "create aligned timeSeries root.db.opc (value double, quality boolean, other int32)" ,
142- "create aligned timeSeries root.db.opc1 (value double, quality boolean, other int32)" ,
143- "create aligned timeSeries root.db.opc2 (value double, quality boolean, other int32)" ,
144- "insert into root.db.opc (time, value, quality, other) values (0, 0, true, 1)" ,
145- "insert into root.db.opc1 (time, value, quality, other) values (0, 0, true, 1)" ,
146- "insert into root.db.opc2 (time, value, quality, other) values (0, 0, true, 1)" ),
143+ "create aligned timeSeries root.db.`123` (value double, quality boolean, other int32)" ,
144+ "create aligned timeSeries root.db.`1231` (value double, quality boolean, other int32)" ,
145+ "create aligned timeSeries root.db.`1232` (value double, quality boolean, other int32)" ,
146+ "insert into root.db.`123` (time, value, quality, other) values (0, 0, true, 1)" ,
147+ "insert into root.db.`1231` (time, value, quality, other) values (0, 0, true, 1)" ,
148+ "insert into root.db.`1232` (time, value, quality, other) values (0, 0, true, 1)" ),
147149 null );
148150
149151 while (true ) {
@@ -183,31 +185,33 @@ public void testOPCUAServerSink() throws Exception {
183185 TestUtils .executeNonQueries (
184186 env ,
185187 Arrays .asList (
186- "insert into root.db.opc (time, value, quality, other) values (1, 1, false, 1)" ,
187- "insert into root.db.opc1 (time, value, quality, other) values (1, 1, false, 1)" ,
188- "insert into root.db.opc2 (time, value, quality, other) values (1, 1, false, 1)" ),
188+ "insert into root.db.`123` (time, value, quality, other) values (1, 1, false, 1)" ,
189+ "insert into root.db.`1231` (time, value, quality, other) values (1, 1, false, 1)" ,
190+ "insert into root.db.`1232` (time, value, quality, other) values (1, 1, false, 1)" ),
189191 null );
190192
191193 long startTime = System .currentTimeMillis ();
192194 while (true ) {
193195 try {
194196 value =
195- opcUaClient .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc" )).get ();
197+ opcUaClient
198+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`123`" ))
199+ .get ();
196200 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
197201 Assert .assertEquals (StatusCode .BAD , value .getStatusCode ());
198202 Assert .assertEquals (new DateTime (timestampToUtc (1 )), value .getSourceTime ());
199203
200204 value =
201205 opcUaClient
202- .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc1 " ))
206+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`1231` " ))
203207 .get ();
204208 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
205209 Assert .assertEquals (StatusCode .BAD , value .getStatusCode ());
206210 Assert .assertEquals (new DateTime (timestampToUtc (1 )), value .getSourceTime ());
207211
208212 value =
209213 opcUaClient
210- .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc2 " ))
214+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`1232` " ))
211215 .get ();
212216 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
213217 Assert .assertEquals (StatusCode .BAD , value .getStatusCode ());
@@ -221,14 +225,16 @@ public void testOPCUAServerSink() throws Exception {
221225 }
222226
223227 TestUtils .executeNonQuery (
224- env , "insert into root.db.opc (time, quality) values (2, true)" , null );
225- TestUtils .executeNonQuery (env , "insert into root.db.opc (time, value) values (2, 2)" , null );
228+ env , "insert into root.db.`123` (time, quality) values (2, true)" , null );
229+ TestUtils .executeNonQuery (env , "insert into root.db.`123` (time, value) values (2, 2)" , null );
226230
227231 startTime = System .currentTimeMillis ();
228232 while (true ) {
229233 try {
230234 value =
231- opcUaClient .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc" )).get ();
235+ opcUaClient
236+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`123`" ))
237+ .get ();
232238 Assert .assertEquals (new DateTime (timestampToUtc (2 )), value .getSourceTime ());
233239 Assert .assertEquals (new Variant (2.0 ), value .getValue ());
234240 Assert .assertEquals (StatusCode .UNCERTAIN , value .getStatusCode ());
0 commit comments