Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for RegExp (0.25 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 Apr 24 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 Apr 24 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 Apr 24 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 Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns.go

    // the regexes must include two named groups "poduid" and "containerid"
    // if the regex needs to exclude certain substrings, the "mustnotmatch" group can be used
    // nolint: lll
    var cgroupREs = []*regexp.Regexp{
    	// the regex used to parse out the pod UID and container ID from a
    	// cgroup name. It assumes that any ".scope" suffix has been trimmed off
    	// beforehand.  CAUTION: we used to verify that the pod and container id were
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 05 03:02:37 GMT 2024
    - 2K bytes
    - Viewed (0)
  7. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Sep 14 02:38:54 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  8. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  9. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  10. istioctl/pkg/admin/istiodconfig.go

    // limitations under the License.
    
    package admin
    
    import (
    	"bytes"
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"net/url"
    	"regexp"
    	"sort"
    	"strings"
    	"sync"
    	"text/tabwriter"
    
    	"github.com/spf13/cobra"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
Back to top