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:
parent
6a3624aea6
commit
c04357c32d
@ -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",
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#set -e
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# help: Run go unit tests
|
||||
#set -e
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user