You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2026. It is now read-only.
BeforeAll {
Import-Module BenchPress.Kubernetes
}
Describe 'Verify Pods' {
It "Should contain 5 pods, when a kubeconfig is explicitly provided" {
# arrange$params=@{
KubeConfigFile="<path>"
}
$pods=Get-Pods$params# act and assert$pods.length| Should -Be 5
}
It "Should contain 5 pods, when the environment variable KUBECONFIG is set" {
# arrange$Env:KUBECONFIG="<path to kubeconfig file"$pods=Get-Pods# act and assert$pods.length| Should -Be 5
}
It "Should contain 5 pods and use the default kubeconfig when no file or environment variable is set" {
# arrange# should use the default kubeconfig$pods=Get-Pods# act and assert$pods.length| Should -Be 5
}
}
AfterAll {
Get-Module BenchPress.Kubernetes |Remove-Module
}