@@ -157,7 +157,7 @@ func TestPathConfig_AutoRotateToken(t *testing.T) {
157157 t .Run ("no error when auto rotate is disabled and config is set" , func (t * testing.T ) {
158158 var client = newInMemoryClient (true )
159159 ctx , url := getCtxGitlabClientWithUrl (t , "unit" )
160- ctx = gitlab .GitlabClientNewContext (ctx , client )
160+ ctx = gitlab .ClientNewContext (ctx , client )
161161 b , l , err := getBackendWithConfig (ctx , map [string ]any {
162162 "token" : "glpat-secret-token" ,
163163 "base_url" : url ,
@@ -173,7 +173,7 @@ func TestPathConfig_AutoRotateToken(t *testing.T) {
173173 t .Run ("call auto rotate the main token and rotate the token" , func (t * testing.T ) {
174174 var client = newInMemoryClient (true )
175175 ctx , url := getCtxGitlabClientWithUrl (t , "unit" )
176- ctx = gitlab .GitlabClientNewContext (ctx , newInMemoryClient (true ))
176+ ctx = gitlab .ClientNewContext (ctx , newInMemoryClient (true ))
177177 b , l , events , err := getBackendWithEventsAndConfig (ctx , map [string ]any {
178178 "token" : "token" ,
179179 "base_url" : url ,
@@ -224,7 +224,7 @@ func TestPathConfig_AutoRotateToken(t *testing.T) {
224224 t .Run ("call auto rotate the main token but the token is still valid" , func (t * testing.T ) {
225225 var client = newInMemoryClient (true )
226226 ctx , url := getCtxGitlabClientWithUrl (t , "unit" )
227- ctx = gitlab .GitlabClientNewContext (ctx , newInMemoryClient (true ))
227+ ctx = gitlab .ClientNewContext (ctx , newInMemoryClient (true ))
228228 b , l , err := getBackendWithConfig (ctx , map [string ]any {
229229 "token" : "token" ,
230230 "base_url" : url ,
0 commit comments