kubernetes/staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go

var fakeTypeConverter

// TestUpdateApplyConflict tests that applying to an object, which
// wasn't created by apply, will give conflicts
func TestUpdateApplyConflict(t *testing.T) {}

func TestApplyStripsFields(t *testing.T) {}

func TestVersionCheck(t *testing.T) {}

func TestVersionCheckDoesNotPanic(t *testing.T) {}

func TestApplyDoesNotStripLabels(t *testing.T) {}

func getObjectBytes(file string) []byte {}

func TestApplyNewObject(t *testing.T) {}

func TestApplyFailsWithManagedFields(t *testing.T) {}

func TestApplySuccessWithNoManagedFields(t *testing.T) {}

// Run an update and apply, and make sure that nothing has changed.
func TestNoOpChanges(t *testing.T) {}

// Tests that one can reset the managedFields by sending either an empty
// list
func TestResetManagedFieldsEmptyList(t *testing.T) {}

// Tests that one can reset the managedFields by sending either a list with one empty item.
func TestResetManagedFieldsEmptyItem(t *testing.T) {}

func TestServerSideApplyWithInvalidLastApplied(t *testing.T) {}

func TestInteropForClientSideApplyAndServerSideApply(t *testing.T) {}

func TestNoTrackManagedFieldsForClientSideApply(t *testing.T) {}

func yamlToJSON(y []byte) (string, error) {}

func setLastAppliedFromEncoded(obj runtime.Object, lastApplied []byte) error {}

func getLastApplied(obj runtime.Object) (string, error) {}

func TestUpdateViaSubresources(t *testing.T) {}

// Ensures that a no-op Apply does not mutate managed fields
func TestApplyDoesNotChangeManagedFields(t *testing.T) {}

// Ensures that a no-op Update does not mutate managed fields
func TestUpdateDoesNotChangeManagedFields(t *testing.T) {}

// This test makes sure that the liveObject during a patch does not mutate
// its managed fields.
func TestLiveObjectManagedFieldsNotRemoved(t *testing.T) {}