-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: Update configuration language to match new data system #267
Conversation
Definitely want to review this one commit at a time. |
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.
Let's pair on this
"github.com/launchdarkly/sdk-test-harness/v2/servicedef" | ||
) | ||
|
||
type sdkDataSystemSourceConfig struct { |
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 think it might make sense to call it DataSystemConfig
, and DataSystemOptionPolling
etc without the "Source" part.
)...) | ||
|
||
request := dataSource.Endpoint().RequireConnection(t, time.Second) | ||
request := dataSystem.Synchronizers.primary.Endpoint().RequireConnection(t, time.Second) |
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.
Wondering if it'd make sense to add a .PrimarySync()
or .Synchronizer()
helper that pulls out the primary. That way, the bulk of the existing tests that don't care about the existence of a secondary don't need to really know about it
sdktests/common_tests_stream_base.go
Outdated
// creating an SDK client. | ||
// | ||
// This behavior differs between SDK types as follows: | ||
// | ||
// - Server-side SDKs in streaming mode use *only* the streaming service. | ||
// - Server-side SDKs in streaming mode use *only* the streaming synchronizing service. |
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.
Think it's fair to keep this as streaming service
, since synchronizer is a name to describe the general class of thing
sdktests/common_tests_stream_fdv2.go
Outdated
stream.streamingService.PushUpdate("flag", "flag-key", 2, c.makeFlagData("flag-key", 2, updatedValue)) | ||
stream.streamingService.PushHeartbeat() | ||
stream.streamingService.PushPayloadTransferred("updated", 2) | ||
dataSystem.Synchronizers.primary.streamingService.PushHeartbeat() |
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.
Yea I think having a helper would definitely make this easier to deal with
No description provided.