-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add support IAM policy for the Environment of Apigee X #5270
Changes from 5 commits
6675fb1
f03205f
13f9206
88604e6
974e3d0
a485e31
702d8be
c506d87
27bca67
f4fde55
e018130
0c4ac42
4c435e5
eaaba25
68d4249
1e0499e
602cc27
5586f70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -18,35 +18,44 @@ overrides: !ruby/object:Overrides::ResourceOverrides | |||||
examples: | ||||||
- !ruby/object:Provider::Terraform::Examples | ||||||
name: "apigee_organization_cloud_basic" | ||||||
skip_test: true | ||||||
- !ruby/object:Provider::Terraform::Examples | ||||||
# This is a more verbose version of the above that creates all | ||||||
# the resources needed for the acceptance test. | ||||||
name: "apigee_organization_cloud_basic_test" | ||||||
primary_resource_id: "org" | ||||||
test_env_vars: | ||||||
org_id: :ORG_ID | ||||||
billing_account: :BILLING_ACCT | ||||||
skip_docs: true | ||||||
primary_resource_id: "apigee-org" | ||||||
vars: | ||||||
network_id: "apigee-network" | ||||||
network_range_id: "apigee-range" | ||||||
# Resource creation race | ||||||
skip_vcr: true | ||||||
- !ruby/object:Provider::Terraform::Examples | ||||||
name: "apigee_organization_cloud_full" | ||||||
primary_resource_id: "apigee-org" | ||||||
vars: | ||||||
network_id: "apigee-network" | ||||||
network_range_id: "apigee-range" | ||||||
keyring_id: "apigee-keyring" | ||||||
key_id: "apigee-key" | ||||||
# While all Apigee resources in this test are in the GA API, we depend | ||||||
# on a service identity resource which is only available in the beta | ||||||
# provider. | ||||||
min_version: beta | ||||||
# This example is for docs purpose only. | ||||||
# For test to pass, google-beta-provider needs to be added to all | ||||||
# resources, and KMS key lifecycle has to be removed. These are set | ||||||
# in "apigee_organization_cloud_full_test" below. | ||||||
skip_test: true | ||||||
- !ruby/object:Provider::Terraform::Examples | ||||||
# This is a more verbose version of the above that creates all | ||||||
# the resources needed for the acceptance test. While all Apigee | ||||||
# resources in this test are in the GA API, we depend on a service | ||||||
# identity resource which is only available in the beta provider. | ||||||
name: "apigee_organization_cloud_full_test" | ||||||
primary_resource_id: "org" | ||||||
test_env_vars: | ||||||
org_id: :ORG_ID | ||||||
billing_account: :BILLING_ACCT | ||||||
skip_docs: true | ||||||
primary_resource_id: "apigee-org" | ||||||
vars: | ||||||
network_id: "apigee-network" | ||||||
network_range_id: "apigee-range" | ||||||
keyring_id: "apigee-keyring" | ||||||
key_id: "apigee-key" | ||||||
# While all Apigee resources in this test are in the GA API, we depend | ||||||
# on a service identity resource which is only available in the beta | ||||||
# provider. | ||||||
min_version: beta | ||||||
# Resource creation race | ||||||
skip_vcr: true | ||||||
skip_docs: true | ||||||
timeouts: !ruby/object:Api::Timeouts | ||||||
insert_minutes: 10 | ||||||
delete_minutes: 10 | ||||||
|
@@ -97,16 +106,12 @@ overrides: !ruby/object:Overrides::ResourceOverrides | |||||
examples: | ||||||
- !ruby/object:Provider::Terraform::Examples | ||||||
name: "apigee_environment_basic" | ||||||
skip_test: true | ||||||
- !ruby/object:Provider::Terraform::Examples | ||||||
# This is a more verbose version of the above that creates all | ||||||
# the resources needed for the acceptance test. | ||||||
name: "apigee_environment_basic_test" | ||||||
primary_resource_id: "apigee_environment" | ||||||
test_env_vars: | ||||||
org_id: :ORG_ID | ||||||
billing_account: :BILLING_ACCT | ||||||
skip_docs: true | ||||||
primary_resource_name: "getTestProjectFromEnv(), fmt.Sprintf(\"tf-test-apigee-env%s\", context[\"random_suffix\"])" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this is causing issues; it is causing things like this to be generated:
This results in the import id being set to something like
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me know if that helps the tests pass for you locally! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, done! I'm still working with my team to setup the permission for me to run tests locally. We can try and see if the tests pass in your system. |
||||||
vars: | ||||||
network_id: "apigee-network" | ||||||
network_range_id: "apigee-range" | ||||||
apigee_env_id: "apigee-env" | ||||||
# Resource creation race | ||||||
skip_vcr: true | ||||||
timeouts: !ruby/object:Api::Timeouts | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
obj["name"] = d.Get("project_id").(string) | ||
return obj, nil | ||
return obj, nil |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
%
will indicate that the org_id can contain slashes, which should resolve the problem. (Currently the import_format regex excludes the "organization/" at the start of the org id.)