2018-12-03 22:19:18 +03:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
2018-07-28 02:09:49 +03:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
// testContainerService and testOpenShiftCluster are defined in
|
|
|
|
// converterfromosaapi_test.go.
|
|
|
|
|
|
|
|
func TestConvertContainerServiceToVLabsOpenShiftCluster(t *testing.T) {
|
|
|
|
oc := ConvertContainerServiceToVLabsOpenShiftCluster(testContainerService)
|
|
|
|
if !reflect.DeepEqual(oc, testOpenShiftCluster) {
|
|
|
|
t.Errorf("ConvertContainerServiceToVLabsOpenShiftCluster returned unexpected result\n%#v\n", oc)
|
|
|
|
}
|
|
|
|
}
|