@@ -78,17 +78,17 @@ class TestBitbucketServerApi {
7878 } ;
7979 }
8080
81- @test . skip async test_currentUsername_ok ( ) {
81+ @test async test_currentUsername_ok ( ) {
8282 const result = await this . api . currentUsername ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! ) ;
83- expect ( result ) . to . equal ( "AlexTugarev " ) ;
83+ expect ( result ) . to . equal ( "admin-tester " ) ;
8484 }
8585
86- @test . skip async test_getUserProfile_ok ( ) {
87- const result = await this . api . getUserProfile ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , "AlexTugarev " ) ;
86+ @test async test_getUserProfile_ok ( ) {
87+ const result = await this . api . getUserProfile ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , "alex " ) ;
8888 expect ( result ) . to . deep . include ( {
89- id : 105 , // Identity.authId
90- name : "AlexTugarev " , // Identity.authName
91- slug : "alextugarev " , // used in URLs
89+ id : 53 , // Identity.authId
90+ name : "alex " , // Identity.authName
91+ slug : "alex " , // used in URLs
9292 displayName : "Alex Tugarev" ,
9393 } ) ;
9494 }
@@ -97,7 +97,7 @@ class TestBitbucketServerApi {
9797 const result = await this . api . getRepos ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , {
9898 permission : "REPO_READ" ,
9999 } ) ;
100- expect ( result . length ) . to . be . equal ( 9177 ) ;
100+ expect ( result . length ) . to . be . equal ( 10_000 ) ;
101101
102102 // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=0&limit=1000 - OK
103103 // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=1002&limit=1000 - OK
@@ -174,35 +174,6 @@ class TestBitbucketServerApi {
174174 // ✓ test_getRepos_searchString_wildcards_are_not_supported (172ms)
175175 }
176176
177- @test async test_getRepos_searchString_single_char_is_ignored ( ) {
178- const result = await this . api . getRepos ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , {
179- permission : "REPO_READ" ,
180- searchString : "t" ,
181- } ) ;
182- expect ( result . length ) . to . be . equal ( 9177 ) ;
183-
184- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=0&name=t - OK
185- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=1000&name=t - OK
186- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=2000&name=t - OK
187- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=3000&name=t - OK
188- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=4000&name=t - OK
189- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=5000&name=t - OK
190- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=6000&name=t - OK
191- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=7000&name=t - OK
192- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=8000&name=t - OK
193- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=0&projectname=t - OK
194- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=1000&projectname=t - OK
195- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=2000&projectname=t - OK
196- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=3000&projectname=t - OK
197- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=4000&projectname=t - OK
198- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=5000&projectname=t - OK
199- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=6000&projectname=t - OK
200- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=7000&projectname=t - OK
201- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=8000&projectname=t - OK
202- // BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=9000&projectname=t - OK
203- // ✓ test_getRepos_searchString_single_char_is_ignored (7329ms)
204- }
205-
206177 @test async test_getRepos_searchString_unmatched ( ) {
207178 const result = await this . api . getRepos ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , {
208179 permission : "REPO_READ" ,
0 commit comments