Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for expectKind (0.16 sec)

  1. pilot/pkg/xds/mesh_network_test.go

    	type entry struct{ address, sa, network, version string }
    	const name, port = "remote-we-svc", 80
    	serviceCases := []struct {
    		name, k8s, cfg string
    		expectKind     workloadKind
    	}{
    		{
    			expectKind: Pod,
    			name:       "Service",
    			k8s: `
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: remote-we-svc
      namespace: test
    spec:
      ports:
      - port: 80
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt

            check(blockNodes.size >= 2) // first and last nodes are the opening an¡¡d closing braces
    
            val openBrace = blockNodes.first()
            openBrace.expectKind(LBRACE)
    
            val closingBrace = blockNodes.last()
            closingBrace.expectKind(RBRACE)
    
            return blockNodes.slice(1..blockNodes.size - 2)
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. pkg/log/config_test.go

    	if err := Configure(o); err != nil {
    		t.Errorf("Expecting success, got %v", err)
    	} else if s.GetOutputLevel() != InfoLevel {
    		t.Errorf("Expecting InfoLevel, got %v", s.GetOutputLevel())
    	}
    
    	o = DefaultOptions()
    	o.stackTraceLevels = "default:debug,all:info"
    	if err := Configure(o); err != nil {
    		t.Errorf("Expecting success, got %v", err)
    	} else if s.GetStackTraceLevel() != InfoLevel {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreterTest.kt

            assertDynamicInterpretationOf(
                """java""",
                "Expecting token of type RBRACE, but got IDENTIFIER ('java') instead"
            )
        }
    
        @Test
        fun `unsupported syntax - version catalog alias`() {
            assertDynamicInterpretationOf(
                """alias(libs.plugins.jmh)""",
                "Expecting token of type RBRACE, but got IDENTIFIER ('alias') instead"
            )
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:15:27 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. docs/site-replication/run-multi-site-minio-idp.sh

    sleep 10
    
    ./mc admin policy info minio1 rw
    if [ $? -eq 0 ]; then
    	echo "expecting the command to fail, exiting.."
    	exit_1
    fi
    
    ./mc admin policy info minio2 rw
    if [ $? -eq 0 ]; then
    	echo "expecting the command to fail, exiting.."
    	exit_1
    fi
    
    ./mc admin policy info minio3 rw
    if [ $? -eq 0 ]; then
    	echo "expecting the command to fail, exiting.."
    	exit_1
    fi
    
    ./mc admin user info minio1 foobar
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ErrorParsingTest.kt

                        potentialElementSource = indexes: 2..16, line/column: 1/3..1/17, file: test,
                        erroneousSource = indexes: 16..16, line/column: 1/17..1/17, file: test
                    )
                )
                ErroneousStatement (
                    ParsingError(
                        message = Expecting an element,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 09:41:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. docs/site-replication/run-multi-site-ldap.sh

    ./mc stat minio2/newbucket
    if [ $? -ne 0 ]; then
    	echo "expecting bucket to be present. exiting.."
    	exit_1
    fi
    
    ./mc stat minio3/newbucket
    if [ $? -ne 0 ]; then
    	echo "expecting bucket to be present. exiting.."
    	exit_1
    fi
    
    ./mc cp README.md minio2/newbucket/
    
    sleep 5
    ./mc stat minio1/newbucket/README.md
    if [ $? -ne 0 ]; then
    	echo "expecting object to be present. exiting.."
    	exit_1
    fi
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 10.1K bytes
    - Viewed (2)
  8. security/pkg/server/ca/server_test.go

    		s, _ := status.FromError(err)
    		code := s.Code()
    		if code != c.code {
    			t.Errorf("Case %s: expecting code to be (%d) but got (%d): %s", id, c.code, code, s.Message())
    		} else if c.code == codes.OK {
    			if len(response.CertChain) != len(mockCertChain) {
    				t.Errorf("Case %s: expecting cert chain length to be (%d) but got (%d)",
    					id, len(mockCertChain), len(response.CertChain))
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

                    unitSuccess
                } else if (tokenType == IDENTIFIER) {
                    failure("Expecting symbol '$s', but got '$tokenText' instead")
                } else if (tokenType == null) {
                    failure("Expecting symbol '$s'")
                } else {
                    failure("Expecting symbol '$s', but got a token of type '$tokenType' instead")
                }
            }
        }
    
    
        internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pkg/log/scope_test.go

    	defer func() {
    		if r := recover(); r != nil {
    			return
    		}
    		t.Errorf("Expecting to panic when using bad scope name %s, but didn't", name)
    	}()
    
    	_ = RegisterScope(name, "A poorly named scope")
    }
    
    func TestBadWriter(t *testing.T) {
    	o := testOptions()
    	if err := Configure(o); err != nil {
    		t.Errorf("Got err '%v', expecting success", err)
    	}
    
    	pt := funcs.Load().(patchTable)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top