diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-10-03 12:45:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 12:45:43 -0700 |
commit | 7af4074c6f96d0fabd2ab5dd6c5773053f80aa08 (patch) | |
tree | 804d6ca257d7c6649b1fda6ea6a00e3a06ab3bee /cmd/podman/remoteclientconfig/configfile_test.go | |
parent | 86c8650c2328a4a611e614c7220627feae4d4eae (diff) | |
parent | c831a64bb1dbce86109d1c2e00535e89a7fc5f81 (diff) | |
download | podman-7af4074c6f96d0fabd2ab5dd6c5773053f80aa08.tar.gz podman-7af4074c6f96d0fabd2ab5dd6c5773053f80aa08.tar.bz2 podman-7af4074c6f96d0fabd2ab5dd6c5773053f80aa08.zip |
Merge pull request #4161 from afbjorklund/machine-env
Handle environment variables from podman-machine
Diffstat (limited to 'cmd/podman/remoteclientconfig/configfile_test.go')
-rw-r--r-- | cmd/podman/remoteclientconfig/configfile_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/remoteclientconfig/configfile_test.go b/cmd/podman/remoteclientconfig/configfile_test.go index ea2224ea7..0bcac29a8 100644 --- a/cmd/podman/remoteclientconfig/configfile_test.go +++ b/cmd/podman/remoteclientconfig/configfile_test.go @@ -143,7 +143,7 @@ func TestRemoteConfig_GetDefault(t *testing.T) { wantErr bool }{ // A good toml should return the connection that is marked isDefault - {"good", fields{Connections: makeGoodResult().Connections}, &RemoteConnection{"192.168.1.1", "myuser", true, 22}, false}, + {"good", fields{Connections: makeGoodResult().Connections}, &RemoteConnection{"192.168.1.1", "myuser", true, 22, "", false}, false}, // If nothing is marked as isDefault and there is more than one connection, error should occur {"nodefault", fields{Connections: noDefault}, nil, true}, // if nothing is marked as isDefault but there is only one connection, the one connection is considered the default @@ -183,9 +183,9 @@ func TestRemoteConfig_GetRemoteConnection(t *testing.T) { wantErr bool }{ // Good connection - {"goodhomer", fields{Connections: makeGoodResult().Connections}, args{name: "homer"}, &RemoteConnection{"192.168.1.1", "myuser", true, 22}, false}, + {"goodhomer", fields{Connections: makeGoodResult().Connections}, args{name: "homer"}, &RemoteConnection{"192.168.1.1", "myuser", true, 22, "", false}, false}, // Good connection - {"goodbart", fields{Connections: makeGoodResult().Connections}, args{name: "bart"}, &RemoteConnection{"foobar.com", "root", false, 22}, false}, + {"goodbart", fields{Connections: makeGoodResult().Connections}, args{name: "bart"}, &RemoteConnection{"foobar.com", "root", false, 22, "", false}, false}, // Getting an unknown connection should result in error {"noexist", fields{Connections: makeGoodResult().Connections}, args{name: "foobar"}, nil, true}, // Getting a connection when there are none should result in an error |