Skip to content

Keystores aliases key cert file#7518

Merged
hao-nan-li merged 6 commits into
GoogleCloudPlatform:mainfrom
5fff:keystores-aliases-key-cert-file
Mar 28, 2023
Merged

Keystores aliases key cert file#7518
hao-nan-li merged 6 commits into
GoogleCloudPlatform:mainfrom
5fff:keystores-aliases-key-cert-file

Conversation

@5fff

@5fff 5fff commented Mar 23, 2023

Copy link
Copy Markdown
Contributor

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

Apigee: added resource `apigeeKeystoresAliasesKeyCertFile`

@5fff 5fff requested a review from a team as a code owner March 23, 2023 01:11
@5fff 5fff requested review from hao-nan-li and removed request for a team March 23, 2023 01:11
@hao-nan-li

Copy link
Copy Markdown
Contributor

/gcbrun

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 8 files changed, 1348 insertions(+), 75 deletions(-))
Terraform Beta: Diff ( 8 files changed, 1353 insertions(+), 80 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2522
Passed tests 2253
Skipped tests: 264
Affected tests: 5

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccFirebaserulesRelease_BasicRelease|TestAccDataSourceGoogleCloudAssetResourcesSearchAll_basic|TestAccDataSourceDnsManagedZone_basic|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccNetworkServicesGateway_update

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccDataSourceGoogleCloudAssetResourcesSearchAll_basic[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccNetworkServicesGateway_update[Debug log]

Tests failed during RECORDING mode:
TestAccDataSourceDnsManagedZone_basic[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@hao-nan-li hao-nan-li left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Quick comments before starting to review:

  1. New resources are recommended to be created through mmv1 generated resources, is there any particular reason you made this handwritten?
  2. Looks like there are some lint problems, could you run gofmt on the created files? Sometimes there are lint problems due to missing addtional empty line at the end of the file.

@5fff

5fff commented Mar 23, 2023

Copy link
Copy Markdown
Contributor Author

Quick comments before starting to review:

  1. New resources are recommended to be created through mmv1 generated resources, is there any particular reason you made this handwritten?
  2. Looks like there are some lint problems, could you run gofmt on the created files? Sometimes there are lint problems due to missing addtional empty line at the end of the file.

Hi @hao-nan-li The API for Keystore Aliases takes multipart-form data request, which is not supported by MMV1, Apigee being a acquired product has a different API pattern than in house developed GCP product.

Regarding the lint problem, can you pls let me know which file is having issue? I have indeed ran go fmt before I add the file. Thanks!

@hao-nan-li

Copy link
Copy Markdown
Contributor

Quick comments before starting to review:

  1. New resources are recommended to be created through mmv1 generated resources, is there any particular reason you made this handwritten?
  2. Looks like there are some lint problems, could you run gofmt on the created files? Sometimes there are lint problems due to missing addtional empty line at the end of the file.

Hi @hao-nan-li The API for Keystore Aliases takes multipart-form data request, which is not supported by MMV1, Apigee being a acquired product has a different API pattern than in house developed GCP product.

Regarding the lint problem, can you pls let me know which file is having issue? I have indeed ran go fmt before I add the file. Thanks!

Quick note: By running make lint, I got:

gofmt needs running on the following files:
./google/resource_apigee_keystores_aliases_key_cert_file_generated_test.go
./google/resource_apigee_keystores_aliases_key_cert_file.go

@hao-nan-li

Copy link
Copy Markdown
Contributor

/gcbrun

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 8 files changed, 1348 insertions(+), 75 deletions(-))
Terraform Beta: Diff ( 8 files changed, 1353 insertions(+), 80 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2524
Passed tests 2255
Skipped tests: 264
Affected tests: 5

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccNetworkServicesGateway_update|TestAccHealthcareFhirStore_healthcareFhirStoreStreamingConfigExample|TestAccFirebaserulesRelease_BasicRelease|TestAccDataSourceDnsManagedZone_basic|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccNetworkServicesGateway_update[Debug log]
TestAccHealthcareFhirStore_healthcareFhirStoreStreamingConfigExample[Debug log]
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]

Tests failed during RECORDING mode:
TestAccDataSourceDnsManagedZone_basic[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@hao-nan-li hao-nan-li left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you do a rebase so that I can run the tests locally?

@hao-nan-li hao-nan-li left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM in general. Just some small concern about the password field and the documentation.


* `certs_info` -
Chain of certificates under this alias.
Structure is [documented below](#nested_certs_info).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not a big issue, but this hyperlink is not working as intended.

* `cert_info` -
(Output)
List of all properties in the object.
Structure is [documented below](#nested_cert_info).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same problem here.

Optional: true,
Description: `Private Key content, omit if uploading to truststore`,
},
"password": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If there's a password field, I think it's necessary to make this field sensitive. Sensitive: true

@hao-nan-li

Copy link
Copy Markdown
Contributor

/gcbrun

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 8 files changed, 1349 insertions(+), 76 deletions(-))
Terraform Beta: Diff ( 8 files changed, 1354 insertions(+), 81 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2570
Passed tests 2291
Skipped tests: 267
Affected tests: 12

Action taken

Found 12 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccNetworkServicesGateway_update|TestAccFirebaserulesRelease_BasicRelease|TestAccComputeInstanceFromRegionTemplate_basic|TestAccComposerEnvironment_withEncryptionConfigComposer2|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccDataSourceGoogleFirebaseAppleAppConfig|TestAccFrameworkProviderBasePath_setBasePath|TestAccFrameworkProviderMeta_setModuleName|TestAccDataSourceDNSKeys_basic|TestAccDataSourceDnsManagedZone_basic|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceDNSKeys_noDnsSec

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccNetworkServicesGateway_update[Debug log]
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccComputeInstanceFromRegionTemplate_basic[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccDataSourceGoogleFirebaseAppleAppConfig[Debug log]
TestAccFrameworkProviderBasePath_setBasePath[Debug log]
TestAccFrameworkProviderMeta_setModuleName[Debug log]
TestAccDataSourceDNSKeys_basic[Debug log]
TestAccDataSourceDnsManagedZone_basic[Debug log]
TestAccDataSourceDnsRecordSet_basic[Debug log]
TestAccDataSourceDNSKeys_noDnsSec[Debug log]

Tests failed during RECORDING mode:
TestAccComposerEnvironment_withEncryptionConfigComposer2[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

make password and key sensitive field
@hao-nan-li

Copy link
Copy Markdown
Contributor

/gcbrun

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 8 files changed, 1351 insertions(+), 76 deletions(-))
Terraform Beta: Diff ( 8 files changed, 1356 insertions(+), 81 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2570
Passed tests 2293
Skipped tests: 267
Affected tests: 10

Action taken

Found 10 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccFirebaserulesRelease_BasicRelease|TestAccComputeInstanceFromRegionTemplate_basic|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccFrameworkProviderMeta_setModuleName|TestAccFrameworkProviderBasePath_setBasePath|TestAccDataSourceDNSKeys_noDnsSec|TestAccDataSourceDnsManagedZone_basic|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceDNSKeys_basic|TestAccDataSourceGoogleFirebaseAppleAppConfig

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccComputeInstanceFromRegionTemplate_basic[Debug log]
TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample[Debug log]
TestAccFrameworkProviderMeta_setModuleName[Debug log]
TestAccFrameworkProviderBasePath_setBasePath[Debug log]
TestAccDataSourceDNSKeys_noDnsSec[Debug log]
TestAccDataSourceDnsManagedZone_basic[Debug log]
TestAccDataSourceDnsRecordSet_basic[Debug log]
TestAccDataSourceDNSKeys_basic[Debug log]
TestAccDataSourceGoogleFirebaseAppleAppConfig[Debug log]

All tests passed
View the build log or the debug log for each test

@hao-nan-li hao-nan-li left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, could you change the release note to follow this format?
https://github.com/GoogleCloudPlatform/magic-modules/blob/main/.ci/RELEASE_NOTES_GUIDE.md

@hao-nan-li hao-nan-li merged commit 1ab0354 into GoogleCloudPlatform:main Mar 28, 2023
dannawang0221 pushed a commit to dannawang0221/magic-modules that referenced this pull request Mar 29, 2023
* add apigee keystores aliases keystorefile provider

* add doc

* update doc

* update linted files

* Update resource_apigee_keystores_aliases_key_cert_file.go

make password and key sensitive field

---------

Co-authored-by: Ray Xu <xrc@google.com>
hao-nan-li pushed a commit to hao-nan-li/magic-modules that referenced this pull request Apr 11, 2023
* add apigee keystores aliases keystorefile provider

* add doc

* update doc

* update linted files

* Update resource_apigee_keystores_aliases_key_cert_file.go

make password and key sensitive field

---------

Co-authored-by: Ray Xu <xrc@google.com>
ericayyliu pushed a commit to ericayyliu/magic-modules that referenced this pull request Jul 26, 2023
* add apigee keystores aliases keystorefile provider

* add doc

* update doc

* update linted files

* Update resource_apigee_keystores_aliases_key_cert_file.go

make password and key sensitive field

---------

Co-authored-by: Ray Xu <xrc@google.com>
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.

3 participants