Home
last modified time | relevance | path

Searched refs:httpmock (Results 101 – 125 of 246) sorted by relevance

12345678910

/dports/security/lego/lego-4.5.3/vendor/github.com/exoscale/egoscale/v2/internal/public-api/
H A Dmock.go12 *httpmock.MockTransport
19 c.MockTransport = httpmock.NewMockTransport()
/dports/net/traefik/traefik-2.6.1/vendor/github.com/exoscale/egoscale/v2/internal/public-api/
H A Dmock.go12 *httpmock.MockTransport
19 c.MockTransport = httpmock.NewMockTransport()
/dports/security/lego/lego-4.5.3/vendor/github.com/exoscale/egoscale/v2/
H A Dsecurity_group_test.go86 httpmock.RegisterResponder("POST", fmt.Sprintf("/security-group/%s/rules", testSecurityGroupID),
109 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
182 httpmock.RegisterResponder("DELETE",
189 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
236 httpmock.RegisterResponder("POST", "/security-group",
247 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
433 httpmock.RegisterResponder("DELETE", fmt.Sprintf("/security-group/%s", testSecurityGroupID),
437 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
H A Dzone_test.go22 httpmock.RegisterResponder("GET", "/zone",
24 resp, err := httpmock.NewJsonResponse(http.StatusOK, struct {
H A Dsnapshot_test.go58 httpmock.RegisterResponder("POST", fmt.Sprintf("/snapshot/%s:export", testSnapshotID),
62 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
178 httpmock.RegisterResponder("DELETE", fmt.Sprintf("/snapshot/%s", testSnapshotID),
182 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
H A Danti_affinity_group_test.go46 httpmock.RegisterResponder("POST", "/anti-affinity-group",
57 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
181httpmock.RegisterResponder("DELETE", fmt.Sprintf("/anti-affinity-group/%s", testAntiAffinityGroupI…
185 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
H A Dinstance_pool_test.go200 httpmock.RegisterResponder("PUT", fmt.Sprintf("/instance-pool/%s:scale", *instancePool.ID),
210 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
246 httpmock.RegisterResponder("PUT", fmt.Sprintf("/instance-pool/%s:evict", *instancePool.ID),
256 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
284 httpmock.RegisterResponder("POST", "/instance-pool",
309 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
585 httpmock.RegisterResponder("PUT", fmt.Sprintf("/instance-pool/%s", testInstancePoolID),
611 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
658 httpmock.RegisterResponder("DELETE", fmt.Sprintf("/instance-pool/%s", testInstancePoolID),
662 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
H A Delastic_ip_test.go82 httpmock.RegisterResponder("POST", "/elastic-ip",
103 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
316 httpmock.RegisterResponder("PUT", fmt.Sprintf("/elastic-ip/%s", testElasticIPID),
337 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
382 httpmock.RegisterResponder("DELETE", fmt.Sprintf("/elastic-ip/%s", testElasticIPID),
386 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
H A Ddatabase_test.go160 httpmock.RegisterResponder("POST", "/dbaas-service",
183 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
494 httpmock.RegisterResponder("PUT", fmt.Sprintf("/dbaas-service/%s", testDatabaseServiceName),
517 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
556 httpmock.RegisterResponder("DELETE", fmt.Sprintf("/dbaas-service/%s", testDatabaseServiceName),
560 resp, err := httpmock.NewJsonResponse(http.StatusOK, papi.Operation{
/dports/devel/gh/cli-2.4.0/pkg/cmd/gist/create/
H A Dcreate_test.go314 reg := &httpmock.Registry{}
317 httpmock.REST("POST", "gists"),
318 httpmock.StringResponse(`{
323 httpmock.REST("POST", "gists"),
324 httpmock.StatusStringResponse(tt.responseStatus, "{}"))
/dports/devel/gh/cli-2.4.0/pkg/cmd/auth/shared/
H A Doauth_scopes_test.go52 fakehttp := &httpmock.Registry{}
56 fakehttp.Register(httpmock.REST("GET", ""), func(req *http.Request) (*http.Response, error) {
/dports/devel/gh/cli-2.4.0/pkg/cmd/repo/fork/
H A Dfork_test.go180 forkPost := func(reg *httpmock.Registry) {
191 httpmock.REST("POST", "repos/OWNER/REPO/forks"),
192 httpmock.StringResponse(forkResult))
198 httpStubs func(*httpmock.Registry)
400 httpStubs: func(reg *httpmock.Registry) {
402 httpmock.REST("POST", "repos/OWNER/REPO/forks"),
545 reg := &httpmock.Registry{}
/dports/devel/gh/cli-2.4.0/pkg/cmd/auth/logout/
H A Dlogout_test.go159 reg := &httpmock.Registry{}
161 httpmock.GraphQL(`query UserCurrent\b`),
162 httpmock.StringResponse(`{"data":{"viewer":{"login":"cybilb"}}}`))
248 reg := &httpmock.Registry{}
/dports/devel/gh/cli-2.4.0/pkg/cmd/release/list/
H A Dlist_test.go130 fakeHTTP := &httpmock.Registry{}
131 …fakeHTTP.Register(httpmock.GraphQL(`\bRepositoryReleaseList\(`), httpmock.StringResponse(fmt.Sprin…
/dports/devel/gh/cli-2.4.0/pkg/cmd/release/view/
H A Dview_test.go193 fakeHTTP := &httpmock.Registry{}
194 fakeHTTP.Register(httpmock.REST("GET", path), httpmock.StringResponse(fmt.Sprintf(`{
/dports/devel/gh/cli-2.4.0/pkg/cmd/repo/list/
H A Dhttp_test.go16 reg := httpmock.Registry{}
24 httpmock.GraphQL(`query RepositoryListSearch\b`),
/dports/security/vault/vault-1.8.2/vendor/github.com/okta/okta-sdk-golang/v2/
H A Dgo.sum11 github.com/jarcoal/httpmock v1.0.4 h1:jp+dy/+nonJE4g4xbVtl9QdrUNbn6/3hDT5R4nDIZnA=
12 github.com/jarcoal/httpmock v1.0.4/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
13 github.com/jarcoal/httpmock v1.0.5 h1:cHtVEcTxRSX4J0je7mWPfc9BpDpqzXSJ5HbymZmyHck=
14 github.com/jarcoal/httpmock v1.0.5/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
/dports/security/lego/lego-4.5.3/vendor/github.com/jarcoal/httpmock/
H A Ddoc.go81 package httpmock package
H A Denv.go1 package httpmock package
/dports/devel/git-town/git-town-7.6.0/vendor/gopkg.in/jarcoal/httpmock.v1/
H A Ddoc.go56 package httpmock package
/dports/devel/git-town/git-town-7.6.0/vendor/gopkg.in/jarcoal/httpmock.v1/httpmock-61bcb58a0752/
H A Ddoc.go56 package httpmock package
/dports/dns/rdap/rdap-e2ea151/vendor/github.com/jarcoal/httpmock/
H A Ddoc.go81 package httpmock package
/dports/net/traefik/traefik-2.6.1/vendor/github.com/jarcoal/httpmock/
H A Ddoc.go81 package httpmock package
/dports/security/lego/lego-4.5.3/vendor/github.com/softlayer/softlayer-go/
H A Dgo.sum1 github.com/jarcoal/httpmock v1.0.5 h1:cHtVEcTxRSX4J0je7mWPfc9BpDpqzXSJ5HbymZmyHck=
2 github.com/jarcoal/httpmock v1.0.5/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
/dports/dns/rdap/rdap-e2ea151/
H A Dgo.sum8 github.com/jarcoal/httpmock v1.0.4 h1:jp+dy/+nonJE4g4xbVtl9QdrUNbn6/3hDT5R4nDIZnA=
9 github.com/jarcoal/httpmock v1.0.4/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=

12345678910