Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 221 for ktesting (0.29 sec)

  1. pkg/controller/cronjob/cronjob_controllerv2_test.go

    				},
    			},
    			expectedDelay: 0 * time.Second,
    		},
    
    		// TODO: Add more test cases for updating scheduling.
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			logger, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			kubeClient := fake.NewSimpleClientset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    	"k8s.io/kubernetes/pkg/scheduler/framework/plugins/feature"
    	plugintesting "k8s.io/kubernetes/pkg/scheduler/framework/plugins/testing"
    	frameworkruntime "k8s.io/kubernetes/pkg/scheduler/framework/runtime"
    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    	tf "k8s.io/kubernetes/pkg/scheduler/testing/framework"
    	"k8s.io/utils/ptr"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    	"k8s.io/client-go/kubernetes/fake"
    	cgotesting "k8s.io/client-go/testing"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    	"k8s.io/kubernetes/pkg/scheduler/framework/plugins/feature"
    	"k8s.io/kubernetes/pkg/scheduler/framework/runtime"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    	"k8s.io/kubernetes/test/utils/ktesting"
    	"k8s.io/utils/ptr"
    )
    
    var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go

    import (
    	"context"
    	"fmt"
    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    	plugintesting "k8s.io/kubernetes/pkg/scheduler/framework/plugins/testing"
    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 58.2K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			nodes:    []string{"node1"},
    			expected: false,
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			logger, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			var nodes []*v1.Node
    			for _, n := range test.nodes {
    				nodes = append(nodes, st.MakeNode().Name(n).Obj())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/binder_test.go

    limitations under the License.
    */
    
    package persistentvolume
    
    import (
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	storage "k8s.io/api/storage/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/component-helpers/storage/volume"
    	"k8s.io/klog/v2/ktesting"
    )
    
    // Test single call to syncClaim and syncVolume methods.
    //  1. Fill in the controller with initial data
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/client-go/kubernetes/fake"
    	core "k8s.io/client-go/testing"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	csitrans "k8s.io/csi-translation-lib"
    	"k8s.io/kubernetes/pkg/features"
    	containertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
    	kubepod "k8s.io/kubernetes/pkg/kubelet/pod"
    	"k8s.io/kubernetes/pkg/kubelet/volumemanager/cache"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  8. src/testing/testing.go

    //
    // # Fuzzing
    //
    // 'go test' and the testing package support fuzzing, a testing technique where
    // a function is called with randomly generated inputs to find bugs not
    // anticipated by unit tests.
    //
    // Functions of the form
    //
    //	func FuzzXxx(*testing.F)
    //
    // are considered fuzz tests.
    //
    // For example:
    //
    //	func FuzzHex(f *testing.F) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  9. pkg/volume/testing/testing.go

    limitations under the License.
    */
    
    package testing
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	goruntime "runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"k8s.io/klog/v2"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/utils/exec"
    	testingexec "k8s.io/utils/exec/testing"
    	utilstrings "k8s.io/utils/strings"
    
    	v1 "k8s.io/api/core/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/jvm/java_testing.adoc

    .Preserving order of TestNG tests
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 16:24:12 UTC 2024
    - 53.1K bytes
    - Viewed (0)
Back to top