Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 648 for succeed (0.29 sec)

  1. internal/arn/arn_test.go

    	}{
    		{
    			name: "valid resource ID must succeed",
    			args: args{
    				resourceID:   "my-role",
    				serverRegion: "us-east-1",
    			},
    			want: ARN{
    				Partition:    "minio",
    				Service:      "iam",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			wantErr: false,
    		},
    		{
    			name: "valid resource ID must succeed",
    			args: args{
    				resourceID:   "-my-role",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .addHeader("Content-Type: text/plain")
            .build(),
        )
    
        // Make a request from client to server. It should succeed certificate checks (unfortunately the
        // rogue CA is trusted) but it should fail certificate pinning.
        val request =
          Request.Builder()
            .url(server.url("/"))
            .build()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  3. docs/iam/opa.md

    ```sh
    # 1. Create a bucket and a user, and upload a file. These operations will succeed.
    mc mb myminio/test
    mc admin user add myminio foo foobar123
    mc cp /etc/issue myminio/test/
    
    # 2. Now access the server as user `foo`. These operations will also succeed.
    export MC_HOST_foo=http://foo:foobar123@localhost:9000
    mc ls foo/test
    mc cat foo/test/issue
    
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          long oldValue = atomic.get();
          if (oldValue == 0L || atomic.compareAndSet(oldValue, 0L)) {
            // only remove after setting to zero, to avoid concurrent updates
            map.remove(key, atomic);
            // succeed even if the remove fails, since the value was already adjusted
            return oldValue;
          }
        }
      }
    
      /**
       * If {@code (key, value)} is currently in the map, this method removes it and returns true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. internal/ioutil/ioutil_test.go

    	n, err := w.Write([]byte("abcd"))
    	w.Close()
    	if err != nil {
    		t.Errorf("DeadlineWriter should succeed but failed with %s", err)
    	}
    	if n != 4 {
    		t.Errorf("DeadlineWriter should succeed but should have only written 4 bytes, but returned %d instead", n)
    	}
    }
    
    func TestCloseOnWriter(t *testing.T) {
    	writer := WriteOnClose(io.Discard)
    	if writer.HasWritten() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. istioctl/pkg/multicluster/remote_secret_test.go

    		"--name",
    		"valid-name",
    	})).Should(Succeed())
    	g.Expect(o.prepare(ctx)).Should(Succeed())
    
    	o = RemoteSecretOptions{}
    	flags = pflag.NewFlagSet("test", pflag.ContinueOnError)
    	o.addFlags(flags)
    	g.Expect(flags.Parse([]string{
    		"--name",
    		"?-invalid-name",
    	})).Should(Succeed())
    	g.Expect(o.prepare(ctx)).Should(Not(Succeed()))
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        SettableFuture<String> future = SettableFuture.create();
        future.set(RESULT);
        /*
         * getUninterruptibly should call the timed get method once with a
         * wait of 0 seconds (and it should succeed, since the result is already
         * available).
         */
        assertEquals(RESULT, getUninterruptibly(future, 0, SECONDS));
      }
    
      public void testMakeUninterruptible_timedGetNegativeTimeoutAttempted()
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    	}
    	gr, err := obj.GetObjectNInfo(ctx, bucket, object, nil, nil, ObjectOptions{})
    	if err != nil {
    		t.Fatalf("Expected GetObject to succeed, but failed with %v", err)
    	}
    	output := bytes.NewBuffer([]byte{})
    	_, err = io.Copy(output, gr)
    	if err != nil {
    		t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err)
    	}
    	gr.Close()
    	if !bytes.Equal(output.Bytes(), smallData) {
    		t.Fatalf("Corrupted data is found")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  9. internal/config/etcd/etcd_test.go

    		t.Run(testCase.s, func(t *testing.T) {
    			endpoints, secure, err := parseEndpoints(testCase.s)
    			if err != nil && testCase.success {
    				t.Errorf("expected to succeed but failed with %s", err)
    			}
    			if !testCase.success && err == nil {
    				t.Error("expected failure but succeeded instead")
    			}
    			if testCase.success {
    				if !reflect.DeepEqual(endpoints, testCase.endpoints) {
    					t.Errorf("expected %s, got %s", testCase.endpoints, endpoints)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/1-time.md

    A visible effect of this change is that `len` and `cap` of timer channels
    now returns 0 instead of 1, which may affect programs that
    poll the length to decide whether a receive on the timer channel
    will succeed.
    Such code should use a non-blocking receive instead.
    
    These new behaviors are only enabled when the main Go program
    is in a module with a `go.mod` `go` line using Go 1.23.0 or later.
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top