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

added support for customer managed keys for mws. #332

Merged
merged 12 commits into from
Sep 23, 2020
Merged

added support for customer managed keys for mws. #332

merged 12 commits into from
Sep 23, 2020

Conversation

stikkireddy
Copy link
Contributor

@stikkireddy stikkireddy commented Sep 21, 2020

Docs:

  • docs update
  • change log update
  • readme update

Integration Tests (MWS only):

PASS workspace/acceptance

  • mws.TestMwsAccMissingResources/Credential (0.79s)
  • mws.TestMwsAccMissingResources/Network (0.36s)
  • mws.TestMwsAccMissingResources/Storage (0.36s)
  • mws.TestMwsAccMissingResources/Workspace (0.47s)
  • mws.TestMwsAccMissingResources (6.63s)
  • mws.TestMwsAccCreds (1.98s)
  • mws.TestMwsAccCustomerManagedKeys (2.11s)
  • mws.TestMwsAccStorageConfigurations (1.69s)
  • mws.TestMwsAccWorkspace (0.54s)

PASS mws

  • mws/acceptance.TestMwsAccCustomerManagedKeys (62.61s)
  • mws/acceptance.TestMwsAccCredentials (53.14s)
  • mws/acceptance.TestMwsAccNetworks (51.71s)
  • mws/acceptance.TestMwsAccStorageConfigurations (52.86s)
  • mws/acceptance.TestMwsAccWorkspaces (121.85s)

@stikkireddy stikkireddy marked this pull request as draft September 21, 2020 16:38
@TravisBuddy
Copy link

Travis tests have failed

Hey @stikkireddy,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

2nd Build

View build log

curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v0.4.2/gotestsum_0.4.2_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum
The command "curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v0.4.2/gotestsum_0.4.2_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum" exited with 0.
$ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
golangci/golangci-lint info checking GitHub for tag 'v1.25.0'
golangci/golangci-lint info found version: 1.25.0 for v1.25.0/linux/amd64
golangci/golangci-lint info installed /home/travis/gopath/bin/golangci-lint
The command "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0" exited with 0.
$ time make lint
✓ Linting source code with golangci-lint make sure you run make fmt ...
mws/resource_customer_managed_key_test.go:38: unnecessary trailing newline (whitespace)

}
Makefile:10: recipe for target 'lint' failed
make: *** [lint] Error 1

real	0m27.103s
user	0m45.861s
sys	0m1.497s
The command "time make lint" exited with 2.
$ time make test
✓ Running tests...
∅  .
✓  access (58ms) (coverage: 83.5% of statements)
✓  access/acceptance (15ms)
✓  common (114ms) (coverage: 68.2% of statements)
✓  compute/acceptance (24ms)
✓  identity (69ms) (coverage: 42.4% of statements)
✓  compute (1.759s) (coverage: 72.0% of statements)
✓  internal (12ms) (coverage: 67.5% of statements)
✓  internal/qa (8ms) (coverage: 54.0% of statements)
✓  identity/acceptance (20ms)
∅  internal/acceptance
✓  internal/sanity (32ms) (coverage: 100.0% of statements)
✓  mws (1.131s) (coverage: 73.4% of statements)
✓  mws/acceptance (23ms)
✓  provider (109ms) (coverage: 70.7% of statements)
✓  storage (131ms) (coverage: 73.5% of statements)
✓  storage/acceptance (58ms)
✓  workspace/acceptance (15ms)
✓  workspace (10.045s) (coverage: 62.9% of statements)

DONE 573 tests, 66 skipped in 35.313s

real	0m35.321s
user	0m36.847s
sys	0m4.719s
The command "time make test" exited with 0.
$ time make build
✓ Building source code with go build...

real	0m2.943s
user	0m3.603s
sys	0m0.445s
The command "time make build" exited with 0.
store build cache
changes detected (content changed, file is created, or file is deleted):\n/home/travis/.cache/go-build/01/01efa3ed220fac1988c0defea7ff4eaf1841521e410f79a00fcdab6cea4fbef4-a
/home/travis/.cache/go-build/06/063328c3c3b292ea2d1229f1761fefb7a849a31173cd5a6cf3de7724afe86c15-a
/home/travis/.cache/go-build/08/08aee0c56cedb60f8ac24d6813836f385f993c8150a66091de97dcd86aeee47d-a
/home/travis/.cache/go-build/0c/0cb8baea320c43841ea84ef78b4ee6924ad237f7d5f20c581d5830665f3022b2-a
/home/travis/.cache/go-build/0d/0d4d8e5e54822eaff90433c439c9af7a7c9fcd757acfac8061413c61e1130403-a
/home/travis/.cache/go-build/12/12e14117997ab31e1b460cd6d2d12c86e215c522fb4c76544c868741ab5bbd57-a
/home/travis/.cache/go-build/12/12fdea6856cbedc54d16795e68c2f7c7ff25768996efa944e61b17a0cb019978-a
/home/travis/.cache/go-build/13/130e62500a1235858d2c19f1150bd1de3c80bdaf514ba247e29d467c0fa3fb9c-a
/home/travis/.cache/go-build/13/135568d9b932b22af1419ecb1fb6260393496fed3fd6071e1ebe874dc692d453-a
/home/travis/.cache/go-build/15/159c5315d8362de9ed3786c7108c3bfe53235fdcd471e43696a88c8844ff50cb-a
/home/trav\n...
changes detected, packing new archive
uploading PR.332/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--go-1.14.x.tgz
cache uploaded


