github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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/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  }