Skip to content

Commit 2ab5ccc

Browse files
author
Codeslayer666
committed
rename testing variables shown in readme according to code.
1 parent 353e44d commit 2ab5ccc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ for i, storage := range serverDetails.StorageDevices {
179179
if err != nil {
180180
panic(err)
181181
}
182-
183-
fmt.Println(fmt.Sprintf("Storage templatized as %s", storageDetails.UUID))
182+
183+
fmt.Println(fmt.Sprintf("Storage templatized as %s", storageDetails.UUID))
184184
break
185185
}
186186
}
@@ -229,7 +229,7 @@ For more examples, please consult the service integration test suite (`upcloud/s
229229

230230
### Debugging the API using Postman
231231

232-
The repository contains a Postman collection which can be used to quickly perform requests against the API to see what
232+
The repository contains a Postman collection which can be used to quickly perform requests against the API to see what
233233
it returns. Import the collection into Postman, then create an environment containing the following variables:
234234

235235
* `authorization` - the value of the `Authorization` HTTP header, e.g. `Basic <base64>`
@@ -239,15 +239,15 @@ it returns. Import the collection into Postman, then create an environment conta
239239

240240
## Testing
241241

242-
To be able to run the test suite you'll need to export the following environment variables with their corresponding
242+
To be able to run the test suite you'll need to export the following environment variables with their corresponding
243243
values:
244244

245-
* `UPCLOUD_GO_API_TEST_USER` (the API username)
246-
* `UPCLOUD_GO_API_TEST_PASSWORD` (the API password)
247-
* `UPCLOUD_GO_API_TEST_DELETE_RESOURCES` (either `yes` or `no`)
245+
* `UPCLOUD_GO_SDK_TEST_USER` (the API username)
246+
* `UPCLOUD_GO_SDK_TEST_PASSWORD` (the API password)
247+
* `UPCLOUD_GO_SDK_TEST_DELETE_RESOURCES` (either `yes` or `no`)
248248

249-
To run the test suite, run `go test ./... -v -parallel 8`. If `UPCLOUD_GO_API_TEST_DELETE_RESOURCES` is set to `yes`,
250-
all resources will be stopped and/or deleted after the test suite has run. Be careful which account you use for
249+
To run the test suite, run `go test ./... -v -parallel 8`. If `UPCLOUD_GO_API_TEST_DELETE_RESOURCES` is set to `yes`,
250+
all resources will be stopped and/or deleted after the test suite has run. Be careful which account you use for
251251
testing so you don't accidentally delete or your production resources!
252252

253253
You can skip running the integration tests and just run the unit tests by passing `-short` to the test command.

0 commit comments

Comments
 (0)