Skip to content
Snippets Groups Projects

GONRG-9411-update-readme-with-win-instructions

1 file
+ 45
8
Compare changes
  • Side-by-side
  • Inline
+ 45
8
@@ -44,10 +44,28 @@ You can also get the latest version of `osdutest` using `wget` or `curl` tools w
After downloading the binary, you need to make it executable:
**Linux:**
```sh
chmod +x osdutest
```
**Windows:**
you have 2 options:
set correct name (add .exe extention) when downloading with `curl` using `-o` option
```sh
curl -o osdutest.exe https://community.opengroup.org/api/v4/projects/1408/packages/generic/osdutest_windows_amd64/latest/osdutest
```
or rename downloaded file
```sh
ren osdutest osdutest.exe
```
**Note:** To find your OS and Architecture, in case you have Golang installed, you can use the following commands:
```go
@@ -71,7 +89,7 @@ go env GOOS && go env GOARCH
To use `osdutest` you need to have a running OSDU instance and available Config service.
They are required to run tests and must be provided upon start.
```
```text
osdutest is a simple CLI to smoke test OSDU instance.
One can use osdu to smoke test OSDU instance from the terminal
@@ -104,8 +122,9 @@ Flags:
### Testing Google Cloud installation
To test Google Cloud installation, you need to be either logged in local gcloud CLI or provide a path to the service
account credentials file.
[GCloud](https://cloud.google.com/sdk/docs/install) (version: Google Cloud SDK 433.0.1 or higher) must be installed on machine where `osdutest` will run.
To test Google Cloud installation, you need to be either logged in local gcloud CLI or provide a path to the service account credentials file.
```sh
# Test OSDU using default account
@@ -117,14 +136,32 @@ osdutest --hostname "osdu.example.com" --auth-type sa-file --credentials-path "/
### Testing Baremetal installation
To test Baremetal installation, you need to provide credentials for OAuth authorization.
To test Baremetal installation, you need to provide credentials for OAuth authorization via environment variables.
**Linux:**
```sh
export OSDUTEST_CLIENT_ID="osdu-client-id"
export OSDUTEST_CLIENT_SECRET="osdu-client-secret"
```
**Windows CMD:**
```sh
# Using OAuth
export OSDU_CLIENT_ID="osdu-client-id"
export OSDU_CLIENT_SECRET="osdu-client-secret"
set OSDUTEST_CLIENT_ID="osdu-client-id"
set OSDUTEST_CLIENT_SECRET="osdu-client-secret"
```
**Windows Powershell:**
```ps
$Env:OSDUTEST_CLIENT_ID="osdu-client-id"
$Env:OSDUTEST_CLIENT_SECRET="osdu-client-secret"
```
Test OSDU using OAuth:
# Test OSDU using OAuth
```sh
osdutest --hostname "osdu.example.com" --auth-type oauth
```
Loading