- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 3,920 for Hour (0.07 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/conditions_test.go
import ( "reflect" "testing" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) func TestSetStatusCondition(t *testing.T) { oneHourBefore := time.Now().Add(-1 * time.Hour) oneHourAfter := time.Now().Add(1 * time.Hour) tests := []struct { name string conditions []metav1.Condition toAdd metav1.Condition expectChanged bool expected []metav1.Condition }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 22 01:13:33 UTC 2023 - 6.7K bytes - Viewed (0) -
cmd/data-scanner_test.go
obj := ObjectInfo{ Name: "foo", ModTime: time.Now().Add(-31 * 24 * time.Hour), Size: 100 << 20, VersionID: uuid.New().String(), IsLatest: true, NumVersions: 4, } delMarker := ObjectInfo{ Name: "foo-deleted", ModTime: time.Now().Add(-61 * 24 * time.Hour), Size: 0, VersionID: uuid.New().String(), IsLatest: true,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 03 11:18:58 UTC 2024 - 6.9K bytes - Viewed (0) -
pkg/controller/bootstrap/tokencleaner_test.go
cleaner, cl, secrets, err := newTokenCleaner() if err != nil { t.Fatalf("error creating TokenCleaner: %v", err) } secret := newTokenSecret("tokenID", "tokenSecret") addSecretExpiration(secret, timeString(-time.Hour)) secrets.Informer().GetIndexer().Add(secret) cleaner.evalSecret(context.TODO(), secret) expected := []core.Action{ core.NewDeleteActionWithOptions(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/cache_test.go
cache.set(key1, twi1) clock.Step(time.Hour) got := cache.get(info1, key1) twiPtrEquals(t, twi1, got) cacheLenEquals(t, cache, 1) }, }, { name: "expired get after GC", test: func(t *testing.T, cache *simpleCache, clock *clocktesting.FakeClock) { cache.set(key1, twi1) clock.Step(time.Hour) cacheLenEquals(t, cache, 1)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 19:25:52 UTC 2023 - 3.5K bytes - Viewed (0) -
cmd/local-locker_test.go
} if len(l.lockUID) != len(rResources)+len(wResources) { t.Fatalf("lockUID len, got %d, want %d + %d", len(l.lockUID), len(rResources), len(wResources)) } // Expire an hour from now, should keep all l.expireOldLocks(time.Hour) if len(l.lockMap) != len(rResources)+len(wResources) { t.Fatalf("lockmap len, got %d, want %d + %d", len(l.lockMap), len(rResources), len(wResources)) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 05 04:57:35 UTC 2023 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_test.go
// when empty, record is stored cache.set("foo", record1, time.Hour) if result, ok := cache.get("foo"); !ok || result != record1 { t.Errorf("Expected %#v, true, got %#v, %v", record1, result, ok) } // newer record overrides cache.set("foo", record2, time.Hour) if result, ok := cache.get("foo"); !ok || result != record2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 3.1K bytes - Viewed (0) -
internal/s3select/sql/parser.go
Quantity *Operand `parser:" @@ \",\""` Timestamp *PrimaryTerm `parser:" @@ \")\""` } // DateDiffFunc represents the DATE_DIFF function type DateDiffFunc struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.9K bytes - Viewed (0) -
.teamcity/src/main/kotlin/promotion/PublishNightlyDocumentation.kt
triggers { branch.nightlyPromotionTriggerHour?.let { triggerHour -> schedule { schedulingPolicy = daily { this.hour = triggerHour } triggerBuild = always() withPendingChangesOnly = true enabled = branch.enableVcsTriggers
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 07 17:05:02 UTC 2024 - 2.2K bytes - Viewed (0) -
pilot/pkg/model/proxy_config_test.go
"B": "2", }, }), now.Add(time.Hour)), setCreationTimestamp(newProxyConfig("workload-c", "test-ns", &v1beta1.ProxyConfig{ Selector: selector(map[string]string{ "test": "selector", }), EnvironmentVariables: map[string]string{ "C": "3", }, }), now.Add(time.Hour)), }, proxy: newMeta( "test-ns", map[string]string{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 21 01:23:19 UTC 2023 - 11.8K bytes - Viewed (0) -
security/tools/jwt/samples/gen-jwt.py
fout.write("{ \"keys\":[ ") fout.write(key.export(private_key=False)) fout.write("]}") fout.close now = int(time.time()) payload = { # expire in one hour. "exp": now + args.expire, "iat": now, } if args.iss: payload["iss"] = args.iss if args.sub: payload["sub"] = args.sub else: payload["sub"] = args.iss
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 11 16:38:57 UTC 2023 - 4.7K bytes - Viewed (0)