Done. Your build exited with 1.
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
golangci/golangci-lint info checking GitHub for tag 'v1.25.0'
golangci/golangci-lint info found version: 1.25.0 for v1.25.0/linux/amd64
golangci/golangci-lint info installed /home/travis/gopath/bin/golangci-lint
time make lint
✓ Linting source code with golangci-lint make sure you run make fmt ...
mws/resource_customer_managed_key_test.go:38: unnecessary trailing newline (whitespace)

}
Makefile:10: recipe for target 'lint' failed
make: *** [lint] Error 1

real	0m27.103s
user	0m45.861s
sys	0m1.497s
TravisBuddy Request Identifier: 01a28bf0-fc29-11ea-a343-ef792cdaf85e

@stikkireddy stikkireddy linked an issue Sep 21, 2020 that may be closed by this pull request
Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • add 0.2.6 changelog entry
  • add reference to resource doc to README.md
  • consider writing "[Read|Create|Delete]Context" resources not to trigger deprecation messages related to SDKv2

mws/mws.go Outdated Show resolved Hide resolved
scripts/modules/aws-mws-common/kms.tf Outdated Show resolved Hide resolved
mws/resource_customer_managed_key.go Outdated Show resolved Hide resolved
mws/resource_customer_managed_key.go Outdated Show resolved Hide resolved
mws/resource_customer_managed_key.go Show resolved Hide resolved
mws/acceptance/cmk_test.go Outdated Show resolved Hide resolved
@TravisBuddy
Copy link

Hey @stikkireddy,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 80dd4700-fc2b-11ea-a343-ef792cdaf85e

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2020

Codecov Report

Merging #332 into master will increase coverage by 1.02%.
The diff coverage is 65.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #332      +/-   ##
==========================================
+ Coverage   63.66%   64.69%   +1.02%     
==========================================
  Files          55       55              
  Lines        6160     6225      +65     
==========================================
+ Hits         3922     4027     +105     
+ Misses       1877     1831      -46     
- Partials      361      367       +6     
Impacted Files Coverage Δ
compute/model.go 94.44% <ø> (ø)
mws/mws.go 54.54% <ø> (ø)
internal/qa/testing.go 45.62% <25.00%> (-2.59%) ⬇️
mws/resource_customer_managed_key.go 79.31% <79.31%> (ø)
compute/libraries.go 98.96% <100.00%> (+54.07%) ⬆️
compute/resource_cluster.go 77.45% <100.00%> (+0.60%) ⬆️
provider/provider.go 91.80% <100.00%> (+0.02%) ⬆️

mws/mws.go Outdated Show resolved Hide resolved
@nfx nfx added this to the v0.3.0 milestone Sep 21, 2020
@TravisBuddy
Copy link

Hey @stikkireddy,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: cb672520-fc71-11ea-a56a-67316b5b87cd

@stikkireddy stikkireddy marked this pull request as ready for review September 22, 2020 01:26
@TravisBuddy
Copy link

Hey @stikkireddy,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 1db5e540-fc73-11ea-a56a-67316b5b87cd

Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to keep the variable for aws account id?

scripts/modules/aws-mws-common/kms.tf Outdated Show resolved Hide resolved
scripts/README.md Outdated Show resolved Hide resolved
… variable and moved it to a default in the variable in kms
@TravisBuddy
Copy link

Hey @stikkireddy,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 0b89cd40-fd9b-11ea-a706-8f9ec0eccd66

Copy link
Contributor

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TravisBuddy
Copy link

Hey @stikkireddy,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: ee6c7830-fdb7-11ea-a706-8f9ec0eccd66

…-databricks into cmk-feature

� Conflicts:
�	docs/changelog.md
�	internal/qa/testing.go
@TravisBuddy
Copy link

Hey @stikkireddy,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 6305af10-fdbb-11ea-a706-8f9ec0eccd66

@nfx nfx merged commit 8612fd0 into master Sep 23, 2020
@nfx nfx deleted the cmk-feature branch September 23, 2020 16:51
@nfx nfx modified the milestones: v0.3.0, 0.2.6 Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Support for Customer Managed Keys
4 participants