@@ -554,7 +554,6 @@ func TestRunnerGroup_Marshal(t *testing.T) {
554554 Inherited : Ptr (true ),
555555 AllowsPublicRepositories : Ptr (true ),
556556 RestrictedToWorkflows : Ptr (false ),
557- SelectedWorkflows : []string {},
558557 }
559558
560559 want := `{
@@ -568,16 +567,18 @@ func TestRunnerGroup_Marshal(t *testing.T) {
568567 "network_configuration_id": "nc",
569568 "inherited": true,
570569 "allows_public_repositories": true,
571- "restricted_to_workflows": false,
572- "selected_workflows": []
570+ "restricted_to_workflows": false
573571 }`
574572
575573 testJSONMarshal (t , u , want )
576574}
577575
578576func TestRunnerGroups_Marshal (t * testing.T ) {
579577 t .Parallel ()
580- testJSONMarshal (t , & RunnerGroups {}, "{}" )
578+ testJSONMarshal (t , & RunnerGroups {}, `{
579+ "total_count": 0,
580+ "runner_groups": null
581+ }` )
581582
582583 u := & RunnerGroups {
583584 TotalCount : int (1 ),
@@ -594,7 +595,6 @@ func TestRunnerGroups_Marshal(t *testing.T) {
594595 Inherited : Ptr (true ),
595596 AllowsPublicRepositories : Ptr (true ),
596597 RestrictedToWorkflows : Ptr (false ),
597- SelectedWorkflows : []string {},
598598 },
599599 },
600600 }
@@ -612,8 +612,7 @@ func TestRunnerGroups_Marshal(t *testing.T) {
612612 "network_configuration_id": "nc",
613613 "inherited": true,
614614 "allows_public_repositories": true,
615- "restricted_to_workflows": false,
616- "selected_workflows": []
615+ "restricted_to_workflows": false
617616 }]
618617 }`
619618
@@ -658,7 +657,6 @@ func TestUpdateRunnerGroupRequest_Marshal(t *testing.T) {
658657 Visibility : Ptr ("v" ),
659658 AllowsPublicRepositories : Ptr (true ),
660659 RestrictedToWorkflows : Ptr (false ),
661- SelectedWorkflows : []string {},
662660 NetworkConfigurationID : Ptr ("nc" ),
663661 }
664662
@@ -667,7 +665,6 @@ func TestUpdateRunnerGroupRequest_Marshal(t *testing.T) {
667665 "visibility": "v",
668666 "allows_public_repositories": true,
669667 "restricted_to_workflows": false,
670- "selected_workflows": [],
671668 "network_configuration_id": "nc"
672669 }`
673670
@@ -676,7 +673,7 @@ func TestUpdateRunnerGroupRequest_Marshal(t *testing.T) {
676673
677674func TestSetRepoAccessRunnerGroupRequest_Marshal (t * testing.T ) {
678675 t .Parallel ()
679- testJSONMarshal (t , & SetRepoAccessRunnerGroupRequest {}, "{}" )
676+ testJSONMarshal (t , & SetRepoAccessRunnerGroupRequest {}, `{"selected_repository_ids": null}` )
680677
681678 u := & SetRepoAccessRunnerGroupRequest {
682679 SelectedRepositoryIDs : []int64 {1 },
@@ -691,7 +688,7 @@ func TestSetRepoAccessRunnerGroupRequest_Marshal(t *testing.T) {
691688
692689func TestSetRunnerGroupRunnersRequest_Marshal (t * testing.T ) {
693690 t .Parallel ()
694- testJSONMarshal (t , & SetRunnerGroupRunnersRequest {}, "{}" )
691+ testJSONMarshal (t , & SetRunnerGroupRunnersRequest {}, `{"runners": null}` )
695692
696693 u := & SetRunnerGroupRunnersRequest {
697694 Runners : []int64 {1 },
0 commit comments