github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/clients/rancher/client_test.go (about)

     1  package rancher
     2  
     3  import (
     4  	"testing"
     5  	"github.com/johnnyeven/libtools/courier/client"
     6  )
     7  
     8  var cli *ClientRancher
     9  
    10  func init() {
    11  	cli = &ClientRancher{
    12  		AccessKey:    "D88A9E1985EF5A62F0FA",
    13  		AccessSecret: "hub81J4KSPwHSByFxzhnVRCNN6SCnNS9wkaDE9N2",
    14  		Client: client.Client{
    15  			Name: "rancher",
    16  			Host: "rancher.profzone.net",
    17  			Port: 38080,
    18  		},
    19  	}
    20  	cli.MarshalDefaults(cli)
    21  }
    22  
    23  func TestGetServices(t *testing.T) {
    24  	resp, err := cli.GetServices("1st25")
    25  	if err != nil {
    26  		t.Error(err)
    27  	}
    28  
    29  	t.Log(resp.Body)
    30  }