Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for RegExp (0.23 sec)

  1. istioctl/pkg/dashboard/dashboard_test.go

    			WantException:  false,
    		},
    		{ // case 4
    			Args:           strings.Split("envoy --browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile(".*Error: specify a pod or --selector"),
    			WantException:  true,
    		},
    		{ // case 5
    			Args:           strings.Split("envoy --browser=false pod-123456-7890", " "),
    			ExpectedRegexp: regexp.MustCompile("http://localhost:3456"),
    			WantException:  false,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. istioctl/pkg/util/testutil/util.go

    package testutil
    
    import (
    	"bytes"
    	"regexp"
    	"strings"
    	"testing"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/pilot/test/util"
    )
    
    type TestCase struct {
    	Args []string
    
    	// Typically use one of the three
    	ExpectedOutput string         // Expected constant output
    	ExpectedRegexp *regexp.Regexp // Expected regexp output
    	GoldenFilename string         // Expected output stored in golden file
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. istioctl/pkg/kubeinject/kubeinject_test.go

    // limitations under the License.
    package kubeinject
    
    import (
    	"fmt"
    	"regexp"
    	"strings"
    	"testing"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/util/testutil"
    )
    
    func TestKubeInject(t *testing.T) {
    	cases := []testutil.TestCase{
    		{ // case 0
    			Args:           []string{},
    			ExpectedRegexp: regexp.MustCompile(`filename not specified \(see --filename or -f\)`),
    			WantException:  true,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  4. operator/cmd/mesh/profile-dump_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package mesh
    
    import (
    	"os"
    	"path/filepath"
    	"regexp"
    	"testing"
    
    	"github.com/kylelemons/godebug/diff"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    func TestProfileDump(t *testing.T) {
    	testDataDir := filepath.Join(operatorRootDir, "cmd/mesh/testdata/profile-dump")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  5. common/config/.golangci-format.yml

        # it's a comma-separated list of prefixes
        local-prefixes: istio.io/
    issues:
      # Which dirs to exclude: issues from them won't be reported.
      # Can use regexp here: `generated.*`, regexp is applied on full path,
      # including the path prefix if one is set.
      # Default dirs are skipped independently of this option's value (see exclude-dirs-use-default).
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 05 03:02:37 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. istioctl/pkg/authz/listener.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package authz
    
    import (
    	"fmt"
    	"io"
    	"regexp"
    	"sort"
    	"strings"
    	"text/tabwriter"
    
    	listener "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
    	rbacpb "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  7. istioctl/pkg/config/config_test.go

    	"istio.io/istio/pkg/config/constants"
    )
    
    func TestConfigList(t *testing.T) {
    	cases := []testutil.TestCase{
    		//{ // case 0
    		//	Args:           strings.Split("get istioNamespace", " "),
    		//	ExpectedRegexp: regexp.MustCompile("Configure istioctl defaults"),
    		//	WantException:  false,
    		//},
    		{ // case 1
    			Args: strings.Split("list", " "),
    			ExpectedOutput: `FLAG                    VALUE            FROM
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. istioctl/cmd/options_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package cmd
    
    import (
    	"bytes"
    	"regexp"
    	"testing"
    )
    
    // nolint: lll
    var expectedOutput = `The following options can be passed to any command:
          --log_as_json: Whether to format output as JSON or in plain console-friendly format
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Sep 14 02:38:54 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  9. istioctl/pkg/metrics/metrics_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package metrics
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"regexp"
    	"strings"
    	"testing"
    	"time"
    
    	promv1 "github.com/prometheus/client_golang/api/prometheus/v1"
    	prometheus_model "github.com/prometheus/common/model"
    	corev1 "k8s.io/api/core/v1"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top