You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gcs/README.md
+11-37Lines changed: 11 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,41 +48,15 @@ The command line tool expects a JSON configuration file. Run `storage-cli-gcs --
48
48
will be used if they exist (either through `gcloud auth application-default login` or a [service account](https://cloud.google.com/iam/docs/understanding-service-accounts)).
49
49
If they don't exist the client will fall back to `none` behavior.
50
50
51
-
## Running Integration Tests
52
-
53
-
1. Ensure [gcloud](https://cloud.google.com/sdk/downloads) is installed and you have authenticated (`gcloud auth login`).
54
-
These credentials will be used by the Makefile to create/destroy Google Cloud Storage buckets for testing.
55
-
1. Set the Google Cloud project: `gcloud config set project <your project>`
56
-
1. Generate a service account with the `Storage Admin` role for your project and set the contents as
57
-
the environment variable `GOOGLE_APPLICATION_CREDENTIALS`, for example:
export LC_ALL=C # fix `tr` complaining about "illegal byte sequence" on OSX
73
-
```
74
-
1. Run the unit and fast integration tests: `make test-fast-int`
75
-
1. Clean up buckets: `make clean-gcs`
76
-
77
-
## Development
51
+
## Running Unit Tests
52
+
1. Use the command `make -C .github/scripts/gcs test-unit`
78
53
79
-
* A Makefile is provided that automates integration testing. Try `make help` to get started.
80
-
*[gvt](https://godoc.org/github.com/FiloSottile/gvt) is used for vendoring.
81
-
82
-
## Contributing
83
-
84
-
For details on how to contribute to this project - including filing bug reports and contributing code changes - please see [CONTRIBUTING.md](./CONTRIBUTING.md).
85
-
86
-
## License
87
-
88
-
This tool is licensed under Apache 2.0. Full license text is available in [LICENSE](LICENSE).
54
+
## Running Integration Tests
55
+
1. Create a service account with the `Storage Admin` role.
56
+
1. Create a new key for your service account and download credential as JSON file.
57
+
1. Export json content with `export google_json_key_data="$(cat <path-to-json-file.json>)"`.
58
+
1. Export `export SKIP_LONG_TESTS=yes` if you want to run only the fast running tests.
59
+
1. Navigate to project's root folder.
60
+
1. Run environment setup script to create buckets `/.github/scripts/gcs/setup.sh`.
61
+
1. Run tests `/.github/scripts/gcs/run-int.sh`.
62
+
1. Run environment teardown script to delete resources `/.github/scripts/gcs/teardown.sh`.
0 commit comments