@@ -61,7 +61,9 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
6161 const _package : VerdaccioGitlabPackageAccess = {
6262 name : '@myGroup/myPackage' ,
6363 access : [ '$authenticated' ] ,
64- gitlab : true
64+ gitlab : true ,
65+ publish : [ '$authenticated' ] ,
66+ proxy : [ 'npmjs' ]
6567 } ;
6668
6769 const cb : Callback = ( err , data ) => {
@@ -79,7 +81,9 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
7981 const _package : VerdaccioGitlabPackageAccess = {
8082 name : '@anotherGroup/myProject' ,
8183 access : [ '$authenticated' ] ,
82- gitlab : true
84+ gitlab : true ,
85+ publish : [ '$authenticated' ] ,
86+ proxy : [ 'npmjs' ]
8387 } ;
8488
8589 const cb : Callback = ( err , data ) => {
@@ -97,7 +101,9 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
97101 const _package : VerdaccioGitlabPackageAccess = {
98102 name : config . user ,
99103 access : [ '$authenticated' ] ,
100- gitlab : true
104+ gitlab : true ,
105+ publish : [ '$authenticated' ] ,
106+ proxy : [ 'npmjs' ]
101107 } ;
102108
103109 const cb : Callback = ( err , data ) => {
@@ -114,8 +120,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
114120 const verdaccioGitlab : VerdaccioGitlab = new VerdaccioGitlab ( config . verdaccioGitlabConfig , config . options ) ;
115121 const _package : VerdaccioGitlabPackageAccess = {
116122 name : config . user ,
117- access : undefined ,
118- gitlab : true
123+ access : [ ] ,
124+ gitlab : true ,
125+ publish : [ '$authenticated' ] ,
126+ proxy : [ 'npmjs' ]
119127 } ;
120128
121129 const cb : Callback = ( err , data ) => {
@@ -138,7 +146,9 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
138146 const _package : VerdaccioGitlabPackageAccess = {
139147 name : '@myGroup/myPackage' ,
140148 access : [ '$authenticated' ] ,
141- gitlab : true
149+ gitlab : true ,
150+ publish : [ '$authenticated' ] ,
151+ proxy : [ 'npmjs' ]
142152 } ;
143153
144154 const cb : Callback = ( err , data ) => {
@@ -154,7 +164,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
154164 const verdaccioGitlab : VerdaccioGitlab = new VerdaccioGitlab ( config . verdaccioGitlabConfig , config . options ) ;
155165 const _package : VerdaccioGitlabPackageAccess = {
156166 name : '@myGroup/myPackage' ,
157- gitlab : true
167+ access : [ '$all' ] ,
168+ gitlab : true ,
169+ publish : [ '$authenticated' ] ,
170+ proxy : [ 'npmjs' ]
158171 } ;
159172
160173 const cb : Callback = ( err , data ) => {
@@ -170,7 +183,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
170183 const verdaccioGitlab : VerdaccioGitlab = new VerdaccioGitlab ( config . verdaccioGitlabConfig , config . options ) ;
171184 const _package : VerdaccioGitlabPackageAccess = {
172185 name : '@anotherGroup/myProject' ,
173- gitlab : true
186+ access : [ '$all' ] ,
187+ gitlab : true ,
188+ publish : [ '$authenticated' ] ,
189+ proxy : [ 'npmjs' ]
174190 } ;
175191
176192 const cb : Callback = ( err , data ) => {
@@ -186,7 +202,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
186202 const verdaccioGitlab : VerdaccioGitlab = new VerdaccioGitlab ( config . verdaccioGitlabConfig , config . options ) ;
187203 const _package : VerdaccioGitlabPackageAccess = {
188204 name : config . user ,
189- gitlab : true
205+ access : [ '$all' ] ,
206+ gitlab : true ,
207+ publish : [ '$authenticated' ] ,
208+ proxy : [ 'npmjs' ]
190209 } ;
191210
192211 const cb : Callback = ( err , data ) => {
@@ -207,7 +226,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
207226 } ;
208227 const _package : VerdaccioGitlabPackageAccess = {
209228 name : config . user ,
210- gitlab : true
229+ access : [ '$all' ] ,
230+ gitlab : true ,
231+ publish : [ '$authenticated' ] ,
232+ proxy : [ 'npmjs' ]
211233 } ;
212234
213235 const cb : Callback = ( err , data ) => {
@@ -223,7 +245,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
223245 const verdaccioGitlab : VerdaccioGitlab = new VerdaccioGitlab ( config . verdaccioGitlabConfig , config . options ) ;
224246 const _package : VerdaccioGitlabPackageAccess = {
225247 name : '@anotherGroup/myPackage' ,
226- gitlab : true
248+ access : [ '$all' ] ,
249+ gitlab : true ,
250+ publish : [ '$authenticated' ] ,
251+ proxy : [ 'npmjs' ]
227252 } ;
228253
229254 const cb : Callback = ( err , data ) => {
@@ -239,7 +264,10 @@ describe('Gitlab Auth Plugin Unit Tests', () => {
239264 const verdaccioGitlab : VerdaccioGitlab = new VerdaccioGitlab ( config . verdaccioGitlabConfig , config . options ) ;
240265 const _package : VerdaccioGitlabPackageAccess = {
241266 name : 'anotherUser' ,
242- gitlab : true
267+ access : [ '$all' ] ,
268+ gitlab : true ,
269+ publish : [ '$authenticated' ] ,
270+ proxy : [ 'npmjs' ]
243271 } ;
244272
245273 const cb : Callback = ( err , data ) => {
0 commit comments