Skip to content

Commit

Permalink
fix: Incorrect serialization of RDC appSettings caused them to never …
Browse files Browse the repository at this point in the history
…take effect (#830)
  • Loading branch information
tianfeng92 authored Sep 1, 2023
1 parent 58fab9a commit 2db4c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/http/rdcservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type RDCSessionRequest struct {
UseTestOrchestrator bool `json:"use_test_orchestrator,omitempty"`
Tags []string `json:"tags,omitempty"`
Build string `json:"build,omitempty"`
AppSettings job.AppSettings `json:"settings,omitempty"`
AppSettings job.AppSettings `json:"settings_overwrite,omitempty"`
RealDeviceKind string `json:"kind,omitempty"`
}

Expand Down
4 changes: 2 additions & 2 deletions internal/job/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ type StartOptions struct {

// AppSettings represents app settings for real device
type AppSettings struct {
AudioCapture bool `json:"audioCapture,omitempty"`
AudioCapture bool `json:"audio_capture,omitempty"`
Instrumentation Instrumentation `json:"instrumentation,omitempty"`
}

// Instrumentation represents instrumentation settings for real device
type Instrumentation struct {
NetworkCapture bool `json:"networkCapture,omitempty"`
NetworkCapture bool `json:"network_capture,omitempty"`
}

// TunnelOptions represents the options that configure the usage of a tunnel when running tests in the Sauce Labs cloud.
Expand Down

0 comments on commit 2db4c2b

Please sign in to comment.