access k8s
[msb/service-mesh.git] / msb2pilot / src / msb2pilot / pilot / controller_test.go
1 /**
2  * Copyright (c) 2018 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial Project
11  */
12 package pilot
13
14 import (
15         "fmt"
16         "testing"
17 )
18
19 func TestList(t *testing.T) {
20         res, err := List("routerules", "default")
21         if err != nil {
22                 t.Errorf("List() => got %v", err)
23         } else {
24                 fmt.Print(res)
25         }
26 }