github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/cf/api/apifakes/old_fake_cc_request.go (about)

     1  package apifakes
     2  
     3  import (
     4  	"net/http"
     5  
     6  	testnet "code.cloudfoundry.org/cli/cf/util/testhelpers/net"
     7  )
     8  
     9  func NewCloudControllerTestRequest(request testnet.TestRequest) testnet.TestRequest {
    10  	request.Header = http.Header{
    11  		"accept":        {"application/json"},
    12  		"authorization": {"BEARER my_access_token"},
    13  	}
    14  
    15  	return request
    16  }