Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testparm (0.24 sec)

  1. internal/arn/arn_test.go

    				return
    			}
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("NewIAMRoleARN() got = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestParse(t *testing.T) {
    	type args struct {
    		arnStr string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantArn ARN
    		wantErr bool
    	}{
    		{
    			name: "valid ARN must succeed",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. cmd/lock-rest-server-common_test.go

    func TestLockRpcServerRemoveEntry(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	testPath, locker, _ := createLockTestServer(ctx, t)
    	defer os.RemoveAll(testPath)
    
    	lockRequesterInfo1 := lockRequesterInfo{
    		Owner:           "owner",
    		Writer:          true,
    		UID:             "0123-4567",
    		Timestamp:       UTCNow(),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 23 17:26:21 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users_test.go

    	if err != nil {
    		c.Fatalf("unable to setup access management plugin for tests: %v", err)
    	}
    
    	s.RestartIAMSuite(c)
    }
    
    // TestIAM_AMPInternalIDPServerSuite - tests for access management plugin
    func TestIAM_AMPInternalIDPServerSuite(t *testing.T) {
    	for i, testCase := range iamTestSuites {
    		t.Run(
    			fmt.Sprintf("Test: %d, ServerType: %s", i+1, testCase.ServerTypeDescription),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    				}
    				got := buf.Bytes()
    				if !bytes.Equal(want, got) {
    					t.Fatalf("incorrect result: (-got +want)\n%v", bytediff(got, want))
    				}
    			}
    		})
    	}
    }
    
    func TestPax(t *testing.T) {
    	// Create an archive with a large name
    	fileinfo, err := os.Stat("testdata/small.txt")
    	if err != nil {
    		t.Fatal(err)
    	}
    	hdr, err := FileInfoHeader(fileinfo, "")
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  5. internal/etag/etag_test.go

    	{String: "90402c78d2dccddee1e9e86222ce2c6361675f3529d26000ae2e900ff216b3cb59e130e092d8a2981e776f4d0bd60941-1", ShouldFail: true}, // 11
    }
    
    func TestParse(t *testing.T) {
    	for i, test := range parseTests {
    		etag, err := Parse(test.String)
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: parse should have failed but succeeded", i)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  6. internal/amztime/parse_test.go

    // Package amztime implements AWS specific time parsing and deviations
    package amztime
    
    import (
    	"errors"
    	"testing"
    	"time"
    )
    
    func TestParse(t *testing.T) {
    	type testCase struct {
    		expectedErr  error
    		expectedTime time.Time
    		timeStr      string
    	}
    	testCases := []testCase{
    		{
    			ErrMalformedDate,
    			time.Time{},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 07 14:24:54 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin_test.go

    )
    
    var mockConfTmpl = `{
        "cniVersion": "%s",
    	"name": "istio-plugin-sample-test",
    	"type": "sample",
        "capabilities": {
            "testCapability": false
        },
        "ipam": {
            "type": "testIPAM"
        },
        "dns": {
            "nameservers": ["testNameServer"],
            "domain": "testDomain",
            "search": ["testSearch"],
            "options": ["testOption"]
        },
        "prevResult": {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. cmd/sts-handlers_test.go

    				suite.TestOpenIDServiceAccWithRolePolicy(c)
    				suite.TearDownSuite(c)
    			},
    		)
    	}
    }
    
    // Access Management Plugin tests
    func TestIAM_AMPWithOpenIDWithMultipleRolesServerSuite(t *testing.T) {
    	openIDServer := os.Getenv(EnvTestOpenIDServer)
    	openIDServer2 := os.Getenv(EnvTestOpenIDServer2)
    	if openIDServer == "" || openIDServer2 == "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
Back to top