-
Notifications
You must be signed in to change notification settings - Fork 60
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
Resource: Gmail Send As Aliases #122
Conversation
@@ -20,7 +20,7 @@ func TestAccDataSourcePrivileges_basic(t *testing.T) { | |||
Config: testAccDataSourcePrivileges(), | |||
Check: resource.ComposeTestCheckFunc( | |||
resource.TestCheckResourceAttrSet("data.googleworkspace_privileges.test", "etag"), | |||
resource.TestCheckResourceAttr("data.googleworkspace_privileges.test", "items.#", "104"), | |||
resource.TestCheckResourceAttr("data.googleworkspace_privileges.test", "items.#", "107"), |
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.
is this something we'll need to constantly be updating?
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.
probably... I don't really care about getting it exact, maybe we write a custom check that just ensures its > 0?
|
||
log.Printf("[DEBUG] Getting Gmail Send As Alias %q", d.Id()) | ||
|
||
sendAs, err := sendAsAliasService.Get("me", d.Get("send_as_email").(string)).Do() |
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.
Is "me" just a placeholder here?
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.
No, since we impersonated the user getting the changes, you can put "me" as a special "userId".. Ideally this would just work without the impersonation workaround
Adds ability to create send-as aliases, both internal and external to google. However as stated in #117 testing external aliases was not possible due to SMTP relay requirement.
primary_email
was chosen as the config attribute for what this API refers to asuserId
this was chosen to maintain consistency across provider resources.Closes #117