Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for expectedCert (0.28 sec)

  1. cmd/net_test.go

    			switch {
    			case testCase.expectedErr == nil:
    				if err != nil {
    					t.Errorf("error: expected = <nil>, got = %v", err)
    				}
    			case err == nil:
    				t.Errorf("error: expected = %v, got = <nil>", testCase.expectedErr)
    			case testCase.expectedErr.Error() != err.Error():
    				t.Errorf("error: expected = %v, got = %v", testCase.expectedErr, err)
    			}
    		})
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/expiration_test.go

    			var expiration Expiration
    			err := xml.Unmarshal([]byte(tc.inputXML), &expiration)
    			if err != tc.expectedErr {
    				t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err)
    			}
    		})
    	}
    
    	validationTestCases := []struct {
    		inputXML    string
    		expectedErr error
    	}{
    		{ // Expiration with a valid ISO 8601 date
    			inputXML: `<Expiration>
                                        <Date>2019-04-20T00:00:00Z</Date>
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedNodeFixture.java

            return outputs;
        }
    
        /**
         * Given some expectedText, assert that the output of this fixture contains it.
         *
         * @param expectedText the expected lines of expectedText
         * @return this fixture
         */
        public GroupedNodeFixture assertOutputContains(String expectedText) {
            return assertOutputContains(ComparisonFailureFormat.LINEWISE, expectedText);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedWorkOutputFixture.java

        }
    
        /**
         * Given some expectedText, assert that the output of this fixture contains it.
         *
         * @param expectedText the expected lines of expectedText
         * @return this fixture
         */
        public GroupedWorkOutputFixture assertOutputContains(String expectedText) {
            return assertOutputContains(ComparisonFailureFormat.LINEWISE, expectedText);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. security/pkg/util/certutil_test.go

    		waitTime, err := cu.GetWaitTime(c.cert, c.now)
    		if c.expectedErr != "" {
    			if err == nil {
    				t.Errorf("%s: no error is returned.", id)
    			}
    			if err.Error() != c.expectedErr {
    				t.Errorf("%s: incorrect error message: %s VS %s", id, err.Error(), c.expectedErr)
    			}
    		} else {
    			if err != nil {
    				t.Errorf("%s: unexpected error: %v", id, err)
    			}
    			if int(waitTime.Seconds()) != c.expectedWaitTime {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. security/pkg/util/jwtutil_test.go

    			expectedExp: time.Time{},
    			expectedErr: fmt.Errorf("failed to decode the JWT claims"),
    		},
    	}
    
    	for id, tc := range testCases {
    		t.Run(id, func(t *testing.T) {
    			exp, err := GetExp(tc.jwt)
    			if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil {
    				t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. cmd/server-main_test.go

    		config      string
    		expectedErr bool
    		hash        string
    	}{
    		{
    			config:      "testdata/config/1.yaml",
    			expectedErr: false,
    			hash:        "hash:02bf70285dc71f76",
    		},
    		{
    			config:      "testdata/config/2.yaml",
    			expectedErr: false,
    			hash:        "hash:676d2da00f71f205",
    		},
    		{
    			config:      "testdata/config/invalid.yaml",
    			expectedErr: true,
    		},
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Dec 07 09:33:56 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/options/configfile_test.go

    		path           string
    		expectedErr    error
    		expectedConfig *config.KubeSchedulerConfiguration
    	}{
    		{
    			name:           "Empty scheduler config file path",
    			path:           "",
    			expectedErr:    syscall.Errno(syscall.ENOENT),
    			expectedConfig: nil,
    		},
    		{
    			name:           "Correct scheduler config",
    			path:           correctConfigFile,
    			expectedErr:    nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 22 13:43:42 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/arguments_test.go

    		expectedKey string
    		expectedVal string
    		expectedErr bool
    	}{
    		{
    			name:        "arg cannot be empty",
    			arg:         "",
    			expectedErr: true,
    		},
    		{
    			name:        "arg must contain -- and =",
    			arg:         "a",
    			expectedErr: true,
    		},
    		{
    			name:        "arg must contain -- and =",
    			arg:         "a-z",
    			expectedErr: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 10:27:05 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/policy_options_test.go

    		topology      *topology.CPUTopology
    		topoMgrPolicy string
    		expectedErr   bool
    	}{
    		{
    			description:   "Align by socket not enabled",
    			policyOption:  map[string]string{FullPCPUsOnlyOption: "true"},
    			topology:      topoDualSocketMultiNumaPerSocketHT,
    			topoMgrPolicy: topologymanager.PolicySingleNumaNode,
    			expectedErr:   false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top