github.com/go-chef/chef@v0.30.1/testapi/license.go (about)

     1  // Test the go-chef/chef chef server api /license endpoints against a live server
     2  package testapi
     3  
     4  import (
     5  	"fmt"
     6  )
     7  
     8  // license exercise the chef server api
     9  func License() {
    10  	// Create a client for access
    11  	client := Client(nil)
    12  
    13  	license, err := client.License.Get()
    14  	if err != nil {
    15  		fmt.Println("Issue getting license information", err)
    16  	}
    17  	fmt.Printf("List license: %+v", license)
    18  }