feat: Add 10 new scenarios
Added new scenarios: 1. Kubernetes Basics: - [TASK] Annotating Kubernetes Resources - [TASK] Pod with Init Container - [MCQ] Pod Restart Policies - [MCQ] kubectl Output Formats 2. Kubernetes Administrator (CKA): - [TASK] Configure a PodDisruptionBudget - [TASK] Pod Priority and PriorityClass 3. Kubernetes Security (CKS): - [TASK] RuntimeClass for Sandboxed Workloads - [TASK] Write a Kubernetes Audit Policy - [TASK] Restrict Egress to Namespace - [TASK] Enforce Non-Root Container Signed-off-by: Abhinav Sinha <[email protected]>
This commit is contained in:
+2
-2
@@ -104,8 +104,8 @@ function runCommand(cmd, timeoutMs = 15000) {
|
||||
}
|
||||
|
||||
function checkMatch(actual, expected, matchType) {
|
||||
const a = actual.trim();
|
||||
const e = expected.trim();
|
||||
const a = String(actual).trim();
|
||||
const e = String(expected).trim();
|
||||
if (matchType === 'exact') return a === e;
|
||||
if (matchType === 'contains') return a.includes(e);
|
||||
if (matchType === 'not_contains') return !a.includes(e);
|
||||
|
||||
Reference in New Issue
Block a user