@@ -70,7 +70,7 @@ public void testOPCUAServerSink() throws Exception {
7070 try (final SyncConfigNodeIServiceClient client =
7171 (SyncConfigNodeIServiceClient ) env .getLeaderConfigNodeConnection ()) {
7272
73- TestUtils .executeNonQuery (env , "insert into root.db.d1(time, s1 ) values (1, 1)" , null );
73+ TestUtils .executeNonQuery (env , "insert into root.db.d1(time, `1` ) values (1, 1)" , null );
7474
7575 final Map <String , String > sinkAttributes = new HashMap <>();
7676
@@ -108,7 +108,9 @@ public void testOPCUAServerSink() throws Exception {
108108 }
109109 }
110110 value =
111- opcUaClient .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/d1/s1" )).get ();
111+ opcUaClient
112+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/d1/`1`" ))
113+ .get ();
112114 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
113115 Assert .assertEquals (new DateTime (timestampToUtc (1 )), value .getSourceTime ());
114116 opcUaClient .disconnect ().get ();
@@ -119,12 +121,12 @@ public void testOPCUAServerSink() throws Exception {
119121 TestUtils .executeNonQueries (
120122 env ,
121123 Arrays .asList (
122- "create aligned timeSeries root.db.opc (value double, quality boolean, other int32)" ,
123- "create aligned timeSeries root.db.opc1 (value double, quality boolean, other int32)" ,
124- "create aligned timeSeries root.db.opc2 (value double, quality boolean, other int32)" ,
125- "insert into root.db.opc (time, value, quality, other) values (0, 0, true, 1)" ,
126- "insert into root.db.opc1 (time, value, quality, other) values (0, 0, true, 1)" ,
127- "insert into root.db.opc2 (time, value, quality, other) values (0, 0, true, 1)" ),
124+ "create aligned timeSeries root.db.`123` (value double, quality boolean, other int32)" ,
125+ "create aligned timeSeries root.db.`1231` (value double, quality boolean, other int32)" ,
126+ "create aligned timeSeries root.db.`1232` (value double, quality boolean, other int32)" ,
127+ "insert into root.db.`123` (time, value, quality, other) values (0, 0, true, 1)" ,
128+ "insert into root.db.`1231` (time, value, quality, other) values (0, 0, true, 1)" ,
129+ "insert into root.db.`1232` (time, value, quality, other) values (0, 0, true, 1)" ),
128130 null );
129131
130132 while (true ) {
@@ -164,31 +166,33 @@ public void testOPCUAServerSink() throws Exception {
164166 TestUtils .executeNonQueries (
165167 env ,
166168 Arrays .asList (
167- "insert into root.db.opc (time, value, quality, other) values (1, 1, false, 1)" ,
168- "insert into root.db.opc1 (time, value, quality, other) values (1, 1, false, 1)" ,
169- "insert into root.db.opc2 (time, value, quality, other) values (1, 1, false, 1)" ),
169+ "insert into root.db.`123` (time, value, quality, other) values (1, 1, false, 1)" ,
170+ "insert into root.db.`1231` (time, value, quality, other) values (1, 1, false, 1)" ,
171+ "insert into root.db.`1232` (time, value, quality, other) values (1, 1, false, 1)" ),
170172 null );
171173
172174 long startTime = System .currentTimeMillis ();
173175 while (true ) {
174176 try {
175177 value =
176- opcUaClient .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc" )).get ();
178+ opcUaClient
179+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`123`" ))
180+ .get ();
177181 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
178182 Assert .assertEquals (StatusCode .BAD , value .getStatusCode ());
179183 Assert .assertEquals (new DateTime (timestampToUtc (1 )), value .getSourceTime ());
180184
181185 value =
182186 opcUaClient
183- .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc1 " ))
187+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`1231` " ))
184188 .get ();
185189 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
186190 Assert .assertEquals (StatusCode .BAD , value .getStatusCode ());
187191 Assert .assertEquals (new DateTime (timestampToUtc (1 )), value .getSourceTime ());
188192
189193 value =
190194 opcUaClient
191- .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc2 " ))
195+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`1232` " ))
192196 .get ();
193197 Assert .assertEquals (new Variant (1.0 ), value .getValue ());
194198 Assert .assertEquals (StatusCode .BAD , value .getStatusCode ());
@@ -202,14 +206,16 @@ public void testOPCUAServerSink() throws Exception {
202206 }
203207
204208 TestUtils .executeNonQuery (
205- env , "insert into root.db.opc (time, quality) values (2, true)" , null );
206- TestUtils .executeNonQuery (env , "insert into root.db.opc (time, value) values (2, 2)" , null );
209+ env , "insert into root.db.`123` (time, quality) values (2, true)" , null );
210+ TestUtils .executeNonQuery (env , "insert into root.db.`123` (time, value) values (2, 2)" , null );
207211
208212 startTime = System .currentTimeMillis ();
209213 while (true ) {
210214 try {
211215 value =
212- opcUaClient .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/opc" )).get ();
216+ opcUaClient
217+ .readValue (0 , TimestampsToReturn .Both , new NodeId (2 , "root/db/`123`" ))
218+ .get ();
213219 Assert .assertEquals (new DateTime (timestampToUtc (2 )), value .getSourceTime ());
214220 Assert .assertEquals (new Variant (2.0 ), value .getValue ());
215221 Assert .assertEquals (StatusCode .UNCERTAIN , value .getStatusCode ());
0 commit comments