mirror of
https://github.com/rancher/os.git
synced 2025-08-08 02:04:13 +00:00
fix the tests post 1.0.0
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
7a51d3695c
commit
a0061beedf
@ -20,7 +20,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"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"
|
||||||
"github.com/rancher/os/config/cloudinit/datasource/metadata"
|
"github.com/rancher/os/config/cloudinit/datasource/metadata"
|
||||||
@ -75,16 +75,16 @@ func TestFetchMetadata(t *testing.T) {
|
|||||||
Hostname: "host",
|
Hostname: "host",
|
||||||
PrivateIPv4: net.ParseIP("1.2.3.4"),
|
PrivateIPv4: net.ParseIP("1.2.3.4"),
|
||||||
PublicIPv4: net.ParseIP("5.6.7.8"),
|
PublicIPv4: net.ParseIP("5.6.7.8"),
|
||||||
NetworkConfig: netconf.NetworkConfig{
|
// NetworkConfig: netconf.NetworkConfig{
|
||||||
Interfaces: map[string]netconf.InterfaceConfig{
|
// Interfaces: map[string]netconf.InterfaceConfig{
|
||||||
"eth0": netconf.InterfaceConfig{
|
// "eth0": netconf.InterfaceConfig{
|
||||||
Addresses: []string{
|
// Addresses: []string{
|
||||||
"5.6.7.8",
|
// "5.6.7.8",
|
||||||
"1.2.3.4",
|
// "1.2.3.4",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
set -e
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# help: Run go unit tests
|
# help: Run go unit tests
|
||||||
#set -e
|
set -e
|
||||||
|
|
||||||
cd $(dirname $0)/..
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user