@@ -557,16 +557,15 @@ func TestRunnerGroup_Marshal(t *testing.T) {
557
557
"runners_url": "r",
558
558
"inherited": true,
559
559
"allows_public_repositories": true,
560
- "restricted_to_workflows": false,
561
- "selected_workflows": []
560
+ "restricted_to_workflows": false
562
561
}`
563
562
564
563
testJSONMarshal (t , u , want )
565
564
}
566
565
567
566
func TestRunnerGroups_Marshal (t * testing.T ) {
568
567
t .Parallel ()
569
- testJSONMarshal (t , & RunnerGroups {}, "{}" )
568
+ testJSONMarshal (t , & RunnerGroups {}, `{"runner_groups": null, "total_count": 0}` )
570
569
571
570
u := & RunnerGroups {
572
571
TotalCount : int (1 ),
@@ -597,8 +596,7 @@ func TestRunnerGroups_Marshal(t *testing.T) {
597
596
"runners_url": "r",
598
597
"inherited": true,
599
598
"allows_public_repositories": true,
600
- "restricted_to_workflows": false,
601
- "selected_workflows": []
599
+ "restricted_to_workflows": false
602
600
}]
603
601
}`
604
602
@@ -648,16 +646,15 @@ func TestUpdateRunnerGroupRequest_Marshal(t *testing.T) {
648
646
"name": "n",
649
647
"visibility": "v",
650
648
"allows_public_repositories": true,
651
- "restricted_to_workflows": false,
652
- "selected_workflows": []
649
+ "restricted_to_workflows": false
653
650
}`
654
651
655
652
testJSONMarshal (t , u , want )
656
653
}
657
654
658
655
func TestSetRepoAccessRunnerGroupRequest_Marshal (t * testing.T ) {
659
656
t .Parallel ()
660
- testJSONMarshal (t , & SetRepoAccessRunnerGroupRequest {}, "{}" )
657
+ testJSONMarshal (t , & SetRepoAccessRunnerGroupRequest {}, `{"selected_repository_ids": null}` )
661
658
662
659
u := & SetRepoAccessRunnerGroupRequest {
663
660
SelectedRepositoryIDs : []int64 {1 },
@@ -672,7 +669,7 @@ func TestSetRepoAccessRunnerGroupRequest_Marshal(t *testing.T) {
672
669
673
670
func TestSetRunnerGroupRunnersRequest_Marshal (t * testing.T ) {
674
671
t .Parallel ()
675
- testJSONMarshal (t , & SetRunnerGroupRunnersRequest {}, "{}" )
672
+ testJSONMarshal (t , & SetRunnerGroupRunnersRequest {}, `{"runners": null}` )
676
673
677
674
u := & SetRunnerGroupRunnersRequest {
678
675
Runners : []int64 {1 },
0 commit comments