@@ -200,8 +200,8 @@ class SolutionControllerTests : ControllerTestBase() {
200200 val runTemplateComputeSize = " this_is_a_compute_size"
201201 val runTemplateRunSizing =
202202 RunTemplateResourceSizing (
203- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
204- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
203+ ResourceSizeInfo (" 1 " , " 2G " ),
204+ ResourceSizeInfo (" 1 " , " 2G " ),
205205 )
206206 val runTemplates =
207207 mutableListOf (
@@ -275,10 +275,10 @@ class SolutionControllerTests : ControllerTestBase() {
275275 .andExpect(jsonPath(" $.runTemplates[0].description" ).value(description))
276276 .andExpect(jsonPath(" $.runTemplates[0].tags" ).value(tags))
277277 .andExpect(jsonPath(" $.runTemplates[0].computeSize" ).value(runTemplateComputeSize))
278- .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.cpu" ).value(" cpu_requests " ))
279- .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.memory" ).value(" memory_requests " ))
280- .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.cpu" ).value(" cpu_limits " ))
281- .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.memory" ).value(" memory_limits " ))
278+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.cpu" ).value(" 1 " ))
279+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.memory" ).value(" 2G " ))
280+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.cpu" ).value(" 1 " ))
281+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.memory" ).value(" 2G " ))
282282 .andExpect(
283283 jsonPath(" $.runTemplates[0].parameterGroups" ).value(mutableListOf (parameterGroupId))
284284 )
@@ -343,8 +343,8 @@ class SolutionControllerTests : ControllerTestBase() {
343343 val runTemplateComputeSize = " this_is_a_compute_size"
344344 val runTemplateRunSizing =
345345 RunTemplateResourceSizing (
346- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
347- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
346+ ResourceSizeInfo (" 1 " , " 2G " ),
347+ ResourceSizeInfo (" 1 " , " 2G " ),
348348 )
349349 val runTemplates =
350350 mutableListOf (
@@ -434,10 +434,10 @@ class SolutionControllerTests : ControllerTestBase() {
434434 .andExpect(jsonPath(" $.runTemplates[0].description" ).value(description))
435435 .andExpect(jsonPath(" $.runTemplates[0].tags" ).value(tags))
436436 .andExpect(jsonPath(" $.runTemplates[0].computeSize" ).value(runTemplateComputeSize))
437- .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.cpu" ).value(" cpu_requests " ))
438- .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.memory" ).value(" memory_requests " ))
439- .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.cpu" ).value(" cpu_limits " ))
440- .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.memory" ).value(" memory_limits " ))
437+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.cpu" ).value(" 1 " ))
438+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.requests.memory" ).value(" 2G " ))
439+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.cpu" ).value(" 1 " ))
440+ .andExpect(jsonPath(" $.runTemplates[0].runSizing.limits.memory" ).value(" 2G " ))
441441 .andExpect(
442442 jsonPath(" $.runTemplates[0].parameterGroups" ).value(mutableListOf (parameterGroupId))
443443 )
@@ -1087,8 +1087,8 @@ class SolutionControllerTests : ControllerTestBase() {
10871087 runTemplateTags,
10881088 runTemplateComputeSize,
10891089 RunTemplateResourceSizing (
1090- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
1091- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
1090+ ResourceSizeInfo (" 1 " , " 2G " ),
1091+ ResourceSizeInfo (" 1 " , " 2G " ),
10921092 ),
10931093 runTemplateParameterGroups,
10941094 10 ,
@@ -1114,10 +1114,10 @@ class SolutionControllerTests : ControllerTestBase() {
11141114 .andExpect(jsonPath(" $[0].description" ).value(runTemplateDescription))
11151115 .andExpect(jsonPath(" $[0].tags" ).value(runTemplateTags))
11161116 .andExpect(jsonPath(" $[0].computeSize" ).value(runTemplateComputeSize))
1117- .andExpect(jsonPath(" $[0].runSizing.requests.cpu" ).value(" cpu_requests " ))
1118- .andExpect(jsonPath(" $[0].runSizing.requests.memory" ).value(" memory_requests " ))
1119- .andExpect(jsonPath(" $[0].runSizing.limits.cpu" ).value(" cpu_limits " ))
1120- .andExpect(jsonPath(" $[0].runSizing.limits.memory" ).value(" memory_limits " ))
1117+ .andExpect(jsonPath(" $[0].runSizing.requests.cpu" ).value(" 1 " ))
1118+ .andExpect(jsonPath(" $[0].runSizing.requests.memory" ).value(" 2G " ))
1119+ .andExpect(jsonPath(" $[0].runSizing.limits.cpu" ).value(" 1 " ))
1120+ .andExpect(jsonPath(" $[0].runSizing.limits.memory" ).value(" 2G " ))
11211121 .andExpect(jsonPath(" $[0].parameterGroups" ).value(runTemplateParameterGroups))
11221122 .andExpect(jsonPath(" $[0].executionTimeout" ).value(10 ))
11231123 .andDo(MockMvcResultHandlers .print ())
@@ -1136,8 +1136,8 @@ class SolutionControllerTests : ControllerTestBase() {
11361136 val runTemplateComputeSize = " this_is_a_compute_size"
11371137 val runTemplateRunSizing =
11381138 RunTemplateResourceSizing (
1139- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
1140- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
1139+ ResourceSizeInfo (" 1 " , " 2G " ),
1140+ ResourceSizeInfo (" 1 " , " 2G " ),
11411141 )
11421142 val runTemplate =
11431143 RunTemplateCreateRequest (
@@ -1169,10 +1169,10 @@ class SolutionControllerTests : ControllerTestBase() {
11691169 .andExpect(jsonPath(" $.description" ).value(description))
11701170 .andExpect(jsonPath(" $.tags" ).value(tags))
11711171 .andExpect(jsonPath(" $.computeSize" ).value(runTemplateComputeSize))
1172- .andExpect(jsonPath(" $.runSizing.requests.cpu" ).value(" cpu_requests " ))
1173- .andExpect(jsonPath(" $.runSizing.requests.memory" ).value(" memory_requests " ))
1174- .andExpect(jsonPath(" $.runSizing.limits.cpu" ).value(" cpu_limits " ))
1175- .andExpect(jsonPath(" $.runSizing.limits.memory" ).value(" memory_limits " ))
1172+ .andExpect(jsonPath(" $.runSizing.requests.cpu" ).value(" 1 " ))
1173+ .andExpect(jsonPath(" $.runSizing.requests.memory" ).value(" 2G " ))
1174+ .andExpect(jsonPath(" $.runSizing.limits.cpu" ).value(" 1 " ))
1175+ .andExpect(jsonPath(" $.runSizing.limits.memory" ).value(" 2G " ))
11761176 .andExpect(jsonPath(" $.parameterGroups" ).value(mutableListOf (parameterGroupId)))
11771177 .andExpect(jsonPath(" $.executionTimeout" ).value(10 ))
11781178 .andDo(MockMvcResultHandlers .print ())
@@ -1201,8 +1201,8 @@ class SolutionControllerTests : ControllerTestBase() {
12011201 runTemplateTags,
12021202 runTemplateComputeSize,
12031203 RunTemplateResourceSizing (
1204- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
1205- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
1204+ ResourceSizeInfo (" 1 " , " 2G " ),
1205+ ResourceSizeInfo (" 1 " , " 2G " ),
12061206 ),
12071207 runTemplateParameterGroups,
12081208 10 ,
@@ -1228,10 +1228,10 @@ class SolutionControllerTests : ControllerTestBase() {
12281228 .andExpect(jsonPath(" $.description" ).value(runTemplateDescription))
12291229 .andExpect(jsonPath(" $.tags" ).value(runTemplateTags))
12301230 .andExpect(jsonPath(" $.computeSize" ).value(runTemplateComputeSize))
1231- .andExpect(jsonPath(" $.runSizing.requests.cpu" ).value(" cpu_requests " ))
1232- .andExpect(jsonPath(" $.runSizing.requests.memory" ).value(" memory_requests " ))
1233- .andExpect(jsonPath(" $.runSizing.limits.cpu" ).value(" cpu_limits " ))
1234- .andExpect(jsonPath(" $.runSizing.limits.memory" ).value(" memory_limits " ))
1231+ .andExpect(jsonPath(" $.runSizing.requests.cpu" ).value(" 1 " ))
1232+ .andExpect(jsonPath(" $.runSizing.requests.memory" ).value(" 2G " ))
1233+ .andExpect(jsonPath(" $.runSizing.limits.cpu" ).value(" 1 " ))
1234+ .andExpect(jsonPath(" $.runSizing.limits.memory" ).value(" 2G " ))
12351235 .andExpect(jsonPath(" $.parameterGroups" ).value(runTemplateParameterGroups))
12361236 .andExpect(jsonPath(" $.executionTimeout" ).value(10 ))
12371237 .andDo(MockMvcResultHandlers .print ())
@@ -1256,8 +1256,8 @@ class SolutionControllerTests : ControllerTestBase() {
12561256 mutableListOf (" tag1" , " tag2" ),
12571257 " this_is_a_compute_size" ,
12581258 RunTemplateResourceSizing (
1259- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
1260- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
1259+ ResourceSizeInfo (" 1 " , " 2G " ),
1260+ ResourceSizeInfo (" 1 " , " 2G " ),
12611261 ),
12621262 mutableListOf (" parameterGroup1" ),
12631263 10 ,
@@ -1279,8 +1279,8 @@ class SolutionControllerTests : ControllerTestBase() {
12791279 val runTemplateComputeSize = " this_is_a_compute_size2"
12801280 val runTemplateRunSizing =
12811281 RunTemplateResourceSizing (
1282- ResourceSizeInfo (" cpu_requests2 " , " memory_requests2 " ),
1283- ResourceSizeInfo (" cpu_limits2 " , " memory_limits2 " ),
1282+ ResourceSizeInfo (" 2 " , " 3G " ),
1283+ ResourceSizeInfo (" 2 " , " 3G " ),
12841284 )
12851285 val newRunTemplate =
12861286 RunTemplateUpdateRequest (
@@ -1310,10 +1310,10 @@ class SolutionControllerTests : ControllerTestBase() {
13101310 .andExpect(jsonPath(" $.description" ).value(description))
13111311 .andExpect(jsonPath(" $.tags" ).value(tags))
13121312 .andExpect(jsonPath(" $.computeSize" ).value(runTemplateComputeSize))
1313- .andExpect(jsonPath(" $.runSizing.requests.cpu" ).value(" cpu_requests2 " ))
1314- .andExpect(jsonPath(" $.runSizing.requests.memory" ).value(" memory_requests2 " ))
1315- .andExpect(jsonPath(" $.runSizing.limits.cpu" ).value(" cpu_limits2 " ))
1316- .andExpect(jsonPath(" $.runSizing.limits.memory" ).value(" memory_limits2 " ))
1313+ .andExpect(jsonPath(" $.runSizing.requests.cpu" ).value(" 2 " ))
1314+ .andExpect(jsonPath(" $.runSizing.requests.memory" ).value(" 3G " ))
1315+ .andExpect(jsonPath(" $.runSizing.limits.cpu" ).value(" 2 " ))
1316+ .andExpect(jsonPath(" $.runSizing.limits.memory" ).value(" 3G " ))
13171317 .andExpect(jsonPath(" $.parameterGroups" ).value(mutableListOf (parameterGroupId)))
13181318 .andExpect(jsonPath(" $.executionTimeout" ).value(100 ))
13191319 .andDo(MockMvcResultHandlers .print ())
@@ -1336,8 +1336,8 @@ class SolutionControllerTests : ControllerTestBase() {
13361336 val runTemplateComputeSize = " this_is_a_compute_size"
13371337 val runTemplateRunSizing =
13381338 RunTemplateResourceSizing (
1339- ResourceSizeInfo (" cpu_requests " , " memory_requests " ),
1340- ResourceSizeInfo (" cpu_limits " , " memory_limits " ),
1339+ ResourceSizeInfo (" 1 " , " 2G " ),
1340+ ResourceSizeInfo (" 1 " , " 2G " ),
13411341 )
13421342 val runTemplates =
13431343 mutableListOf (
0 commit comments