Skip to content

Commit

Permalink
list pods
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis committed Aug 10, 2024
1 parent 5f10293 commit 63782bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/chart_platform_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/gruntwork-io/terratest/modules/k8s"
"github.com/gruntwork-io/terratest/modules/random"
"github.com/stretchr/testify/suite"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

type PlatformChartIntegrationSuite struct {
Expand Down Expand Up @@ -77,4 +78,9 @@ func (suite *PlatformChartIntegrationSuite) TestBasicDeployment() {

k8s.WaitUntilServiceAvailable(suite.T(), kubectlOptions, serviceName, 10, 1*time.Second)

pods := k8s.ListPods(suite.T(), kubectlOptions, metav1.ListOptions{})
//suite.Require().Len(pods,4)
for _, pod := range pods {
suite.Require().Equal(pod.Status.Phase, "Running")
}
}

0 comments on commit 63782bb

Please sign in to comment.