Add e2e and integration tests.

This commit is contained in:
Daniel Smith
2014-10-27 17:57:28 -07:00
parent 7146ec9d49
commit 35bd8d4a11
3 changed files with 122 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ limitations under the License.
package integration
import (
"net"
"net/http"
"net/http/httptest"
"reflect"
@@ -29,6 +30,8 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/master"
"github.com/GoogleCloudPlatform/kubernetes/pkg/version"
"github.com/golang/glog"
)
func init() {
@@ -41,8 +44,14 @@ func TestClient(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
mux := http.NewServeMux()
_, portalNet, err := net.ParseCIDR("10.0.0.0/24")
if err != nil {
glog.Fatalf("Unable to parse CIDR: %v", err)
}
master.New(&master.Config{
EtcdHelper: helper,
PortalNet: portalNet,
Mux: mux,
EnableLogsSupport: false,
EnableUISupport: false,