Skip to content

Commit 4d42dfc

Browse files
committed
fix: add data mock
1 parent a90c5dd commit 4d42dfc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

packages/api-mock/src/handlers/kafka-manager.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,36 @@ function createKafkaHandlers(preSeed) {
182182
});
183183
},
184184

185+
getInstanceTypesByCloudProviderAndRegion: async (c, req, res) => {
186+
res.status(200).json({
187+
"kind": "SupportedKafkaInstanceTypesList",
188+
"page": "1",
189+
"size": "1",
190+
"total": "1",
191+
"item": {
192+
"value": {
193+
"kind": "SupportedKafkaInstanceType",
194+
"id": "eval",
195+
"sizes": [
196+
{
197+
"id": "x1",
198+
"ingress_throughput_per_sec": "30Mi",
199+
"egress_throughput_per_sec": "30Mi",
200+
"total_max_connections": 3000,
201+
"max_data_retention_size": "1000Gi",
202+
"max_partitions": 1000,
203+
"max_data_retention_period": "P14D",
204+
"max_connection_attempts_per_sec": 100,
205+
"quota_consumed": 1,
206+
"quota_type": "rhosak",
207+
"capacity_consumed": 1
208+
}
209+
]
210+
}
211+
}
212+
});
213+
},
214+
185215
// Handling auth
186216
notFound: async (c, req, res) => res.status(404).json({ err: "not found" }),
187217
unauthorizedHandler: async (c, req, res) =>

0 commit comments

Comments
 (0)