Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for testStatus (0.26 sec)

  1. plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation/validation_test.go

    		},
    		testName:   "Invalid case",
    		testStatus: false,
    	}}
    
    	for i := range tests {
    		errs := ValidateConfiguration(&tests[i].config)
    		if tests[i].testStatus && errs != nil {
    			t.Errorf("Test: %s, expected success: %v", tests[i].testName, errs)
    		}
    		if !tests[i].testStatus && errs == nil {
    			t.Errorf("Test: %s, expected errors: %v", tests[i].testName, errs)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/instrumented_services_test.go

    	irs := newInstrumentedRuntimeService(fakeRuntime)
    	vr, err := irs.Version(ctx, "1")
    	assert.NoError(t, err)
    	assert.Equal(t, kubeRuntimeAPIVersion, vr.Version)
    }
    
    func TestStatus(t *testing.T) {
    	ctx := context.Background()
    	fakeRuntime, _, _, _ := createTestRuntimeManager()
    	fakeRuntime.FakeStatus = &runtimeapi.RuntimeStatus{
    		Conditions: []*runtimeapi.RuntimeCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go

    		},
    		// Test non-table default printing for a Status resource.
    		{
    			object:  testStatus,
    			options: PrintOptions{},
    			expected: `STATUS    REASON               MESSAGE
    Failure   test-status-reason   test-status-message
    `,
    		},
    		// Test non-table default printing for a Status resource with NoHeaders options.
    		{
    			object:   testStatus,
    			options:  PrintOptions{NoHeaders: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 24.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface_test.go

    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    var errorStatus = NewStatus(Error, "internal error")
    var statusWithErr = AsStatus(errors.New("internal error"))
    
    func TestStatus(t *testing.T) {
    	tests := []struct {
    		name              string
    		status            *Status
    		expectedCode      Code
    		expectedMessage   string
    		expectedIsSuccess bool
    		expectedIsWait    bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 22 04:41:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. pkg/api/v1/pod/util_test.go

    		assert.Equal(t, test.expected.status, resultStatus, "GetExistingContainerStatus: "+test.desc)
    	}
    }
    
    func TestGetIndexOfContainerStatus(t *testing.T) {
    	testStatus := []v1.ContainerStatus{
    		{
    			Name:  "c1",
    			Ready: false,
    			Image: "image1",
    		},
    		{
    			Name:  "c2",
    			Ready: true,
    			Image: "image1",
    		},
    	}
    
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  6. src/net/http/request_test.go

    		}
    	})
    	server := httptest.NewServer(mux)
    	defer server.Close()
    	res, err := Get(server.URL + "/a/b/c/d/e")
    	if err != nil {
    		t.Fatal(err)
    	}
    	res.Body.Close()
    }
    
    func TestStatus(t *testing.T) {
    	// The main purpose of this test is to check 405 responses and the Allow header.
    	h := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})
    	mux := NewServeMux()
    	mux.Handle("GET /g", h)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_status.txt

    Luka Zitnik <******@****.***> 1554648071 +0200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 19:26:01 UTC 2019
    - 220 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/release/content/script.js

        var finishAnimation = function() {
          animate = false;
          loadingPara.remove();
        };
        paraFadeOut();
    
        $.ajax(url, {
          dataType: "json",
          cache: true,
          success: function(data, textStatus, jqXHR) {
            finishAnimation();
            var para = $("<p>" + messageFunction(data.length) + "</p>").insertAfter(insertAfter);
            if (data.length > 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. fess-crawler-es/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

    import org.opensearch.cluster.metadata.MappingMetadata;
    import org.opensearch.common.unit.TimeValue;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.core.rest.RestStatus;
    import org.opensearch.core.xcontent.XContentBuilder;
    import org.opensearch.index.IndexNotFoundException;
    import org.opensearch.index.query.BoolQueryBuilder;
    import org.opensearch.index.query.QueryBuilder;
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Apr 04 09:58:36 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

    import org.opensearch.common.unit.TimeValue;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.core.action.ActionListener;
    import org.opensearch.core.action.ActionResponse;
    import org.opensearch.core.rest.RestStatus;
    import org.opensearch.index.query.InnerHitBuilder;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.index.reindex.UpdateByQueryRequest;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 84.1K bytes
    - Viewed (0)
Back to top