Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestPatchPodStatus (0.52 sec)

  1. pkg/util/pod/pod_test.go

    	"reflect"
    
    	"github.com/google/go-cmp/cmp"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/client-go/kubernetes/fake"
    )
    
    func TestPatchPodStatus(t *testing.T) {
    	ns := "ns"
    	name := "name"
    	uid := types.UID("myuid")
    	client := &fake.Clientset{}
    	client.CoreV1().Pods(ns).Create(context.TODO(), &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: ns,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  2. pkg/scheduler/util/utils_test.go

    				t.Fatalf("Patch data mismatch: Actual was %v, but expected %v", actualPatchData, test.expectedPatchData)
    			}
    		})
    	}
    }
    
    func TestPatchPodStatus(t *testing.T) {
    	tests := []struct {
    		name   string
    		pod    v1.Pod
    		client *clientsetfake.Clientset
    		// validateErr checks if error returned from PatchPodStatus is expected one or not.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 14.5K bytes
    - Viewed (0)
Back to top