Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for tempDir (0.22 sec)

  1. cni/pkg/install/kubeconfig_test.go

    		})
    	}
    }
    
    func TestReplaceInvalidKubeconfigFile(t *testing.T) {
    	tmp := t.TempDir()
    	os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644)
    	constants.ServiceAccountPath = tmp
    	tempDir := t.TempDir()
    
    	cfg := &config.InstallConfig{
    		MountedCNINetDir: tempDir,
    		KubeCAFile:       kubeCAFilepath,
    		K8sServiceHost:   k8sServiceHost,
    		K8sServicePort:   k8sServicePort,
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

    import java.nio.file.Files
    import org.gradle.api.Action
    import org.gradle.api.UnknownDomainObjectException
    import spock.lang.Specification
    import spock.lang.TempDir
    
    class SimpleClassMetaDataRepositoryTest extends Specification {
        @TempDir File tmpDir
        final SimpleClassMetaDataRepository<TestDomainObject> repository = new SimpleClassMetaDataRepository<TestDomainObject>()
    
        def canAddMetaData() {
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(CONTEXT_TEMPDIR_KEY);
            String tempDir = tempDirFile.getAbsolutePath();
            if (tempDir == null || tempDir.length() == 0) {
                tempDir = System.getProperty(JAVA_IO_TMPDIR_KEY);
            }
            return tempDir;
        }
    
        // ===================================================================================
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.io.TempDir
    
    @Tag("Slowish")
    class RelayTest {
      @TempDir
      var tempDir: File? = null
      private val executor = Executors.newCachedThreadPool(threadFactory("RelayTest"))
      private val metadata: ByteString = "great metadata!".encodeUtf8()
      private lateinit var file: File
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
      }
    
      @AfterEach
      fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. cmd/data-usage_test.go

    	"context"
    	"encoding/json"
    	"fmt"
    	"os"
    	"path"
    	"path/filepath"
    	"testing"
    )
    
    type usageTestFile struct {
    	name string
    	size int
    }
    
    func TestDataUsageUpdate(t *testing.T) {
    	base := t.TempDir()
    	const bucket = "bucket"
    	files := []usageTestFile{
    		{name: "rootfile", size: 10000},
    		{name: "rootfile2", size: 10000},
    		{name: "dir1/d1file", size: 2000},
    		{name: "dir2/d2file", size: 300},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  6. cni/pkg/pluginlistener/listener_test.go

    import (
    	"context"
    	"net"
    	"path/filepath"
    	"testing"
    
    	"google.golang.org/grpc"
    	"google.golang.org/grpc/credentials/insecure"
    )
    
    func TestCNIListener(t *testing.T) {
    	f := filepath.Join(t.TempDir(), "test")
    	l, err := NewListener(f)
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    	defer l.Close()
    	conn, err := connect(f)
    	if err != nil {
    		t.Fatalf("failed to connect %v", err)
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 21:58:32 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. src/cmd/addr2line/addr2line_test.go

    func TestAddr2Line(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	tmpDir, err := os.MkdirTemp("", "TestAddr2Line")
    	if err != nil {
    		t.Fatal("TempDir failed: ", err)
    	}
    	defer os.RemoveAll(tmpDir)
    
    	// Build copy of test binary with debug symbols,
    	// since the one running now may not have them.
    	exepath := filepath.Join(tmpDir, "testaddr2line_test.exe")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. cni/pkg/log/uds_test.go

    	"strings"
    	"testing"
    
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/pkg/log"
    	"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()
    	pluginLog.SetOutputLevel(log.DebugLevel) // this will be configured by global.logging.level
    	stop := make(chan struct{})
    	defer close(stop)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Mar 16 00:20:01 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest-generate_test.go

    				g.Expect(err.Error()).To(ContainSubstring("Webhook overlaps with others"))
    				g.Expect(objs).Should(BeNil())
    			},
    		},
    	}
    
    	recreateSimpleTestEnv()
    
    	tmpDir := t.TempDir()
    	tmpCharts := chartSourceType(filepath.Join(tmpDir, operatorSubdirFilePath))
    	err := copyDir(string(liveCharts), string(tmpCharts))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    	tmpDir := t.TempDir()
    
    	disk, err := newLocalXLStorage(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	disk.MakeVol(context.Background(), volume)
    	if _, err := disk.readMetadata(context.Background(), pathJoin(tmpDir, volume, object)); err != errFileNameTooLong {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top