Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for testudo (0.16 sec)

  1. cmd/signature-v4-utils_test.go

    	// calling the function being tested.
    	errCode := checkMetaHeaders(signedHeadersMap, r)
    	if errCode != ErrNone {
    		t.Fatalf("Expected the APIErrorCode to be %d, but got %d", ErrNone, errCode)
    	}
    
    	// Add new metadata in inputHeader
    	inputHeader.Set("X-Amz-Meta-Clone", "fail")
    	// calling the function being tested.
    	errCode = checkMetaHeaders(signedHeadersMap, r)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	// Register all bucket level handlers.
    	registerBucketLevelFunc(bucketRouter, api, apiFunctions...)
    }
    
    // Takes in Erasure object layer, and the list of API end points to be tested/required, registers the API end points and returns the HTTP handler.
    // Need isolated registration of API end points while writing unit tests for end points.
    // All the API end points are registered only for the default case.
    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)
  3. cni/pkg/plugin/plugin_test.go

    	"istio.io/api/annotation"
    	"istio.io/api/label"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    const (
    	testPodName          = "testPod"
    	testNSName           = "testNS"
    	testSandboxDirectory = "/tmp"
    	invalidVersion       = "0.1.0"
    	preVersion           = "0.2.0"
    )
    
    var mockConfTmpl = `{
        "cniVersion": "%s",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. cmd/object-api-multipart_test.go

    		}
    		// uploadIds [4-9].
    		uploadIDs = append(uploadIDs, res.UploadID)
    	}
    	// Create multipart parts.
    	// Need parts to be uploaded before MultipartLists can be called and tested.
    	createPartCases := []struct {
    		bucketName      string
    		objName         string
    		uploadID        string
    		PartID          int
    		inputReaderData string
    		inputMd5        string
    		inputDataSize   int64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  5. cmd/object-api-listobjects_test.go

    	t, _ := t1.(*testing.T)
    	testBuckets := []string{
    		// This bucket is used for testing ListObject operations.
    		0: "test-bucket-list-object",
    		// This bucket will be tested with empty directories
    		1: "test-bucket-empty-dir",
    		// Will not store any objects in this bucket,
    		// Its to test ListObjects on an empty bucket.
    		2: "empty-bucket",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-generate_test.go

          - "false"
    `
    )
    
    // This test checks the mutating webhook selectors behavior, especially with interaction with revisions
    func TestWebhookSelector(t *testing.T) {
    	// Setup various labels to be tested
    	empty := klabels.Set{}
    	revLabel := klabels.Set{"istio.io/rev": "canary"}
    	legacyAndRevLabel := klabels.Set{"istio-injection": "enabled", "istio.io/rev": "canary"}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/pod_cache_test.go

    	}
    }
    
    func TestUpsertPodCache(t *testing.T) {
    	counter.Store(0)
    
    	p := newPodNetnsCache(openNsTestOverrideWithInodes(1, 1))
    
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    	nspath1 := "/path/to/netns/1"
    	nspath2 := "/path/to/netns/2"
    
    	netns1, err := p.UpsertPodCache(pod, nspath1)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    		}
    	}
    
    	// Initiate Multipart upload for testing PutObjectPartHandler.
    	testObject := "testobject"
    
    	// PutObjectPart API HTTP Handler has to be tested in isolation,
    	// that is without any other handler being registered,
    	// That's why NewMultipartUpload is initiated using ObjectLayer.
    	res, err := obj.NewMultipartUpload(context.Background(), bucketName, testObject, opts)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  9. internal/bucket/object/lock/lock.go

    	Mode    RetMode  `xml:"Mode"`
    	Days    *uint64  `xml:"Days"`
    	Years   *uint64  `xml:"Years"`
    }
    
    // Maximum support retention days and years supported by AWS S3.
    const (
    	// This tested by using `mc lock` command
    	maximumRetentionDays  = 36500
    	maximumRetentionYears = 100
    )
    
    // UnmarshalXML - decodes XML data.
    func (dr *DefaultRetention) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle.go

    		return false
    	}
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    		}
    
    		if len(prefix) > 0 && len(rule.GetPrefix()) > 0 {
    			// we can skip this rule if it doesn't match the tested
    			// prefix.
    			if !strings.HasPrefix(prefix, rule.GetPrefix()) && !strings.HasPrefix(rule.GetPrefix(), prefix) {
    				continue
    			}
    		}
    
    		if rule.NoncurrentVersionExpiration.NoncurrentDays > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top