Break dependency on testapi from core packages

This commit is contained in:
Clayton Coleman 2017-01-21 23:20:51 -05:00
parent 13424d874b
commit df831db360
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
3 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package cache
package cache_test
import (
"net/http/httptest"
@ -31,6 +31,7 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/v1"
. "k8s.io/kubernetes/pkg/client/cache"
clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
)

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package discovery
package discovery_test
import (
"encoding/json"
@ -31,6 +31,7 @@ import (
"k8s.io/apimachinery/pkg/version"
restclient "k8s.io/client-go/rest"
"k8s.io/kubernetes/pkg/api/v1"
. "k8s.io/kubernetes/pkg/client/typed/discovery"
)
func TestGetServerVersion(t *testing.T) {

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package discovery
package discovery_test
import (
"reflect"
@ -27,6 +27,7 @@ import (
restclient "k8s.io/client-go/rest"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client/restclient/fake"
. "k8s.io/kubernetes/pkg/client/typed/discovery"
"github.com/emicklei/go-restful/swagger"
"github.com/stretchr/testify/assert"