1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 06:32:09 +00:00

fix the tests post 1.0.0

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-04-13 10:23:05 +10:00
parent 6a3624aea6
commit c04357c32d
3 changed files with 13 additions and 13 deletions

View File

@ -20,7 +20,7 @@ import (
"reflect"
"testing"
"github.com/rancher/os/netconf"
//"github.com/rancher/os/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
@ -75,16 +75,16 @@ func TestFetchMetadata(t *testing.T) {
Hostname: "host",
PrivateIPv4: net.ParseIP("1.2.3.4"),
PublicIPv4: net.ParseIP("5.6.7.8"),
NetworkConfig: netconf.NetworkConfig{
Interfaces: map[string]netconf.InterfaceConfig{
"eth0": netconf.InterfaceConfig{
Addresses: []string{
"5.6.7.8",
"1.2.3.4",
},
},
},
},
// NetworkConfig: netconf.NetworkConfig{
// Interfaces: map[string]netconf.InterfaceConfig{
// "eth0": netconf.InterfaceConfig{
// Addresses: []string{
// "5.6.7.8",
// "1.2.3.4",
// },
// },
// },
// },
},
},
{

View File

@ -1,5 +1,5 @@
#!/bin/bash
#set -e
set -e
cd $(dirname $0)/..

View File

@ -1,6 +1,6 @@
#!/bin/bash
# help: Run go unit tests
#set -e
set -e
cd $(dirname $0)/..