mirror of https://github.com/k3s-io/k3s
Move k/test/integration/federation to k/federation/test/integration
parent
45d73a1c70
commit
a570d316b8
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package federation
|
package integration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -32,7 +32,7 @@ import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
fed_v1b1 "k8s.io/kubernetes/federation/apis/federation/v1beta1"
|
fed_v1b1 "k8s.io/kubernetes/federation/apis/federation/v1beta1"
|
||||||
"k8s.io/kubernetes/test/integration/federation/framework"
|
"k8s.io/kubernetes/federation/test/integration/framework"
|
||||||
)
|
)
|
||||||
|
|
||||||
// List of group versions that are enabled by default.
|
// List of group versions that are enabled by default.
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package federation
|
package integration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -26,7 +26,7 @@ import (
|
||||||
federationapi "k8s.io/kubernetes/federation/apis/federation/v1beta1"
|
federationapi "k8s.io/kubernetes/federation/apis/federation/v1beta1"
|
||||||
"k8s.io/kubernetes/federation/pkg/federatedtypes"
|
"k8s.io/kubernetes/federation/pkg/federatedtypes"
|
||||||
"k8s.io/kubernetes/federation/pkg/federatedtypes/crudtester"
|
"k8s.io/kubernetes/federation/pkg/federatedtypes/crudtester"
|
||||||
"k8s.io/kubernetes/test/integration/federation/framework"
|
"k8s.io/kubernetes/federation/test/integration/framework"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestFederationCRUD validates create/read/update/delete operations for federated resource types.
|
// TestFederationCRUD validates create/read/update/delete operations for federated resource types.
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package federation
|
package integration
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
|
@ -62,6 +62,7 @@ federation/registry/cluster/etcd
|
||||||
federation/test/e2e
|
federation/test/e2e
|
||||||
federation/test/e2e/framework
|
federation/test/e2e/framework
|
||||||
federation/test/e2e/upgrades
|
federation/test/e2e/upgrades
|
||||||
|
federation/test/integration/framework
|
||||||
pkg/api/endpoints
|
pkg/api/endpoints
|
||||||
pkg/api/helper
|
pkg/api/helper
|
||||||
pkg/api/helper/qos
|
pkg/api/helper/qos
|
||||||
|
@ -812,7 +813,6 @@ test/images/resource-consumer/controller
|
||||||
test/integration
|
test/integration
|
||||||
test/integration/auth
|
test/integration/auth
|
||||||
test/integration/evictions
|
test/integration/evictions
|
||||||
test/integration/federation/framework
|
|
||||||
test/integration/framework
|
test/integration/framework
|
||||||
test/integration/master
|
test/integration/master
|
||||||
test/integration/replicaset
|
test/integration/replicaset
|
||||||
|
|
|
@ -49,6 +49,9 @@ kube::test::find_integration_test_dirs() {
|
||||||
find vendor/k8s.io/apiextensions-apiserver/test/integration/ -name '*_test.go' -print0 \
|
find vendor/k8s.io/apiextensions-apiserver/test/integration/ -name '*_test.go' -print0 \
|
||||||
| xargs -0n1 dirname | sed "s|^|${KUBE_GO_PACKAGE}/|" \
|
| xargs -0n1 dirname | sed "s|^|${KUBE_GO_PACKAGE}/|" \
|
||||||
| LC_ALL=C sort -u
|
| LC_ALL=C sort -u
|
||||||
|
find federation/test/integration/ -name '*_test.go' -print0 \
|
||||||
|
| xargs -0n1 dirname | sed "s|^|${KUBE_GO_PACKAGE}/|" \
|
||||||
|
| LC_ALL=C sort -u
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ kube::test::find_dirs() {
|
||||||
-o -path './third_party/*' \
|
-o -path './third_party/*' \
|
||||||
-o -path './staging/*' \
|
-o -path './staging/*' \
|
||||||
-o -path './vendor/*' \
|
-o -path './vendor/*' \
|
||||||
|
-o -path './federation/test/*' \
|
||||||
\) -prune \
|
\) -prune \
|
||||||
\) -name '*_test.go' -print0 | xargs -0n1 dirname | sed "s|^\./|${KUBE_GO_PACKAGE}/|" | LC_ALL=C sort -u
|
\) -name '*_test.go' -print0 | xargs -0n1 dirname | sed "s|^\./|${KUBE_GO_PACKAGE}/|" | LC_ALL=C sort -u
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue