Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 906 for Cases (0.18 sec)

  1. pilot/pkg/model/context_test.go

    		},
    	}
    
    	for _, node := range cases {
    		in, err := model.ParseServiceNodeWithMetadata(node.out, node.in.Metadata)
    		if err != nil {
    			t.Errorf("ParseServiceNode(%q) => Got error %v", node.out, err)
    		}
    		if !reflect.DeepEqual(in, node.in) {
    			t.Errorf("ParseServiceNode(%q) => Got %#v, want %#v", node.out, in, node.in)
    		}
    	}
    }
    
    func TestParseMetadata(t *testing.T) {
    	cases := []struct {
    		name     string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 23:51:52 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. pkg/log/options_test.go

    // limitations under the License.
    
    package log
    
    import (
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    
    	"github.com/spf13/cobra"
    )
    
    func TestOpts(t *testing.T) {
    	resetGlobals()
    
    	cases := []struct {
    		cmdLine string
    		result  Options
    	}{
    		{"--log_as_json", Options{
    			OutputPaths:         []string{defaultOutputPath},
    			ErrorOutputPaths:    []string{defaultErrorOutputPath},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    type testcase struct {
    	description       string
    	expectedException bool
    	args              []string
    	expectedOutput    string
    	namespace         string
    }
    
    func TestWorkloadGroupCreate(t *testing.T) {
    	cases := []testcase{
    		{
    			description:       "Invalid command args - missing service name and namespace",
    			args:              strings.Split("group create", " "),
    			expectedException: true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. pkg/log/scope_test.go

    			"error\tklog\tmy error: info\tkey=1",
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.expected, func(t *testing.T) {
    			lines := runTest(t, tt.log)
    			mustMatchLength(t, 1, lines)
    			mustRegexMatchString(t, lines[0], tt.expected)
    		})
    	}
    }
    
    func TestBasicScopes(t *testing.T) {
    	s := RegisterScope("testScope", "z")
    
    	cases := []struct {
    		f          func()
    		pat        string
    		json       bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. pkg/volume/util/atomic_writer_test.go

    			valid: false,
    		},
    	}
    
    	for _, tc := range cases {
    		err := validatePath(tc.path)
    		if tc.valid && err != nil {
    			t.Errorf("%v: unexpected failure: %v", tc.name, err)
    			continue
    		}
    
    		if !tc.valid && err == nil {
    			t.Errorf("%v: unexpected success", tc.name)
    		}
    	}
    }
    
    func TestPathsToRemove(t *testing.T) {
    	cases := []struct {
    		name     string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. security/pkg/server/ca/node_auth_test.go

    		node:      "zt-node",
    	}
    	podOtherNode := pod{
    		name:      "pod-b",
    		namespace: podSameNode.namespace,
    		account:   podSameNode.account,
    		uid:       "2",
    		node:      "other-node",
    	}
    	cases := []struct {
    		name                    string
    		pods                    []pod
    		caller                  security.KubernetesInfo
    		requestedIdentityString string
    		trustedAccounts         map[types.NamespacedName]struct{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. docs/en/docs/deployment/docker.md

    **replication** at the cluster level, with multiple **containers**. In those cases, you are better off **building an image from scratch** as described above: [Build a Docker Image for FastAPI](#build-a-docker-image-for-fastapi).
    
    This image would be useful mainly in the special cases described above in [Containers with Multiple Processes and Special Cases](#containers-with-multiple-processes-and-special-cases). For example, if your application is **simple enough** that setting a default...
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    }
    
    type IntOrStringHolder struct {
    	IOrS IntOrString `json:"val"`
    }
    
    func TestIntOrStringUnmarshalJSON(t *testing.T) {
    	cases := []struct {
    		input  string
    		result IntOrString
    	}{
    		{"{\"val\": 123}", FromInt32(123)},
    		{"{\"val\": \"123\"}", FromString("123")},
    	}
    
    	for _, c := range cases {
    		var result IntOrStringHolder
    		if err := json.Unmarshal([]byte(c.input), &result); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. pilot/pkg/security/authz/model/model_test.go

    	authzpb "istio.io/api/security/v1beta1"
    	"istio.io/istio/pilot/pkg/security/trustdomain"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    func TestModel_MigrateTrustDomain(t *testing.T) {
    	cases := []struct {
    		name     string
    		tdBundle trustdomain.Bundle
    		rule     *authzpb.Rule
    		want     []string
    		notWant  []string
    	}{
    		{
    			name:     "no-source-principal",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 22:15:12 UTC 2023
    - 10K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Striped64.java

      transient volatile int busy;
    
      /** Package-private default constructor */
      Striped64() {}
    
      /** CASes the base field. */
      final boolean casBase(long cmp, long val) {
        return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val);
      }
    
      /** CASes the busy field from 0 to 1 to acquire lock. */
      final boolean casBusy() {
        return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top