You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should I make a PR to merge in at this point since we're not currently running snippets AFAICT?
If we're running these as system tests(which makes sense to me), I'm not sure how to handle things like email addresses for users and other account information(example).
If I should make mocks instead of hitting the service, it seems like that defeats the purpose unless I can inherit from the real class and just override the methods or some similar strategy?
"If we're running these as system tests" --> then run them like the storage system tests. Does adding a "fake address" like 'me@example.org' work? If not, create a variable user_address outside the snippet and then just put acl.user(user_address).grant_read() inside the snippet.
"If we're running these as system tests" --> then run them like the storage system tests. Does adding a "fake address" like 'me@example.org' work? If not, create a variable user_address outside the snippet and then just put acl.user(user_address).grant_read() inside the snippet.
I looked at the storage system tests and those didn't seem to test the ACL settings. The fake address didn't work as it's not a valid user when testing against live data.
Wouldn't making the user_address variable make the snippet less readable?
Activity
dhermes commentedon Oct 25, 2016
'me@example.org'work? If not, create a variableuser_addressoutside the snippet and then just putacl.user(user_address).grant_read()inside the snippet.daspecster commentedon Oct 25, 2016
I looked at the storage system tests and those didn't seem to test the ACL settings. The fake address didn't work as it's not a valid user when testing against live data.
Wouldn't making the
user_addressvariable make the snippet less readable?dhermes commentedon Oct 25, 2016
I don't think so, but maybe. If you think it does, you could
cloud-logs@google.comautoml: add base model samples for automl ga [(#2609)](GoogleCloudPla…