Skip to content

Commit 1bde75d

Browse files
committed
BUG-94873 Introduce new RUNNING cluster to Periscope mock
1 parent 6dd7099 commit 1bde75d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

mock/periscope/controllers/V2clustersService.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,27 @@ exports.getByCloudbreakCluster = function(args, res, next) {
273273
};
274274
res.end(JSON.stringify(responseJson));
275275
break;
276+
case 4:
277+
var responseJson = {
278+
"host":"35.187.4.62",
279+
"port":"9443",
280+
"user":"admin",
281+
"stackId":4,
282+
"id":4,
283+
"state":"RUNNING",
284+
"autoscalingEnabled":false,
285+
"metricAlerts":null,
286+
"timeAlerts":null,
287+
"prometheusAlerts":null,
288+
"scalingConfiguration":
289+
{
290+
"minSize":3,
291+
"maxSize":100,
292+
"cooldown":30
293+
}
294+
};
295+
res.end(JSON.stringify(responseJson));
296+
break;
276297
default:
277298
res.end(JSON.stringify(examples[Object.keys(examples)[0]] || {}, null, 2));
278299
}

0 commit comments

Comments
 (0)