Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add VSCode launch config for tests #2160

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 70 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,75 @@
"ENABLE_WEBHOOKS": "false"
},
"preLaunchTask": "Install CRDs"
}
},
{
"name": "Launch KLM Integration Tests - Package of current file",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"args": ["-test.v", "-ginkgo.flake-attempts=10"],
"env": {
// make sure you added the following to your VSCODE settings.json
"KUBEBUILDER_ASSETS": "${config:go.testEnvVars.KUBEBUILDER_ASSETS}"
},
},
{
"name": "Launch KLM E2E Test",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/tests/e2e",
"args": ["-test.timeout", "20m", "-ginkgo.v", "-ginkgo.focus", "${input:e2eTestTargetName}"],
"env": {
"KCP_KUBECONFIG": "${env:HOME}/.k3d/kcp-local.yaml",
"SKR_KUBECONFIG": "${env:HOME}/.k3d/skr-local.yaml",
}
},
],
"inputs": [
{
// not all of the options work OOTB, see deploy-lifecycle-manager-e2e action.yaml for specific patches
"id": "e2eTestTargetName",
"type": "pickString",
"description": "E2E test target name",
"options": [
"KCP Kyma CR Deprovision With Foreground Propagation After SKR Cluster Removal",
"KCP Kyma CR Deprovision With Background Propagation After SKR Cluster Removal",
"Manage Module Metrics",
"Mandatory Module Metrics",
"Mandatory Module With Old Naming Pattern Metrics",
"Enqueue Event from Watcher",
"Module Status Decoupling With StatefulSet",
"Module Status Decoupling With Deployment",
"Module Without Default CR",
"Module Keep Consistent After Deploy",
"Mandatory Module Installation and Deletion",
"Mandatory Module With Old Naming Pattern Installation and Deletion",
"Non Blocking Kyma Module Deletion",
"Manifest Skip Reconciliation Label",
"Kyma Module Upgrade Under Deletion",
"Kyma Module with ModuleReleaseMeta Upgrade Under Deletion",
"Unmanaging Kyma Module",
"Purge Controller",
"Purge Metrics",
"Module Upgrade By Channel Switch",
"Module Upgrade By New Version",
"Module with ModuleReleaseMeta Upgrade By New Version",
"Module Install By Version",
"CA Certificate Rotation",
"Istio Gateway Secret Rotation",
"Self Signed Certificate Rotation",
"Misconfigured Kyma Secret",
"RBAC Privileges",
"OCM Format Module Template",
"ModuleReleaseMeta With Obsolete ModuleTemplate",
"ModuleReleaseMeta Watch Trigger",
"ModuleReleaseMeta Sync",
"KCP Kyma Module status on SKR connection lost",
"ModuleReleaseMeta Not Allowed Installation",
"Labelling SKR resources"
]
},
]
}
Loading