Add new resource support for apigee keystore aliases pkcs format#7519
Conversation
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 927 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 9 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaserulesRelease_BasicRelease|TestAccDataCatalogTag_update|TestAccDataCatalogTag_dataCatalogEntryTagFalseExample|TestAccDataCatalogTag_dataCatalogEntryGroupTagExample|TestAccDataCatalogTag_dataCatalogEntryTagBasicExample|TestAccDataSourceGoogleCloudAssetResourcesSearchAll_basic|TestAccDataSourceDnsManagedZone_basic|TestAccApigeeEnvKeystoreAliasesPkcs_apigeeKeystoreAliasesPkcsExample|TestAccNetworkServicesGateway_update |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 927 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 10 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccNetworkServicesGateway_update|TestAccDataCatalogTag_update|TestAccDataCatalogTag_dataCatalogEntryTagFalseExample|TestAccDataCatalogTag_dataCatalogEntryGroupTagExample|TestAccDataCatalogTag_dataCatalogEntryTagBasicExample|TestAccFirebaserulesRelease_BasicRelease|TestAccApigeeEnvKeystoreAliasesPkcs_apigeeKeystoreAliasesPkcsExample|TestAccDataSourceGoogleCloudAssetResourcesSearchAll_basic|TestAccDataSourceDnsManagedZone_basic|TestAccComposerEnvironment_withEncryptionConfigComposer1 |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 927 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 13 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaserulesRelease_BasicRelease|TestAccNetworkServicesGateway_update|TestAccFrameworkProviderBasePath_setBasePath|TestAccFrameworkProviderMeta_setModuleName|TestAccComputeInstanceFromRegionTemplate_basic|TestAccComposerEnvironment_withEncryptionConfigComposer2|TestAccComposerEnvironment_withEncryptionConfigComposer1|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccDataSourceGoogleFirebaseAppleAppConfig|TestAccDataSourceDnsManagedZone_basic|TestAccDataSourceDNSKeys_noDnsSec|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceDNSKeys_basic |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 927 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 10 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeInstanceFromRegionTemplate_basic|TestAccComposerEnvironment_withEncryptionConfigComposer1|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccFrameworkProviderMeta_setModuleName|TestAccFrameworkProviderBasePath_setBasePath|TestAccDataSourceDnsManagedZone_basic|TestAccDataSourceDNSKeys_noDnsSec|TestAccDataSourceDNSKeys_basic|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceGoogleFirebaseAppleAppConfig |
|
Tests passed during RECORDING mode: All tests passed |
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 927 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 13 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaseWebApp_firebaseWebAppFull|TestAccFirebaseWebApp_firebaseWebAppBasicExample|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccComposerEnvironment_withEncryptionConfigComposer2|TestAccComposerEnvironment_UpdateComposerV2WithTriggerer|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceDnsManagedZone_basic|TestAccDataSourceDNSKeys_noDnsSec|TestAccDataSourceDNSKeys_basic|TestAccFrameworkProviderBasePath_setBasePath|TestAccFrameworkProviderMeta_setModuleName|TestAccDataSourceGoogleFirebaseAppleAppConfig |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
| Optional: true, | ||
| Computed: true, |
There was a problem hiding this comment.
| Optional: true, | |
| Computed: true, | |
| Computed: true, |
Discussed offline: sounds like certs_info and all its subfields are output-only, please change them from optional+computed to computed. Also please change other fields if they're also output-only.
Optional+computed in Terraform: still a field that user can specify, but it will be treated as output-only field if users does not specify explicitly.
| environment = google_apigee_environment.apigee_environment_keystore.name | ||
| org_id = google_apigee_organization.apigee_org.name | ||
| keystore = google_apigee_env_keystore.apigee_environment_keystore_alias.name | ||
| alias = "tf-test%{random_suffix}" | ||
| file = "./test-fixtures/apigee/keyStore.p12" | ||
| filehash = filemd5("./test-fixtures/apigee/keyStore.p12") | ||
| password = sensitive("abcd") |
There was a problem hiding this comment.
Only nit here: some mixed using of tabs and spaces. We'd use spaces for resource configuraion.
| }, | ||
| }, | ||
| }, | ||
| "password": { |
There was a problem hiding this comment.
Is this also output-only? If so, remove optional: true, otherwise, since we don't have a update function for this resource (I assume this resource is immutable), we need to add Forcenew. Or consider adding update functionality for this resource.
| }, | ||
| "password": { | ||
| Type: schema.TypeString, | ||
| Optional: true, |
There was a problem hiding this comment.
computed and forcenew can be set at the same time. Consider:
- if the field is output-only: only Computed:true
- if the field is a input field + immutable: Optional: true + ForceNew: true
- if the field is a input field + updatable: Optional: true + adding a update function for the resource
|
/gcbrun |
|
/gcbrun |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 913 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 12 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaseWebApp_firebaseWebAppFull|TestAccFirebaseWebApp_firebaseWebAppBasicExample|TestAccComposerEnvironment_withEncryptionConfigComposer2|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccDataSourceDnsManagedZone_basic|TestAccFrameworkProviderMeta_setModuleName|TestAccDataSourceDNSKeys_noDnsSec|TestAccDataSourceDNSKeys_basic|TestAccDataSourceGoogleFirebaseAppleAppConfig|TestAccDataSourceDnsRecordSet_basic|TestAccFrameworkProviderBasePath_setBasePath |
|
Tests passed during RECORDING mode: All tests passed |
…gleCloudPlatform#7519) Co-authored-by: Anuhya P <anuhyap@google.com>
|
@shuyama1 watch out for the resource name in the changelog entry! This resource is called |
…gleCloudPlatform#7519) Co-authored-by: Anuhya P <anuhyap@google.com>
…gleCloudPlatform#7519) Co-authored-by: Anuhya P <anuhyap@google.com>
…gleCloudPlatform#7519) Co-authored-by: Anuhya P <anuhyap@google.com>
Add new resource support for apigee keystore aliases pkcs format
If this PR is for Terraform, I acknowledge that I have:
make testandmake lintin the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)