-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/remote-state/gcs: Implement an end-to-end test.
The code is loosely based on state/remote/gcs_test.go. If the GOOGLE_PROJECT environment variable is set, this test will 1) create a new bucket; error out if the bucket already exists. 2) create a new state 3) list states and ensure that the newly created state is listed 4) ensure that an object with the expected name exists 5) rum "state/remote".TestClient() 6) delete the state The bucket is deleted when the test exits, though this may fail if the bucket it not empty.
- Loading branch information
Showing
1 changed file
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters