| 1 | package dnsimplescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/ |
| 2 | |
| 3 | import ( |
| 4 | "contextscip-go gomod github.com/golang/go/src go1.21 context/" |
| 5 | "ioscip-go gomod github.com/golang/go/src go1.21 io/" |
| 6 | "net/httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/" |
| 7 | "testingscip-go gomod github.com/golang/go/src go1.21 testing/" |
| 8 | |
| 9 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/" |
| 10 | ) |
| 11 | |
| 12 | func TestRegistrarService_ListRegistrantChangesscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/TestRegistrarService_ListRegistrantChanges().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) { |
| 13 | setupMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/setupMockServer().() |
| 14 | defer teardownMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/teardownMockServer().() |
| 15 | |
| 16 | muxscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/mux..HandleFuncscip-go gomod github.com/golang/go/src go1.21 `net/http`/ServeMux#HandleFunc().("/v2/1010/registrar/registrant_changes", func(w httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#, r *httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.21 `net/http`/Request#) { |
| 17 | httpResponse := httpResponseFixturescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/httpResponseFixture().(t, "/api/listRegistrantChanges/success.http") |
| 18 | |
| 19 | testMethodscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testMethod().(t, r, "GET") |
| 20 | testHeadersscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testHeaders().(t, r) |
| 21 | |
| 22 | w.WriteHeaderscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#WriteHeader().(httpResponse.StatusCodescip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#StatusCode.) |
| 23 | _, _ = ioscip-go gomod github.com/golang/go/src go1.21 io/.Copyscip-go gomod github.com/golang/go/src go1.21 io/Copy().(w, httpResponse.Bodyscip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#Body.) |
| 24 | }) |
| 25 | |
| 26 | res, err := clientscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/client..Registrarscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/Client#Registrar..ListRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrarService#ListRegistrantChange().(contextscip-go gomod github.com/golang/go/src go1.21 context/.Backgroundscip-go gomod github.com/golang/go/src go1.21 context/Background().(), "1010", &RegistrantChangeListOptionsscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeListOptions#{}) |
| 27 | |
| 28 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/NoError().(t, err) |
| 29 | changes := res.Datascip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangesListResponse#Data. |
| 30 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/Equal().(t, changes[0], RegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#{ |
| 31 | Idscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#Id.: 101, |
| 32 | AccountIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#AccountId.: 101, |
| 33 | DomainIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#DomainId.: 101, |
| 34 | ContactIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#ContactId.: 101, |
| 35 | Statescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#State.: "new", |
| 36 | ExtendedAttributesscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#ExtendedAttributes.: map[string]string{}, |
| 37 | RegistryOwnerChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#RegistryOwnerChange.: true, |
| 38 | IrtLockLiftedByscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#IrtLockLiftedBy.: "", |
| 39 | CreatedAtscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#CreatedAt.: "2017-02-03T17:43:22Z", |
| 40 | UpdatedAtscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#UpdatedAt.: "2017-02-03T17:43:22Z", |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | func TestRegistrarService_CreateRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/TestRegistrarService_CreateRegistrantChange().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) { |
| 45 | setupMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/setupMockServer().() |
| 46 | defer teardownMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/teardownMockServer().() |
| 47 | |
| 48 | muxscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/mux..HandleFuncscip-go gomod github.com/golang/go/src go1.21 `net/http`/ServeMux#HandleFunc().("/v2/1010/registrar/registrant_changes", func(w httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#, r *httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.21 `net/http`/Request#) { |
| 49 | httpResponse := httpResponseFixturescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/httpResponseFixture().(t, "/api/createRegistrantChange/success.http") |
| 50 | |
| 51 | testMethodscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testMethod().(t, r, "POST") |
| 52 | testHeadersscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testHeaders().(t, r) |
| 53 | |
| 54 | w.WriteHeaderscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#WriteHeader().(httpResponse.StatusCodescip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#StatusCode.) |
| 55 | _, _ = ioscip-go gomod github.com/golang/go/src go1.21 io/.Copyscip-go gomod github.com/golang/go/src go1.21 io/Copy().(w, httpResponse.Bodyscip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#Body.) |
| 56 | }) |
| 57 | |
| 58 | res, err := clientscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/client..Registrarscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/Client#Registrar..CreateRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrarService#CreateRegistrantChange().(contextscip-go gomod github.com/golang/go/src go1.21 context/.Backgroundscip-go gomod github.com/golang/go/src go1.21 context/Background().(), "1010", &CreateRegistrantChangeInputscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CreateRegistrantChangeInput#{ |
| 59 | DomainIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CreateRegistrantChangeInput#DomainId.: "example.com", |
| 60 | ContactIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CreateRegistrantChangeInput#ContactId.: "101", |
| 61 | ExtendedAttributesscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CreateRegistrantChangeInput#ExtendedAttributes.: map[string]string{}, |
| 62 | }) |
| 63 | |
| 64 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/NoError().(t, err) |
| 65 | change := res.Datascip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeResponse#Data. |
| 66 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/Equal().(t, change, &RegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#{ |
| 67 | Idscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#Id.: 101, |
| 68 | AccountIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#AccountId.: 101, |
| 69 | DomainIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#DomainId.: 101, |
| 70 | ContactIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#ContactId.: 101, |
| 71 | Statescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#State.: "new", |
| 72 | ExtendedAttributesscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#ExtendedAttributes.: map[string]string{}, |
| 73 | RegistryOwnerChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#RegistryOwnerChange.: true, |
| 74 | IrtLockLiftedByscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#IrtLockLiftedBy.: "", |
| 75 | CreatedAtscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#CreatedAt.: "2017-02-03T17:43:22Z", |
| 76 | UpdatedAtscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#UpdatedAt.: "2017-02-03T17:43:22Z", |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | func TestRegistrarService_CheckRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/TestRegistrarService_CheckRegistrantChange().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) { |
| 81 | setupMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/setupMockServer().() |
| 82 | defer teardownMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/teardownMockServer().() |
| 83 | |
| 84 | muxscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/mux..HandleFuncscip-go gomod github.com/golang/go/src go1.21 `net/http`/ServeMux#HandleFunc().("/v2/1010/registrar/registrant_changes/check", func(w httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#, r *httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.21 `net/http`/Request#) { |
| 85 | httpResponse := httpResponseFixturescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/httpResponseFixture().(t, "/api/checkRegistrantChange/success.http") |
| 86 | |
| 87 | testMethodscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testMethod().(t, r, "POST") |
| 88 | testHeadersscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testHeaders().(t, r) |
| 89 | |
| 90 | w.WriteHeaderscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#WriteHeader().(httpResponse.StatusCodescip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#StatusCode.) |
| 91 | _, _ = ioscip-go gomod github.com/golang/go/src go1.21 io/.Copyscip-go gomod github.com/golang/go/src go1.21 io/Copy().(w, httpResponse.Bodyscip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#Body.) |
| 92 | }) |
| 93 | |
| 94 | res, err := clientscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/client..Registrarscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/Client#Registrar..CheckRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrarService#CheckRegistrantChange().(contextscip-go gomod github.com/golang/go/src go1.21 context/.Backgroundscip-go gomod github.com/golang/go/src go1.21 context/Background().(), "1010", &CheckRegistrantChangeInputscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CheckRegistrantChangeInput#{ |
| 95 | DomainIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CheckRegistrantChangeInput#DomainId.: "example.com", |
| 96 | ContactIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/CheckRegistrantChangeInput#ContactId.: "101", |
| 97 | }) |
| 98 | |
| 99 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/NoError().(t, err) |
| 100 | change := res.Datascip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeCheckResponse#Data. |
| 101 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/Equal().(t, change, &RegistrantChangeCheckscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeCheck#{ |
| 102 | DomainIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeCheck#DomainId.: 101, |
| 103 | ContactIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeCheck#ContactId.: 101, |
| 104 | ExtendedAttributesscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeCheck#ExtendedAttributes.: make([]ExtendedAttributescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/ExtendedAttribute#, 0), |
| 105 | RegistryOwnerChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeCheck#RegistryOwnerChange.: true, |
| 106 | }) |
| 107 | } |
| 108 | |
| 109 | func TestRegistrarService_GetRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/TestRegistrarService_GetRegistrantChange().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) { |
| 110 | setupMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/setupMockServer().() |
| 111 | defer teardownMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/teardownMockServer().() |
| 112 | |
| 113 | muxscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/mux..HandleFuncscip-go gomod github.com/golang/go/src go1.21 `net/http`/ServeMux#HandleFunc().("/v2/1010/registrar/registrant_changes/101", func(w httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#, r *httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.21 `net/http`/Request#) { |
| 114 | httpResponse := httpResponseFixturescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/httpResponseFixture().(t, "/api/getRegistrantChange/success.http") |
| 115 | |
| 116 | testMethodscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testMethod().(t, r, "GET") |
| 117 | testHeadersscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testHeaders().(t, r) |
| 118 | |
| 119 | w.WriteHeaderscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#WriteHeader().(httpResponse.StatusCodescip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#StatusCode.) |
| 120 | _, _ = ioscip-go gomod github.com/golang/go/src go1.21 io/.Copyscip-go gomod github.com/golang/go/src go1.21 io/Copy().(w, httpResponse.Bodyscip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#Body.) |
| 121 | }) |
| 122 | |
| 123 | res, err := clientscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/client..Registrarscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/Client#Registrar..GetRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrarService#GetRegistrantChange().(contextscip-go gomod github.com/golang/go/src go1.21 context/.Backgroundscip-go gomod github.com/golang/go/src go1.21 context/Background().(), "1010", 101) |
| 124 | |
| 125 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/NoError().(t, err) |
| 126 | change := res.Datascip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChangeResponse#Data. |
| 127 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/Equal().(t, change, &RegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#{ |
| 128 | Idscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#Id.: 101, |
| 129 | AccountIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#AccountId.: 101, |
| 130 | DomainIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#DomainId.: 101, |
| 131 | ContactIdscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#ContactId.: 101, |
| 132 | Statescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#State.: "new", |
| 133 | ExtendedAttributesscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#ExtendedAttributes.: map[string]string{}, |
| 134 | RegistryOwnerChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#RegistryOwnerChange.: true, |
| 135 | IrtLockLiftedByscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#IrtLockLiftedBy.: "", |
| 136 | CreatedAtscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#CreatedAt.: "2017-02-03T17:43:22Z", |
| 137 | UpdatedAtscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrantChange#UpdatedAt.: "2017-02-03T17:43:22Z", |
| 138 | }) |
| 139 | } |
| 140 | |
| 141 | func TestRegistrarService_DeleteRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/TestRegistrarService_DeleteRegistrantChange().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) { |
| 142 | setupMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/setupMockServer().() |
| 143 | defer teardownMockServerscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/teardownMockServer().() |
| 144 | |
| 145 | muxscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/mux..HandleFuncscip-go gomod github.com/golang/go/src go1.21 `net/http`/ServeMux#HandleFunc().("/v2/1010/registrar/registrant_changes/101", func(w httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#, r *httpscip-go gomod github.com/golang/go/src go1.21 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.21 `net/http`/Request#) { |
| 146 | httpResponse := httpResponseFixturescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/httpResponseFixture().(t, "/api/deleteRegistrantChange/success.http") |
| 147 | |
| 148 | testMethodscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testMethod().(t, r, "DELETE") |
| 149 | testHeadersscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/testHeaders().(t, r) |
| 150 | |
| 151 | w.WriteHeaderscip-go gomod github.com/golang/go/src go1.21 `net/http`/ResponseWriter#WriteHeader().(httpResponse.StatusCodescip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#StatusCode.) |
| 152 | _, _ = ioscip-go gomod github.com/golang/go/src go1.21 io/.Copyscip-go gomod github.com/golang/go/src go1.21 io/Copy().(w, httpResponse.Bodyscip-go gomod github.com/golang/go/src go1.21 `net/http`/Response#Body.) |
| 153 | }) |
| 154 | |
| 155 | _, err := clientscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/client..Registrarscip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/Client#Registrar..DeleteRegistrantChangescip-go gomod github.com/dnsimple/dnsimple-go . `github.com/dnsimple/dnsimple-go/dnsimple`/RegistrarService#DeleteRegistrantChange().(contextscip-go gomod github.com/golang/go/src go1.21 context/.Backgroundscip-go gomod github.com/golang/go/src go1.21 context/Background().(), "1010", 101) |
| 156 | |
| 157 | assertscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.9.0 `github.com/stretchr/testify/assert`/NoError().(t, err) |
| 158 | } |