@@ -78,17 +78,17 @@ class TestBitbucketServerApi {
78
78
} ;
79
79
}
80
80
81
- @test . skip async test_currentUsername_ok ( ) {
81
+ @test async test_currentUsername_ok ( ) {
82
82
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 " ) ;
84
84
}
85
85
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 " ) ;
88
88
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
92
92
displayName : "Alex Tugarev" ,
93
93
} ) ;
94
94
}
@@ -97,7 +97,7 @@ class TestBitbucketServerApi {
97
97
const result = await this . api . getRepos ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , {
98
98
permission : "REPO_READ" ,
99
99
} ) ;
100
- expect ( result . length ) . to . be . equal ( 9177 ) ;
100
+ expect ( result . length ) . to . be . equal ( 10_000 ) ;
101
101
102
102
// BBS: GET https://bitbucket.gitpod-dev.com/rest/api/1.0/repos?permission=REPO_READ&limit=1000&start=0&limit=1000 - OK
103
103
// 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 {
174
174
// ✓ test_getRepos_searchString_wildcards_are_not_supported (172ms)
175
175
}
176
176
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
-
206
177
@test async test_getRepos_searchString_unmatched ( ) {
207
178
const result = await this . api . getRepos ( process . env [ "GITPOD_TEST_TOKEN_BITBUCKET_SERVER" ] ! , {
208
179
permission : "REPO_READ" ,
0 commit comments