Skip to content

Commit 69410ec

Browse files
authored
Merge pull request kubernetes#86256 from liggitt/testapi
Remove use of testapi package
2 parents a8c178c + 424d5e2 commit 69410ec

File tree

85 files changed

+363
-1004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+363
-1004
lines changed

hack/make-rules/test.sh

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ KUBE_COVERPROCS=${KUBE_COVERPROCS:-4}
8181
KUBE_RACE=${KUBE_RACE:-} # use KUBE_RACE="-race" to enable race testing
8282
# Set to the goveralls binary path to report coverage results to Coveralls.io.
8383
KUBE_GOVERALLS_BIN=${KUBE_GOVERALLS_BIN:-}
84-
# Lists of API Versions of each groups that should be tested, groups are
85-
# separated by comma, lists are separated by semicolon. e.g.,
86-
# "v1,compute/v1alpha1,experimental/v1alpha2;v1,compute/v2,experimental/v1alpha3"
87-
# FIXME: due to current implementation of a test client (see: pkg/api/testapi/testapi.go)
88-
# ONLY the last version is tested in each group.
89-
ALL_VERSIONS_CSV=$(IFS=',';echo "${KUBE_AVAILABLE_GROUP_VERSIONS[*]// /,}";IFS=$)
90-
KUBE_TEST_API_VERSIONS="${KUBE_TEST_API_VERSIONS:-${ALL_VERSIONS_CSV}}"
9184
# once we have multiple group supports
9285
# Create a junit-style XML test report in this directory if set.
9386
KUBE_JUNIT_REPORT_DIR=${KUBE_JUNIT_REPORT_DIR:-}
@@ -372,16 +365,7 @@ checkFDs() {
372365

373366
checkFDs
374367

375-
376-
# Convert the CSVs to arrays.
377-
IFS=';' read -r -a apiVersions <<< "${KUBE_TEST_API_VERSIONS}"
378-
apiVersionsCount=${#apiVersions[@]}
379-
for (( i=0; i<apiVersionsCount; i++ )); do
380-
apiVersion=${apiVersions[i]}
381-
echo "Running tests for APIVersion: ${apiVersion}"
382-
# KUBE_TEST_API sets the version of each group to be tested.
383-
KUBE_TEST_API="${apiVersion}" runTests "$@"
384-
done
368+
runTests "$@"
385369

386370
# We might run the tests for multiple versions, but we want to report only
387371
# one of them to coveralls. Here we report coverage from the last run.

pkg/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ filegroup(
1818
"//pkg/api/pod:all-srcs",
1919
"//pkg/api/podsecuritypolicy:all-srcs",
2020
"//pkg/api/service:all-srcs",
21-
"//pkg/api/testapi:all-srcs",
2221
"//pkg/api/testing:all-srcs",
2322
"//pkg/api/v1/endpoints:all-srcs",
2423
"//pkg/api/v1/persistentvolume:all-srcs",

pkg/api/testapi/BUILD

Lines changed: 0 additions & 85 deletions
This file was deleted.

pkg/api/testapi/OWNERS

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)