-
Notifications
You must be signed in to change notification settings - Fork 220
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
Experimental cloud operations client #1462
Conversation
# Conflicts: # contrib/datadog/go.mod # contrib/datadog/go.sum # contrib/opentelemetry/go.mod # contrib/opentelemetry/go.sum # contrib/opentracing/go.mod # contrib/opentracing/go.sum # contrib/tally/go.mod # contrib/tally/go.sum # go.mod # go.sum # test/go.mod # test/go.sum
# Conflicts: # contrib/datadog/go.mod # contrib/datadog/go.sum # contrib/opentelemetry/go.mod # contrib/opentelemetry/go.sum # contrib/opentracing/go.mod # contrib/opentracing/go.sum # contrib/tally/go.mod # contrib/tally/go.sum # go.mod # go.sum # internal/cmd/build/go.mod # internal/cmd/build/go.sum # test/go.mod # test/go.sum
test/cloud_test.go
Outdated
|
||
func init() { flag.BoolVar(&cloudTestsFlag, "cloud-tests", false, "Enable cloud tests") } | ||
|
||
func TestCloudSuite(t *testing.T) { |
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.
Nit: Can we rename this to something like TestCloudOpsSuit
or similar to clarify these tests are just for the clouds Ops API.
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.
I can change this. I was actually thinking that this could encompass all cloud-only tests and not just operations ones (granted it's only operations tests today that are cloud only and we create that client in setup).
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.
Changed
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.
What kind of tests would be cloud-only that aren't the cloud ops tests?
We have other tests that already run against cloud https://github.com/temporalio/sdk-go/actions/runs/9784335348/job/27014986110, but I guess they are not cloud only.
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.
I am not sure, but we can refactor when we get there (maybe we'll never there)
What was changed
client.CloudOperationsClient
CloudService()
, but has room for high-level wrappers if we ever want themclient.DialCloudOperationsClient()
andclient.CloudOperationsClientOptions
Users must deal w/ a required version header and an API key that can only live for a limited time during the current beta cloud API. We decided we'll no longer block this issue on those experience concerns.
(this was started in #1426, but moved to local branch to run cloud tests)
Checklist