Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using OBS client without AK/SK #745

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Conversation

outcatcher
Copy link
Contributor

@outcatcher outcatcher commented Dec 3, 2020

Summary of the Pull Request

If no AK/SK is provided, issue a temporary one.

This affects following resources:

  • opentelekomcloud_obs_bucket
  • opentelekomcloud_obs_bucket_object

Fix #713: Temporary AK/SK is tested (in opentelekomcloud/gophertelekomcloud#53) to work with the agency auth

PR Checklist

Acceptance Steps Performed

Bucket

=== RUN   TestAccObsBucket_basic
--- PASS: TestAccObsBucket_basic (17.22s)
=== RUN   TestAccObsBucket_aksk
    provider_test.go:186: OS_ACCESS_KEY and OS_SECRET_KEY must be set for OBS/S3 acceptance tests
--- SKIP: TestAccObsBucket_aksk (0.00s)

Test ignored.
=== RUN   TestAccObsBucket_tags
--- PASS: TestAccObsBucket_tags (10.11s)
=== RUN   TestAccObsBucket_versioning
--- PASS: TestAccObsBucket_versioning (18.27s)
=== RUN   TestAccObsBucket_logging
--- PASS: TestAccObsBucket_logging (14.13s)
=== RUN   TestAccObsBucket_lifecycle
--- PASS: TestAccObsBucket_lifecycle (9.87s)
=== RUN   TestAccObsBucket_website
--- PASS: TestAccObsBucket_website (10.01s)
=== RUN   TestAccObsBucket_cors
--- PASS: TestAccObsBucket_cors (11.15s)
PASS

Process finished with exit code 0

Object

=== RUN   TestAccObsBucketObject_source
--- PASS: TestAccObsBucketObject_source (18.56s)
=== RUN   TestAccObsBucketObject_content
--- PASS: TestAccObsBucketObject_content (11.24s)
=== RUN   TestAccObsBucketObject_contentAKSK
    provider_test.go:186: OS_ACCESS_KEY and OS_SECRET_KEY must be set for OBS/S3 acceptance tests
--- SKIP: TestAccObsBucketObject_contentAKSK (0.00s)

Test ignored.
PASS

Process finished with exit code 0

lego963
lego963 previously approved these changes Dec 3, 2020
otc-zuul[bot]
otc-zuul bot previously approved these changes Dec 3, 2020
This affects following resources:
- `opentelekomcloud_obs_bucket`
- `opentelekomcloud_obs_bucket_object`
@outcatcher outcatcher marked this pull request as ready for review December 3, 2020 11:22
@outcatcher outcatcher added the gate Merge PR label Dec 3, 2020
@otc-zuul
Copy link

otc-zuul bot commented Dec 3, 2020

Build succeeded.

@otc-zuul otc-zuul bot merged commit 75ce967 into master Dec 3, 2020
@otc-zuul otc-zuul bot deleted the feature/obs-without-aksk branch December 3, 2020 11:59
outcatcher added a commit that referenced this pull request Dec 3, 2020
Revert #732

Existing implementation is no more useful after implementing #745
As it's implemented in during the same release, so no deprecation needs to be done
outcatcher added a commit that referenced this pull request Dec 3, 2020
otc-zuul bot pushed a commit that referenced this pull request Dec 3, 2020
Remove `credentials` from `obs_bucket` and `obs_bucket_object`

Summary of the Pull Request
Revert #732
The existing implementation is no more useful after implementing #745
As it's implemented during the same release, so no deprecation needs to be done
PR Checklist

 Refers to: #745, #732
 Tests added/passed.
 Documentation updated.
 Schema updated.

Acceptance Steps Performed
W/o AK/SK
Bucket:
=== RUN   TestAccObsBucket_basic
--- PASS: TestAccObsBucket_basic (18.81s)
=== RUN   TestAccObsBucket_tags
--- PASS: TestAccObsBucket_tags (10.10s)
=== RUN   TestAccObsBucket_versioning
--- PASS: TestAccObsBucket_versioning (18.33s)
=== RUN   TestAccObsBucket_logging
--- PASS: TestAccObsBucket_logging (14.59s)
=== RUN   TestAccObsBucket_lifecycle
--- PASS: TestAccObsBucket_lifecycle (10.89s)
=== RUN   TestAccObsBucket_website
--- PASS: TestAccObsBucket_website (10.43s)
=== RUN   TestAccObsBucket_cors
--- PASS: TestAccObsBucket_cors (10.37s)
PASS

Process finished with exit code 0

Bucket object:
=== RUN   TestAccObsBucketObject_source
--- PASS: TestAccObsBucketObject_source (19.73s)
=== RUN   TestAccObsBucketObject_content
--- PASS: TestAccObsBucketObject_content (11.54s)
PASS

Process finished with exit code 0

W/ AK/SK
Bucket:
=== RUN   TestAccObsBucket_basic
--- PASS: TestAccObsBucket_basic (54.21s)
=== RUN   TestAccObsBucket_tags
--- PASS: TestAccObsBucket_tags (21.75s)
=== RUN   TestAccObsBucket_versioning
--- PASS: TestAccObsBucket_versioning (44.25s)
=== RUN   TestAccObsBucket_logging
--- PASS: TestAccObsBucket_logging (29.93s)
=== RUN   TestAccObsBucket_lifecycle
--- PASS: TestAccObsBucket_lifecycle (55.16s)
=== RUN   TestAccObsBucket_website
--- PASS: TestAccObsBucket_website (28.94s)
=== RUN   TestAccObsBucket_cors
--- PASS: TestAccObsBucket_cors (32.77s)
PASS

Process finished with exit code 0

Object:
=== RUN   TestAccObsBucketObject_source
--- PASS: TestAccObsBucketObject_source (42.59s)
=== RUN   TestAccObsBucketObject_content
--- PASS: TestAccObsBucketObject_content (22.90s)
PASS

Process finished with exit code 0

Reviewed-by: None <None>
Reviewed-by: Rodion Gyrbu <fpsoff@outlook.com>
Reviewed-by: Anton Sidelnikov <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OBS bucket creation not possible with agency auth
3 participants