2017-02-11 23:19:40 +00:00
|
|
|
/*
|
|
|
|
Copyright 2016 The Kubernetes Authors.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package ipconfig
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2017-07-19 05:58:53 +00:00
|
|
|
"k8s.io/utils/exec"
|
2017-02-11 23:19:40 +00:00
|
|
|
)
|
|
|
|
|
2018-10-26 15:58:30 +00:00
|
|
|
func TestGetDNSSuffixSearchList(t *testing.T) {
|
2017-02-11 23:19:40 +00:00
|
|
|
// Simple test
|
|
|
|
ipconfigInterface := New(exec.New())
|
|
|
|
|
2018-10-26 15:58:30 +00:00
|
|
|
_, err := ipconfigInterface.GetDNSSuffixSearchList()
|
2017-02-11 23:19:40 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Errorf("expected success, got %v", err)
|
|
|
|
}
|
|
|
|
}
|