@@ -541,6 +541,8 @@ func TestEnterpriseRunnerGroup_Marshal(t *testing.T) {
541541 Default : Ptr (true ),
542542 SelectedOrganizationsURL : Ptr ("s" ),
543543 RunnersURL : Ptr ("r" ),
544+ HostedRunnersURL : Ptr ("h" ),
545+ NetworkConfigurationID : Ptr ("nc" ),
544546 Inherited : Ptr (true ),
545547 AllowsPublicRepositories : Ptr (true ),
546548 RestrictedToWorkflows : Ptr (false ),
@@ -553,6 +555,8 @@ func TestEnterpriseRunnerGroup_Marshal(t *testing.T) {
553555 "default": true,
554556 "selected_organizations_url": "s",
555557 "runners_url": "r",
558+ "hosted_runners_url": "h",
559+ "network_configuration_id": "nc",
556560 "inherited": true,
557561 "allows_public_repositories": true,
558562 "restricted_to_workflows": false
@@ -575,6 +579,8 @@ func TestEnterpriseRunnerGroups_Marshal(t *testing.T) {
575579 Default : Ptr (true ),
576580 SelectedOrganizationsURL : Ptr ("s" ),
577581 RunnersURL : Ptr ("r" ),
582+ HostedRunnersURL : Ptr ("h" ),
583+ NetworkConfigurationID : Ptr ("nc" ),
578584 Inherited : Ptr (true ),
579585 AllowsPublicRepositories : Ptr (true ),
580586 RestrictedToWorkflows : Ptr (false ),
@@ -591,6 +597,8 @@ func TestEnterpriseRunnerGroups_Marshal(t *testing.T) {
591597 "default": true,
592598 "selected_organizations_url": "s",
593599 "runners_url": "r",
600+ "hosted_runners_url": "h",
601+ "network_configuration_id": "nc",
594602 "inherited": true,
595603 "allows_public_repositories": true,
596604 "restricted_to_workflows": false
@@ -612,6 +620,7 @@ func TestCreateEnterpriseRunnerGroupRequest_Marshal(t *testing.T) {
612620 AllowsPublicRepositories : Ptr (true ),
613621 RestrictedToWorkflows : Ptr (true ),
614622 SelectedWorkflows : []string {"a" , "b" },
623+ NetworkConfigurationID : Ptr ("nc-123" ),
615624 }
616625
617626 want := `{
@@ -621,7 +630,8 @@ func TestCreateEnterpriseRunnerGroupRequest_Marshal(t *testing.T) {
621630 "runners": [1],
622631 "allows_public_repositories": true,
623632 "restricted_to_workflows": true,
624- "selected_workflows": ["a","b"]
633+ "selected_workflows": ["a","b"],
634+ "network_configuration_id": "nc-123"
625635 }`
626636
627637 testJSONMarshal (t , u , want )
@@ -636,13 +646,15 @@ func TestUpdateEnterpriseRunnerGroupRequest_Marshal(t *testing.T) {
636646 Visibility : Ptr ("v" ),
637647 AllowsPublicRepositories : Ptr (true ),
638648 RestrictedToWorkflows : Ptr (false ),
649+ NetworkConfigurationID : Ptr ("nc-456" ),
639650 }
640651
641652 want := `{
642653 "name": "n",
643654 "visibility": "v",
644655 "allows_public_repositories": true,
645- "restricted_to_workflows": false
656+ "restricted_to_workflows": false,
657+ "network_configuration_id": "nc-456"
646658 }`
647659
648660 testJSONMarshal (t , u , want )
0 commit comments