@@ -14,7 +14,7 @@ import (
1414 "github.com/google/go-cmp/cmp"
1515)
1616
17- func TestActionsService_GetOrgOIDCSubjectClaimCustomizationTemplate (t * testing.T ) {
17+ func TestActionsService_GetOrgOIDCSubjectClaimCustomTemplate (t * testing.T ) {
1818 client , mux , _ , teardown := setup ()
1919 defer teardown ()
2020
@@ -24,32 +24,32 @@ func TestActionsService_GetOrgOIDCSubjectClaimCustomizationTemplate(t *testing.T
2424 })
2525
2626 ctx := context .Background ()
27- template , _ , err := client .Actions .GetOrgOIDCSubjectClaimCustomizationTemplate (ctx , "o" )
27+ template , _ , err := client .Actions .GetOrgOIDCSubjectClaimCustomTemplate (ctx , "o" )
2828 if err != nil {
29- t .Errorf ("Actions.GetOrgOIDCSubjectClaimCustomizationTemplate returned error: %v" , err )
29+ t .Errorf ("Actions.GetOrgOIDCSubjectClaimCustomTemplate returned error: %v" , err )
3030 }
3131
32- want := & OIDCSubjectClaimCustomizationTemplate {IncludeClaimKeys : []string {"repo" , "context" }}
32+ want := & OIDCSubjectClaimCustomTemplate {IncludeClaimKeys : []string {"repo" , "context" }}
3333 if ! cmp .Equal (template , want ) {
34- t .Errorf ("Actions.GetOrgOIDCSubjectClaimCustomizationTemplate returned %+v, want %+v" , template , want )
34+ t .Errorf ("Actions.GetOrgOIDCSubjectClaimCustomTemplate returned %+v, want %+v" , template , want )
3535 }
3636
37- const methodName = "GetOrgOIDCSubjectClaimCustomizationTemplate "
37+ const methodName = "GetOrgOIDCSubjectClaimCustomTemplate "
3838 testBadOptions (t , methodName , func () (err error ) {
39- _ , _ , err = client .Actions .GetOrgOIDCSubjectClaimCustomizationTemplate (ctx , "\n " )
39+ _ , _ , err = client .Actions .GetOrgOIDCSubjectClaimCustomTemplate (ctx , "\n " )
4040 return err
4141 })
4242
4343 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
44- got , resp , err := client .Actions .GetOrgOIDCSubjectClaimCustomizationTemplate (ctx , "o" )
44+ got , resp , err := client .Actions .GetOrgOIDCSubjectClaimCustomTemplate (ctx , "o" )
4545 if got != nil {
4646 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
4747 }
4848 return resp , err
4949 })
5050}
5151
52- func TestActionsService_GetRepoOIDCSubjectClaimCustomizationTemplate (t * testing.T ) {
52+ func TestActionsService_GetRepoOIDCSubjectClaimCustomTemplate (t * testing.T ) {
5353 client , mux , _ , teardown := setup ()
5454 defer teardown ()
5555
@@ -59,32 +59,32 @@ func TestActionsService_GetRepoOIDCSubjectClaimCustomizationTemplate(t *testing.
5959 })
6060
6161 ctx := context .Background ()
62- template , _ , err := client .Actions .GetRepoOIDCSubjectClaimCustomizationTemplate (ctx , "o" , "r" )
62+ template , _ , err := client .Actions .GetRepoOIDCSubjectClaimCustomTemplate (ctx , "o" , "r" )
6363 if err != nil {
64- t .Errorf ("Actions.GetRepoOIDCSubjectClaimCustomizationTemplate returned error: %v" , err )
64+ t .Errorf ("Actions.GetRepoOIDCSubjectClaimCustomTemplate returned error: %v" , err )
6565 }
6666
67- want := & OIDCSubjectClaimCustomizationTemplate {UseDefault : Bool (false ), IncludeClaimKeys : []string {"repo" , "context" }}
67+ want := & OIDCSubjectClaimCustomTemplate {UseDefault : Bool (false ), IncludeClaimKeys : []string {"repo" , "context" }}
6868 if ! cmp .Equal (template , want ) {
69- t .Errorf ("Actions.GetOrgOIDCSubjectClaimCustomizationTemplate returned %+v, want %+v" , template , want )
69+ t .Errorf ("Actions.GetOrgOIDCSubjectClaimCustomTemplate returned %+v, want %+v" , template , want )
7070 }
7171
72- const methodName = "GetRepoOIDCSubjectClaimCustomizationTemplate "
72+ const methodName = "GetRepoOIDCSubjectClaimCustomTemplate "
7373 testBadOptions (t , methodName , func () (err error ) {
74- _ , _ , err = client .Actions .GetRepoOIDCSubjectClaimCustomizationTemplate (ctx , "\n " , "\n " )
74+ _ , _ , err = client .Actions .GetRepoOIDCSubjectClaimCustomTemplate (ctx , "\n " , "\n " )
7575 return err
7676 })
7777
7878 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
79- got , resp , err := client .Actions .GetRepoOIDCSubjectClaimCustomizationTemplate (ctx , "o" , "r" )
79+ got , resp , err := client .Actions .GetRepoOIDCSubjectClaimCustomTemplate (ctx , "o" , "r" )
8080 if got != nil {
8181 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
8282 }
8383 return resp , err
8484 })
8585}
8686
87- func TestActionsService_SetOrgOIDCSubjectClaimCustomizationTemplate (t * testing.T ) {
87+ func TestActionsService_SetOrgOIDCSubjectClaimCustomTemplate (t * testing.T ) {
8888 client , mux , _ , teardown := setup ()
8989 defer teardown ()
9090
@@ -95,28 +95,28 @@ func TestActionsService_SetOrgOIDCSubjectClaimCustomizationTemplate(t *testing.T
9595 w .WriteHeader (http .StatusCreated )
9696 })
9797
98- input := & OIDCSubjectClaimCustomizationTemplate {
98+ input := & OIDCSubjectClaimCustomTemplate {
9999 IncludeClaimKeys : []string {"repo" , "context" },
100100 }
101101 ctx := context .Background ()
102- _ , err := client .Actions .SetOrgOIDCSubjectClaimCustomizationTemplate (ctx , "o" , input )
102+ _ , err := client .Actions .SetOrgOIDCSubjectClaimCustomTemplate (ctx , "o" , input )
103103 if err != nil {
104- t .Errorf ("Actions.SetOrgOIDCSubjectClaimCustomizationTemplate returned error: %v" , err )
104+ t .Errorf ("Actions.SetOrgOIDCSubjectClaimCustomTemplate returned error: %v" , err )
105105 }
106106
107- const methodName = "SetOrgOIDCSubjectClaimCustomizationTemplate "
107+ const methodName = "SetOrgOIDCSubjectClaimCustomTemplate "
108108
109109 testBadOptions (t , methodName , func () (err error ) {
110- _ , err = client .Actions .SetOrgOIDCSubjectClaimCustomizationTemplate (ctx , "\n " , input )
110+ _ , err = client .Actions .SetOrgOIDCSubjectClaimCustomTemplate (ctx , "\n " , input )
111111 return err
112112 })
113113
114114 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
115- return client .Actions .SetOrgOIDCSubjectClaimCustomizationTemplate (ctx , "o" , input )
115+ return client .Actions .SetOrgOIDCSubjectClaimCustomTemplate (ctx , "o" , input )
116116 })
117117}
118118
119- func TestActionsService_SetRepoOIDCSubjectClaimCustomizationTemplate (t * testing.T ) {
119+ func TestActionsService_SetRepoOIDCSubjectClaimCustomTemplate (t * testing.T ) {
120120 client , mux , _ , teardown := setup ()
121121 defer teardown ()
122122
@@ -127,24 +127,24 @@ func TestActionsService_SetRepoOIDCSubjectClaimCustomizationTemplate(t *testing.
127127 w .WriteHeader (http .StatusCreated )
128128 })
129129
130- input := & OIDCSubjectClaimCustomizationTemplate {
130+ input := & OIDCSubjectClaimCustomTemplate {
131131 UseDefault : Bool (false ),
132132 IncludeClaimKeys : []string {"repo" , "context" },
133133 }
134134 ctx := context .Background ()
135- _ , err := client .Actions .SetRepoOIDCSubjectClaimCustomizationTemplate (ctx , "o" , "r" , input )
135+ _ , err := client .Actions .SetRepoOIDCSubjectClaimCustomTemplate (ctx , "o" , "r" , input )
136136 if err != nil {
137- t .Errorf ("Actions.SetRepoOIDCSubjectClaimCustomizationTemplate returned error: %v" , err )
137+ t .Errorf ("Actions.SetRepoOIDCSubjectClaimCustomTemplate returned error: %v" , err )
138138 }
139139
140- const methodName = "SetRepoOIDCSubjectClaimCustomizationTemplate "
140+ const methodName = "SetRepoOIDCSubjectClaimCustomTemplate "
141141
142142 testBadOptions (t , methodName , func () (err error ) {
143- _ , err = client .Actions .SetRepoOIDCSubjectClaimCustomizationTemplate (ctx , "\n " , "\n " , input )
143+ _ , err = client .Actions .SetRepoOIDCSubjectClaimCustomTemplate (ctx , "\n " , "\n " , input )
144144 return err
145145 })
146146
147147 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
148- return client .Actions .SetRepoOIDCSubjectClaimCustomizationTemplate (ctx , "o" , "r" , input )
148+ return client .Actions .SetRepoOIDCSubjectClaimCustomTemplate (ctx , "o" , "r" , input )
149149 })
150150}
0 commit comments