Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 188 for testcalls (0.1 sec)

  1. internal/http/server_test.go

    )
    
    func TestNewServer(t *testing.T) {
    	nonLoopBackIP := getNonLoopBackIP(t)
    	handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		fmt.Fprintf(w, "Hello, world")
    	})
    
    	testCases := []struct {
    		addrs   []string
    		handler http.Handler
    		certFn  certs.GetCertificateFunc
    	}{
    		{[]string{"127.0.0.1:9000"}, handler, nil},
    		{[]string{nonLoopBackIP + ":9000"}, handler, nil},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/SourceSinkTester.java

        }
      }
    
      @Override
      public void tearDown() throws IOException {
        factory.tearDown();
      }
    
      static ImmutableList<Method> getTestMethods(Class<?> testClass) {
        List<Method> result = Lists.newArrayList();
        for (Method method : testClass.getDeclaredMethods()) {
          if (Modifier.isPublic(method.getModifiers())
              && method.getReturnType() == void.class
              && method.getParameterTypes().length == 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 27 18:57:08 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/expiration_test.go

    package lifecycle
    
    import (
    	"encoding/xml"
    	"fmt"
    	"testing"
    )
    
    // appropriate errors on validation
    func TestInvalidExpiration(t *testing.T) {
    	testCases := []struct {
    		inputXML    string
    		expectedErr error
    	}{
    		{ // Expiration with zero days
    			inputXML: ` <Expiration>
                                        <Days>0</Days>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. cmd/signature-v4_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer removeRoots([]string{fsDir})
    
    	credentialTemplate := "%s/%s/%s/s3/aws4_request"
    	now := UTCNow()
    	accessKey := globalActiveCred.AccessKey
    
    	testCases := []struct {
    		form     http.Header
    		expected APIErrorCode
    	}{
    		// (0) It should fail if 'X-Amz-Credential' is missing.
    		{
    			form:     http.Header{},
    			expected: ErrCredMalformed,
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. cmd/object-api-putobject_test.go

    	}
    	// Failed as expected, but does it fail for the expected reason.
    	if actualErr != nil && !testCase.shouldPass {
    		if !errors.Is(actualErr, testCase.expectedError) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. cmd/api-response_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"net/http"
    	"testing"
    )
    
    // Tests object location.
    func TestObjectLocation(t *testing.T) {
    	testCases := []struct {
    		request          *http.Request
    		bucket, object   string
    		domains          []string
    		expectedLocation string
    	}{
    		// Server binding to localhost IP with https.
    		{
    			request: &http.Request{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  7. cmd/admin-handlers_test.go

    		t.Errorf("Expected %s, got %s", globalMinioDefaultRegion, results.Region)
    	}
    }
    
    // TestToAdminAPIErrCode - test for toAdminAPIErrCode helper function.
    func TestToAdminAPIErrCode(t *testing.T) {
    	testCases := []struct {
    		err            error
    		expectedAPIErr APIErrorCode
    	}{
    		// 1. Server not in quorum.
    		{
    			err:            errErasureWriteQuorum,
    			expectedAPIErr: ErrAdminConfigNoQuorum,
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. internal/bucket/encryption/bucket-sse-config_test.go

    		},
    		Rules: []Rule{
    			{
    				DefaultEncryptionAction: EncryptionAction{
    					Algorithm:   AWSKms,
    					MasterKeyID: "arn:aws:kms:my-minio-key",
    				},
    			},
    		},
    	}
    
    	testCases := []struct {
    		inputXML       string
    		keyID          string
    		expectedErr    error
    		shouldPass     bool
    		expectedConfig *BucketSSEConfig
    	}{
    		// 1. Valid XML SSE-S3
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 16 18:28:30 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  9. internal/bucket/replication/rule_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package replication
    
    import (
    	"bytes"
    	"fmt"
    	"testing"
    )
    
    func TestMetadataReplicate(t *testing.T) {
    	testCases := []struct {
    		inputConfig    string
    		opts           ObjectOpts
    		expectedResult bool
    	}{
    		// case 1 - rule with replica modification enabled; not a replica
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  10. cmd/erasure-healing-common_test.go

    				timeSentinel,
    				timeSentinel,
    				timeSentinel,
    			},
    			timeSentinel,
    			5,
    		},
    	}
    
    	// Tests all the testcases, and validates them against expected
    	// common modtime. Tests fail if modtime does not match.
    	for i, testCase := range testCases {
    		// Obtain a common mod time from modTimes slice.
    		ctime := commonTime(testCase.times, testCase.quorum)
    		if !testCase.time.Equal(ctime) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top