Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 220 for httpHost (0.45 sec)

  1. pkg/client/tests/listwatch_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 tests
    
    import (
    	"net/http/httptest"
    	"net/url"
    	"testing"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/fields"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	clientset "k8s.io/client-go/kubernetes"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 02 17:08:23 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  2. internal/grid/connection_test.go

    		}
    		t.Logf("host %q should connect to %d hosts", hosts[x], should)
    	}
    }
    
    func startServer(t testing.TB, listener net.Listener, handler http.Handler) (server *httptest.Server) {
    	t.Helper()
    	server = httptest.NewUnstartedServer(handler)
    	server.Config.Addr = listener.Addr().String()
    	server.Listener = listener
    	server.Start()
    	// t.Cleanup(server.Close)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. istioctl/pkg/admin/istiodconfig_test.go

    	case http.MethodGet:
    		_, _ = writer.Write([]byte(getResponse))
    	}
    }
    
    func setupHTTPServer() (*httptest.Server, *url.URL) {
    	handler := http.NewServeMux()
    	handler.HandleFunc("/scopej/ads", adsHandler)
    	handler.HandleFunc("/scopej/resource", resourceHandler)
    	server := httptest.NewServer(handler)
    	url, _ := url.Parse(server.URL)
    	return server, url
    }
    
    func Test_flagState_run(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/conversion_test.go

    		{8888, "http", nil, corev1.ProtocolUDP, protocol.UDP},
    		{8888, "httptest", nil, corev1.ProtocolTCP, protocol.Unsupported},
    		{25, "httptest", nil, corev1.ProtocolTCP, protocol.TCP},
    		{53, "httptest", nil, corev1.ProtocolTCP, protocol.TCP},
    		{3306, "httptest", nil, corev1.ProtocolTCP, protocol.TCP},
    		{27017, "httptest", nil, corev1.ProtocolTCP, protocol.TCP},
    		{8888, "https", nil, corev1.ProtocolTCP, protocol.HTTPS},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package xds_test
    
    import (
    	"encoding/json"
    	"fmt"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    
    	"istio.io/istio/istioctl/pkg/util/configdump"
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/xds"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. pkg/test/framework/components/authz/kube.go

    	"istio.io/istio/pkg/util/sets"
    )
    
    const (
    	httpName = "ext-authz-http"
    	grpcName = "ext-authz-grpc"
    	httpPort = 8000
    	grpcPort = 9000
    
    	providerTemplate = `
    extensionProviders:
    - name: "{{ .httpName }}"
      envoyExtAuthzHttp:
        service: "{{ .fqdn }}"
        port: {{ .httpPort }}
        headersToUpstreamOnAllow: ["x-ext-authz-*"]
        headersToDownstreamOnDeny: ["x-ext-authz-*"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/wrapper_test.go

    					t.Errorf("Expected to get tehe original http.ResponseWriter object")
    				}
    			}()
    		})
    	}
    }
    
    func newServer(t *testing.T, h http.Handler, http2 bool) *httptest.Server {
    	server := httptest.NewUnstartedServer(h)
    	if http2 {
    		server.EnableHTTP2 = true
    		server.StartTLS()
    	} else {
    		server.Start()
    	}
    	_, err := url.Parse(server.URL)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:53 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filters
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"net/http"
    	"net/http/httptest"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    
    	apierrors "k8s.io/apimachinery/pkg/api/errors"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/serializer"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:34 UTC 2022
    - 16.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_init_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package filters
    
    import (
    	"fmt"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	"github.com/google/uuid"
    	"k8s.io/apiserver/pkg/audit"
    )
    
    func TestWithAuditID(t *testing.T) {
    	largeAuditID := fmt.Sprintf("%s-%s", uuid.New().String(), uuid.New().String())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:35 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/patchnode/patchnode_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package patchnode
    
    import (
    	"bytes"
    	"encoding/json"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	clientset "k8s.io/client-go/kubernetes"
    	restclient "k8s.io/client-go/rest"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 12 15:15:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top