Skip to content

Commit e21c8a5

Browse files
committed
fix(sandbox): give the live suite's missing RuntimeClass a valid DNS name
The default short-id alphabet includes '_' and '-', so about one run in nine named the missing class something the RuntimeClass name check rejects before the cluster lookup the test asserts on.
1 parent 2ba88ef commit e21c8a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/lib/execution/remote-sandbox/kubernetes.live.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,8 @@ describe.skipIf(!enabled)('kubernetes sandbox provider on a real cluster', () =>
14151415
it(
14161416
'refuses a RuntimeClass that does not exist',
14171417
async () => {
1418-
const missing = `sim-e2e-missing-${generateShortId(6).toLowerCase()}`
1418+
// A valid DNS-1123 name, so the cluster lookup (not name validation) refuses it.
1419+
const missing = `sim-e2e-missing-${generateShortId(6, 'abcdefghijklmnopqrstuvwxyz0123456789')}`
14191420
const outcome = await check('guard refuses a missing class', () =>
14201421
freshProviderCreate({
14211422
SANDBOX_K8S_RUNTIME_CLASS: missing,

0 commit comments

Comments
 (0)