- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for tmpDirs (0.24 sec)
-
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
} return cert } func TestFileExists(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir: %v", err) } defer func() { err = os.RemoveAll(tmpdir) if err != nil { t.Fatalf("Fail to remove tmpdir: %v", err) } }() tmpfile, err := os.CreateTemp(tmpdir, "") if err != nil { t.Fatalf("Couldn't create tmpfile: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
// Temporary folders for the test case (without a CA) tmpdir := testutil.SetupTempDir(t) defer os.RemoveAll(tmpdir) // Creates an InitConfiguration pointing to the tmpdir folder cfg := &kubeadmapi.InitConfiguration{ ClusterConfiguration: kubeadmapi.ClusterConfiguration{ CertificatesDir: tmpdir, }, } notAfter, _ := time.Parse(time.RFC3339, "2026-01-02T15:04:05Z")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 39.5K bytes - Viewed (0) -
pkg/kubelet/volumemanager/volume_manager_test.go
expectMount: false, expectError: true, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("volumeManagerTest") if err != nil { t.Fatalf("can't make a temp dir: %v", err) } defer os.RemoveAll(tmpDir) podManager := kubepod.NewBasicPodManager() node, pod, pv, claim := createObjects(test.pvMode, test.podMode)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods_test.go
t.Run(test.name, func(t *testing.T) { pkiutiltesting.Reset() // Setup up basic requities tmpDir := testutil.SetupTempDir(t) defer os.RemoveAll(tmpDir) cfg := testutil.GetDefaultInternalConfig(t) cfg.CertificatesDir = tmpDir if err := pkiutil.WriteCertAndKey(tmpDir, constants.CACertAndKeyBaseName, caCert, caKey); err != nil { t.Fatalf("couldn't write out CA: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 32K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/process/internal/AbstractWorkerProcessIntegrationSpec.groovy
@Rule final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) @Rule final RedirectStdOutAndErr stdout = new RedirectStdOutAndErr() final CacheFactory factory = services.get(CacheFactory.class) final GlobalCacheDir globalCacheDir = new GlobalCacheDir({ tmpDir.testDirectory })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 7.5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/cache/internal/DefaultGeneratedGradleJarCacheIntegrationTest.groovy
def currentGradleVersion = GradleVersion.current() def scopeMapping = new DefaultCacheScopeMapping(tmpDir.testDirectory, currentGradleVersion) def cacheRepository = new DefaultUnscopedCacheBuilderFactory(factory) def globalScopedCache = new DefaultGlobalScopedCacheBuilderFactory(tmpDir.testDirectory, cacheRepository)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/SystemPropertyPropagationCrossVersionTest.groovy
when: String customTmpDir = System.getProperty('java.io.tmpdir') + System.getProperty('path.separator') + 'custom' runTask { withSystemProperties('java.io.tmpdir' : customTmpDir) } then: hasNoSystemProperty('java.io.tmpdir', customTmpDir) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 06:17:20 UTC 2024 - 5K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
resourceName1 := "domain1.com/resource1" resourceName2 := "domain2.com/resource2" resourceName3 := "domain2.com/resource3" as := assert.New(t) tmpDir, err := os.MkdirTemp("", "checkpoint") as.Nil(err) defer os.RemoveAll(tmpDir) ckm, err := checkpointmanager.NewCheckpointManager(tmpDir) as.Nil(err) testManager := &ManagerImpl{ endpoints: make(map[string]endpointInfo),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0) -
subprojects/core-api/src/test/groovy/org/gradle/StartParameterTest.groovy
void "considers system properties for null user home dir"() { def gradleUserHome = tmpDir.file("someGradleUserHomePath") System.setProperty(StartParameter.GRADLE_USER_HOME_PROPERTY_KEY, gradleUserHome.absolutePath) given: StartParameter parameter = new StartParameter() parameter.gradleUserHomeDir = tmpDir.file("ignore-me") when: parameter.gradleUserHomeDir = null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 06:24:50 UTC 2024 - 14K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy
// However, in this case the test requires a directory that is not located under any Gradle build. So use // the 'java.io.tmpdir' system property directly TestFile tmpDir = new TestFile(System.getProperty("java.io.tmpdir")) def undefinedBuildDirectory = Files.createTempDirectory(tmpDir.toPath(), "gradle").toFile() testDirOverride = new TestFile(undefinedBuildDirectory) assertNoDefinedBuild(testDirectory)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:07:53 UTC 2024 - 32.9K bytes - Viewed (0)