1- package update_api_1c_test
1+ package updateApiClient_test
22
33import (
44 "github.com/k0kubun/pp"
5- update_api_1c "github.com/v8platform/update-api-1c "
5+ apiClient "github.com/v8platform/updateApiClient "
66
77 "io"
88 "io/ioutil"
@@ -14,11 +14,11 @@ import (
1414
1515func ExampleNewClient () {
1616
17- client := update_api_1c .NewClient ("ITS_USER" , "ITS_PASSWORD" )
17+ client := apiClient .NewClient ("ITS_USER" , "ITS_PASSWORD" )
1818
1919 updateInfo , err := client .GetUpdateInfo ("Accounting" ,
2020 "3.0.88.22" ,
21- update_api_1c .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
21+ apiClient .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
2222
2323 if err != nil {
2424 log .Fatal (err )
@@ -30,11 +30,11 @@ func ExampleNewClient() {
3030
3131func ExampleClient_GetUpdateInfo () {
3232
33- client := update_api_1c .NewClient ("" , "" )
33+ client := apiClient .NewClient ("" , "" )
3434
3535 updateInfo , err := client .GetUpdateInfo ("Accounting" ,
3636 "3.0.88.22" ,
37- update_api_1c .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
37+ apiClient .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
3838
3939 if err != nil {
4040 log .Fatal (err )
@@ -46,11 +46,11 @@ func ExampleClient_GetUpdateInfo() {
4646
4747func ExampleClient_GetUpdate () {
4848
49- client := update_api_1c .NewClient ("ITS_USER" , "ITS_PASSWORD" )
49+ client := apiClient .NewClient ("ITS_USER" , "ITS_PASSWORD" )
5050
5151 updateInfo , err := client .GetUpdateInfo ("Accounting" ,
5252 "3.0.88.22" ,
53- update_api_1c .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
53+ apiClient .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
5454
5555 if err != nil {
5656 log .Fatal (err )
@@ -69,11 +69,11 @@ func ExampleClient_GetUpdate() {
6969}
7070
7171func ExampleClient_GetConfigurationUpdateData () {
72- client := update_api_1c .NewClient ("ITS_USER" , "ITS_PASSWORD" )
72+ client := apiClient .NewClient ("ITS_USER" , "ITS_PASSWORD" )
7373
7474 updateInfo , err := client .GetUpdateInfo ("Accounting" ,
7575 "3.0.88.22" ,
76- update_api_1c .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
76+ apiClient .NewProgramOrRedactionUpdateType , "8.3.15.2107" )
7777
7878 if err != nil {
7979 log .Fatal (err )
@@ -113,7 +113,7 @@ func ExampleClient_GetConfigurationUpdateData() {
113113 f .Close ()
114114 updateDataFile .Close ()
115115
116- err = update_api_1c .UnzipFile (f .Name (), distPath )
116+ err = apiClient .UnzipFile (f .Name (), distPath )
117117 if err != nil {
118118 log .Fatal (err )
119119 }
@@ -124,7 +124,7 @@ func ExampleClient_GetConfigurationUpdateData() {
124124
125125func ExampleClient_GetPatchesInfo () {
126126
127- client := update_api_1c .NewClient ("ITS_USER" , "ITS_PASSWORD" )
127+ client := apiClient .NewClient ("ITS_USER" , "ITS_PASSWORD" )
128128
129129 patchesInfo , err := client .GetPatchesInfo ("Accounting" ,
130130 "3.0.88.22" )
@@ -139,7 +139,7 @@ func ExampleClient_GetPatchesInfo() {
139139
140140func ExampleClient_GetPatchesFilesInfo () {
141141
142- client := update_api_1c .NewClient ("ITS_USER" , "ITS_PASSWORD" )
142+ client := apiClient .NewClient ("ITS_USER" , "ITS_PASSWORD" )
143143
144144 patchesInfo , err := client .GetPatchesInfo ("Accounting" ,
145145 "3.0.88.22" )
@@ -167,7 +167,7 @@ func ExampleClient_GetPatchesFilesInfo() {
167167
168168func ExampleClient_GetPatchDistributionData () {
169169
170- client := update_api_1c .NewClient ("ITS_USER" , "ITS_PASSWORD" )
170+ client := apiClient .NewClient ("ITS_USER" , "ITS_PASSWORD" )
171171
172172 patchesInfo , err := client .GetPatchesInfo ("Accounting" ,
173173 "3.0.88.22" )
@@ -218,7 +218,7 @@ func ExampleClient_GetPatchDistributionData() {
218218
219219 f .Close ()
220220
221- err = update_api_1c .UnzipFile (f .Name (), distPath )
221+ err = apiClient .UnzipFile (f .Name (), distPath )
222222 if err != nil {
223223 log .Fatal (err )
224224 }
0 commit comments