mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-23 19:16:25 +00:00
adds a new integration test to verify that the API server's egress to admission webhooks correctly respects the standard `HTTPS_PROXY` and `NO_PROXY` environment variables. It adds a new test util to implement a Fake DNS server that allows to override DNS resolution in tests, specially useful for integration test that can only bind to localhost the servers, that is ignored by certain functionalities.
28 lines
721 B
Go
28 lines
721 B
Go
/*
|
|
Copyright 2025 The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
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 httpproxy
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"k8s.io/kubernetes/test/integration/framework"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
framework.EtcdMain(m.Run)
|
|
}
|