Skip to content

Commit dfbbc60

Browse files
committed
add extension property to IT
1 parent 34b38dd commit dfbbc60

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

OpenRobertaServer/src/test/java/de/fhg/iais/roberta/javaServer/integrationTest/CompilerWorkflowRobotCommonIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class CompilerWorkflowRobotCommonIT {
7373
"server.log.configfile=/logback-test.xml"
7474
};
7575

76-
private static final boolean CROSSCOMPILER_CALL = true;
76+
private static final boolean CROSSCOMPILER_CALL = false;
7777
private static final boolean SHOW_SUCCESS = true;
7878

7979
private static final String RESOURCE_BASE = "/crossCompilerTests/common/";
@@ -472,7 +472,7 @@ private Pair<Result, String> executeWorkflowShowSource(String programXml, String
472472
* @param robotName ...
473473
*/
474474
private void setRobotTo(String robotName) throws Exception {
475-
Response response = this.restAdmin.setRobot(JSONUtilForServer.mkFRR("{'cmd':'setRobot','robot':'" + robotName + "'}"));
475+
Response response = this.restAdmin.setRobot(JSONUtilForServer.mkFRR("{'cmd':'setRobot','robot':'" + robotName + "', 'extensions':{}}"));
476476
JSONUtilForServer.assertEntityRc(response, "ok", Key.ROBOT_SET_SUCCESS);
477477
}
478478

OpenRobertaServer/src/test/java/de/fhg/iais/roberta/javaServer/integrationTest/CompilerWorkflowRobotSpecificIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class CompilerWorkflowRobotSpecificIT {
7777
"server.log.configfile=/logback-test.xml"
7878
};
7979

80-
private static final boolean CROSSCOMPILER_CALL = true;
80+
private static final boolean CROSSCOMPILER_CALL = false;
8181
private static final boolean SHOW_SUCCESS = true;
8282

8383
private static JSONObject robotsFromTestSpec;
@@ -335,7 +335,7 @@ private void log(boolean result, String name, String fullResource, Throwable thw
335335
}
336336

337337
private void setRobotTo(String robot) throws Exception {
338-
Response response = this.restAdmin.setRobot(JSONUtilForServer.mkFRR("{'cmd':'setRobot','robot':'" + robot + "'}"));
338+
Response response = this.restAdmin.setRobot(JSONUtilForServer.mkFRR("{'cmd':'setRobot','robot':'" + robot + "', 'extensions':{}}"));
339339
JSONUtilForServer.assertEntityRc(response, "ok", Key.ROBOT_SET_SUCCESS);
340340
}
341341

OpenRobertaServer/src/test/java/de/fhg/iais/roberta/javaServer/integrationTest/DockerIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
import de.fhg.iais.roberta.testutil.HttpClientWrapper;
2121
import de.fhg.iais.roberta.testutil.JSONUtilForServer;
22-
import de.fhg.iais.roberta.util.basic.Clock;
2322
import de.fhg.iais.roberta.util.Key;
23+
import de.fhg.iais.roberta.util.basic.Clock;
2424

2525
/**
2626
* run a workflow concurrently against a docker container<br>
@@ -136,7 +136,7 @@ private void workflow(final int userNumber) throws Exception {
136136
thinkTimeInMillisec += step(httpClientWrapper, "program", request, Key.PROGRAM_SAVE_SUCCESS, 2, 6);
137137

138138
// set robot type, then think 10-14 sec
139-
request = JSONUtilForServer.mkD("{'cmd':'setRobot';'robot':'calliope2017'}");
139+
request = JSONUtilForServer.mkD("{'cmd':'setRobot';'robot':'calliope2017', 'extensions':{}}");
140140
thinkTimeInMillisec += step(httpClientWrapper, "admin", request, Key.ROBOT_SET_SUCCESS, 10, 14);
141141

142142
// compile a program 5 times, think 5-10 sec

RobotNXT/src/main/resources/nxt.program.toolbox.expert.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
<block type="robSensors_get_weight"></block>
298298
<block type="robSensors_get_bias"></block>
299299
</category>
300-
#ifdef nn
300+
#end
301301
<category name="TOOLBOX_TEXT" svg="true">
302302
<block type="text"/>
303303
<block type="text_comment"/>

0 commit comments

Comments
 (0)