Skip to content

Commit

Permalink
use aks-runtime from main
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Dec 12, 2024
1 parent ac39669 commit 0531754
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions e2e/aks-runtime/aks_runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/edgelesssys/contrast/internal/kuberesource"
"github.com/stretchr/testify/require"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const testContainer = "testcontainer"
Expand Down Expand Up @@ -104,10 +103,10 @@ func TestAKSRuntime(t *testing.T) {
require.NoError(err)
require.NoError(c.WaitFor(ctx, kubeclient.Ready, kubeclient.Deployment{}, namespace, testContainer))

pods, err := c.Client.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{})
pods, err := c.PodsFromDeployment(ctx, namespace, testContainer)
require.NoError(err)
require.GreaterOrEqual(len(pods.Items), 1)
pod := pods.Items[0] // only one pod was deployed
require.Len(pods, 1)
pod := pods[0]

logs, err := c.Client.CoreV1().Pods(namespace).GetLogs(pod.Name, &corev1.PodLogOptions{}).DoRaw(ctx)
require.NoError(err)
Expand Down

0 comments on commit 0531754

Please sign in to comment.