Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for testFatal (0.14 sec)

  1. internal/event/target/nats_tls_contrib_test.go

    	s, opts := natsserver.RunServerWithConfig(filepath.Join("testdata", "contrib", "nats_tls.conf"))
    	defer s.Shutdown()
    
    	clientConfig := &NATSArgs{
    		Enable: true,
    		Address: xnet.Host{
    			Name:      "localhost",
    			Port:      (xnet.Port(opts.Port)),
    			IsPortSet: true,
    		},
    		Subject:       "test",
    		Secure:        true,
    		CertAuthority: path.Join("testdata", "contrib", "certs", "root_ca_cert.pem"),
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. cmd/server-main_test.go

    		hash        string
    	}{
    		{
    			config:      "testdata/config/1.yaml",
    			expectedErr: false,
    			hash:        "hash:02bf70285dc71f76",
    		},
    		{
    			config:      "testdata/config/2.yaml",
    			expectedErr: false,
    			hash:        "hash:676d2da00f71f205",
    		},
    		{
    			config:      "testdata/config/invalid.yaml",
    			expectedErr: true,
    		},
    		{
    			config:      "testdata/config/invalid-types.yaml",
    			expectedErr: true,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    // TestWorkloadEntryConfigure enumerates test cases based on subdirectories of testdata/vmconfig.
    // Each subdirectory contains two input files: workloadgroup.yaml and meshconfig.yaml that are used
    // to generate golden outputs from the VM command.
    func TestWorkloadEntryConfigure(t *testing.T) {
    	noClusterID := "failed to automatically determine the --clusterID"
    	files, err := os.ReadDir("testdata/vmconfig")
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. operator/cmd/mesh/profile-dump_test.go

    	"regexp"
    	"testing"
    
    	"github.com/kylelemons/godebug/diff"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestProfileDump(t *testing.T) {
    	testDataDir := filepath.Join(operatorRootDir, "cmd/mesh/testdata/profile-dump")
    	tests := []struct {
    		desc       string
    		configPath string
    	}{
    		{
    			desc: "all_off",
    		},
    		{
    			desc:       "config_path",
    			configPath: "components",
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  5. internal/s3select/simdj/reader_amd64_test.go

    }
    
    func loadCompressed(t tester, file string) (js []byte) {
    	dec, err := zstd.NewReader(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer dec.Close()
    	js, err = os.ReadFile(filepath.Join("testdata", file+".json.zst"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	js, err = dec.DecodeAll(js, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	return js
    }
    
    var testCases = []struct {
    	name  string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  6. istioctl/pkg/waypoint/waypoint_test.go

    			}
    
    			for _, gw := range tt.gateways {
    				_, _ = client.GatewayAPI().GatewayV1().Gateways(gw.Namespace).Create(context.Background(), gw, metav1.CreateOptions{})
    			}
    			defaultFile, err := os.ReadFile(fmt.Sprintf("testdata/waypoint/%s", tt.expectedOutFile))
    			if err != nil {
    				t.Fatal(err)
    			}
    			expectedOut := string(defaultFile)
    			if len(expectedOut) == 0 {
    				t.Fatal("expected output is empty")
    			}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 04 15:53:09 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. internal/s3select/csv/reader_contrib_test.go

    		}
    	}
    }
    
    type tester interface {
    	Fatal(...interface{})
    }
    
    func openTestFile(t tester, file string) []byte {
    	f, err := os.ReadFile("testdata/testdata.zip")
    	if err != nil {
    		t.Fatal(err)
    	}
    	z, err := zip.NewReader(bytes.NewReader(f), int64(len(f)))
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, f := range z.File {
    		if f.Name == file {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    		}
    		rec = httptest.NewRecorder()
    		apiRouter.ServeHTTP(rec, reqC)
    		checkRespErr(rec, http.StatusOK)
    	}
    }
    
    // unzip a file into a specific target dir - used to unzip sample data in cmd/testdata/
    func unzipArchive(zipFilePath, targetDir string) error {
    	zipReader, err := zip.OpenReader(zipFilePath)
    	if err != nil {
    		return err
    	}
    	for _, file := range zipReader.Reader.File {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  9. cmd/metacache-stream_test.go

    "src/compress/bzip2/move_to_front.go", "src/compress/bzip2/testdata/", "src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2", "src/compress/bzip2/testdata/e.txt.bz2", "src/compress/bzip2/testdata/fail-issue5747.bz2", "src/compress/bzip2/testdata/pass-random1.bin", "src/compress/bzip2/testdata/pass-random1.bz2", "src/compress/bzip2/testdata/pass-random2.bin", "src/compress/bzip2/testdata/pass-random2.bz2", "src/compress/bzip2/testdata/pass-sawtooth.bz2", "src/compress/bzip2/testdata/random.data.bz2",...
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/ecds_test.go

    	cw := &ConfigWriter{Stdout: gotOut}
    	cd, _ := os.ReadFile("testdata/ecds/configdump.json")
    	cw.Prime(cd)
    	err := cw.PrintEcdsSummary()
    	assert.NoError(t, err)
    
    	util.CompareContent(t, gotOut.Bytes(), "testdata/ecds/output.txt")
    }
    
    func TestPrintEcdsYaml(t *testing.T) {
    	gotOut := &bytes.Buffer{}
    	cw := &ConfigWriter{Stdout: gotOut}
    	cd, _ := os.ReadFile("testdata/ecds/configdump.json")
    	cw.Prime(cd)
    	err := cw.PrintEcds("yaml")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Dec 13 01:08:07 GMT 2022
    - 1.9K bytes
    - Viewed (0)
Back to top