Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for tempdir (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/tls_test.go

    	baseDir := os.TempDir()
    	tempDir, err := ioutil.TempDir(baseDir, "etcd_certificates")
    	if err != nil {
    		t.Fatal(err)
    	}
    	certFile = path.Join(tempDir, "etcdcert.pem")
    	if err := ioutil.WriteFile(certFile, []byte(testingcert.CertFileContent), 0644); err != nil {
    		t.Fatal(err)
    	}
    	keyFile = path.Join(tempDir, "etcdkey.pem")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

    import org.gradle.testkit.runner.GradleRunner
    import org.gradle.util.internal.TextUtil
    import spock.lang.Issue
    import spock.lang.TempDir
    
    @Requires(UnitTestPreconditions.NotWindows)
    class ConfigurationCacheTestKitIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        @TempDir
        File jacocoDestinationDir
    
        def "reports when a TestKit build runs with a Java agent and configuration caching enabled"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

        }
    
        @Test
        void testReadModifiedPoms(@TempDir Path tempDir) throws Exception {
            // TODO a similar test should be created to test the dependency management (basically all usages
            // of DefaultModelBuilder.getCache() are affected by MNG-6530
    
            FileUtils.copyDirectoryStructure(new File("src/test/resources/projects/grandchild-check"), tempDir.toFile());
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 09:06:12 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server_test.go

    type TLSFSLoadPaths struct {
    	testTLSCertFilePath string
    	testTLSKeyFilePath  string
    	testCaCertFilePath  string
    }
    
    func TestNewServerCertInit(t *testing.T) {
    	configDir := t.TempDir()
    
    	tlsArgCertsDir := t.TempDir()
    
    	tlsArgcertFile := filepath.Join(tlsArgCertsDir, "cert-file.pem")
    	tlsArgkeyFile := filepath.Join(tlsArgCertsDir, "key-file.pem")
    	tlsArgcaCertFile := filepath.Join(tlsArgCertsDir, "ca-cert.pem")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractSmokeTest.groovy

                return versions.iterator()
            }
        }
    
        private static final String INIT_SCRIPT_LOCATION = "org.gradle.smoketests.init.script"
    
        @TempDir
        File testProjectDir
        File buildFile
        File settingsFile
        @TempDir
        File buildCacheDir
    
        def setup() {
            buildFile = new File(testProjectDir, defaultBuildFileName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 08:14:32 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                import org.junit.jupiter.api.io.TempDir;
    
                import java.io.File;
                import java.io.IOException;
                import java.nio.file.Files;
    
                import static org.junit.jupiter.api.Assertions.assertTrue;
    
                public class PublishedApiTestPluginTest {
    
                    @TempDir
                    File testProjectDir;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. cni/pkg/log/uds_test.go

    	"istio.io/istio/cni/pkg/constants"
    	istiolog "istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestUDSLog(t *testing.T) {
    	// Start UDS log server
    	udsSockDir := t.TempDir()
    	udsSock := filepath.Join(udsSockDir, "cni.sock")
    	logger := NewUDSLogger(istiolog.DebugLevel)
    	stop := make(chan struct{})
    	defer close(stop)
    	assert.NoError(t, logger.StartUDSLogServer(udsSock, stop))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. pkg/test/framework/suite_test.go

    	return func(testID string) (*resource.Settings, error) {
    		s.TestID = testID
    		s.BaseDir = os.TempDir()
    		return s, nil
    	}
    }
    
    func defaultSettingsFn(testID string) (*resource.Settings, error) {
    	s := resource.DefaultSettings()
    	s.TestID = testID
    	s.BaseDir = os.TempDir()
    
    	return s, nil
    }
    
    func cleanupRT() {
    	rtMu.Lock()
    	defer rtMu.Unlock()
    	rt = nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. pkg/kubelet/certificate/kubelet_test.go

    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			createFn := createCertAndKeyFiles
    			if tt.useRename {
    				createFn = createCertAndKeyFilesUsingRename
    			}
    
    			certDir := t.TempDir()
    			certPath, keyPath, err := createFn(certDir)
    			if err != nil {
    				t.Fatalf("Unable to setup cert files: %v", err)
    			}
    
    			m, err := NewKubeletServerCertificateDynamicFileManager(certPath, keyPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tests/integration/pilot/ingress_test.go

    			t.NewSubTest("helm").Run(func(t framework.TestContext) {
    				gatewayNs := namespace.NewOrFail(t, t, namespace.Config{Prefix: "custom-gateway-helm", Inject: inject})
    				d := filepath.Join(t.TempDir(), "gateway-values.yaml")
    				rev := ""
    				if t.Settings().Revisions.Default() != "" {
    					rev = t.Settings().Revisions.Default()
    				}
    				os.WriteFile(d, []byte(fmt.Sprintf(`
    revision: %v
    gateways:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top