Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,539 for Hour (0.04 sec)

  1. pkg/kubelet/token/token_manager_test.go

    					t.Fatalf("expected token to be refreshed: call count was %d", s.tg.count)
    				}
    			},
    		},
    		{
    			name: "rotate 24 hour token that expires in 40 hours",
    			exp:  40 * time.Hour,
    			f: func(t *testing.T, s *suite) {
    				s.clock.SetTime(s.clock.Now().Add(25 * time.Hour))
    				if _, err := s.mgr.GetServiceAccountToken("a", "b", getTokenRequest()); err != nil {
    					t.Fatalf("unexpected error: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 04 00:16:47 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  2. pkg/controller/cronjob/utils_test.go

    		}
    	}
    	{
    		// Case 6: now is way way ahead of last start time, and there is no deadline.
    		cj.ObjectMeta.CreationTimestamp = metav1.Time{Time: T1.Add(-2 * time.Hour)}
    		cj.Status.LastScheduleTime = &metav1.Time{Time: T1.Add(-1 * time.Hour)}
    		now := T2.Add(10 * 24 * time.Hour)
    		schedule, _ := nextScheduleTime(logger, &cj, now, ParseSchedule(cj.Spec.Schedule), recorder)
    		if schedule == nil {
    			t.Errorf("expected more than 0 missed times")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. pkg/registry/certificates/certificates/storage/metrics_test.go

    				Status: certificates.CertificateSigningRequestStatus{
    					Certificate: createCert(t, time.Hour, caPrivateKey, caCert),
    				},
    			},
    			old: &certificates.CertificateSigningRequest{
    				Spec: certificates.CertificateSigningRequestSpec{
    					SignerName:        "kubernetes.io/educate-dolphins",
    					ExpirationSeconds: csr.DurationToExpirationSeconds(time.Hour),
    				},
    			},
    			options:       &metav1.UpdateOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. security/pkg/pki/ca/ca_test.go

    			},
    			maxTTL:        2 * time.Hour,
    			requestedTTL:  3 * time.Hour,
    			expectedError: "requested TTL 3h0m0s is greater than the max allowed TTL 2h0m0s",
    		},
    		"CSR uses EC TTL error": {
    			forCA: false,
    			certOpts: util.CertOptions{
    				Org:      "istio.io",
    				ECSigAlg: util.EcdsaSigAlg,
    			},
    			maxTTL:        2 * time.Hour,
    			requestedTTL:  3 * time.Hour,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 08:51:27 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  5. pkg/controller/certificates/signer/signer_test.go

    			certTTL:           time.Hour,
    			expirationSeconds: csr.DurationToExpirationSeconds(30 * time.Minute),
    			want:              30 * time.Minute,
    		},
    		{
    			name:              "cannot request longer duration than TTL",
    			certTTL:           time.Hour,
    			expirationSeconds: csr.DurationToExpirationSeconds(3 * time.Hour),
    			want:              time.Hour,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  6. src/net/conf_test.go

    		t.Fatal("failed to change resolv config")
    	}
    
    	setSystemNSS(nssStr(t, "hosts: files myhostname dns"), time.Hour)
    	cnf := &conf{}
    	order, _ := cnf.addrLookupOrder(nil, "192.0.2.1")
    	if order != hostLookupCgo {
    		t.Errorf("addrLookupOrder returned: %v, want cgo", order)
    	}
    
    	setSystemNSS(nssStr(t, "hosts: files mdns4 dns"), time.Hour)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:46:36 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/time/example_test.go

    	afterTenHours := start.Add(time.Hour * 10)
    	afterTenDays := start.Add(time.Hour * 24 * 10)
    
    	fmt.Printf("start = %v\n", start)
    	fmt.Printf("start.Add(time.Second * 10) = %v\n", afterTenSeconds)
    	fmt.Printf("start.Add(time.Minute * 10) = %v\n", afterTenMinutes)
    	fmt.Printf("start.Add(time.Hour * 10) = %v\n", afterTenHours)
    	fmt.Printf("start.Add(time.Hour * 24 * 10) = %v\n", afterTenDays)
    
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  8. src/time/tick_test.go

    			}
    		})
    	}
    
    	run(t, "After", func() { After(Hour) })
    	run(t, "Tick", func() { Tick(Hour) })
    	run(t, "NewTimer", func() { NewTimer(Hour) })
    	run(t, "NewTicker", func() { NewTicker(Hour) })
    	run(t, "NewTimerStop", func() { NewTimer(Hour).Stop() })
    	run(t, "NewTickerStop", func() { NewTicker(Hour).Stop() })
    }
    
    func TestChan(t *testing.T) {
    	for _, name := range []string{"0", "1", "2"} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. src/time/format_test.go

    	// issue 67470
    	{"-07", "-25", "time zone offset hour out of range"},
    	{"-07:00", "+25:00", "time zone offset hour out of range"},
    	{"-07:00", "-23:61", "time zone offset minute out of range"},
    	{"-07:00:00", "+23:59:61", "time zone offset second out of range"},
    	{"Z07", "-25", "time zone offset hour out of range"},
    	{"Z07:00", "+25:00", "time zone offset hour out of range"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  10. cmd/kubelet/app/server_bootstrap_test.go

    	// use config1 to refresh it and the cert manager won't return it for clients.
    	config2.CertData, config2.KeyData = genClientCert(t, time.Now().Add(-2*time.Hour), time.Now().Add(-time.Hour))
    	if _, err := buildClientCertificateManager(config1, config2, testDir, nodeName); err != nil {
    		t.Fatal(err)
    	}
    	fi = getFileInfo(testDir)
    	if len(fi) != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top