@@ -128,8 +128,36 @@ Future<void> _testExportedApiSynchronization(
128128 isNotNull,
129129 );
130130 expect (
131- await bucket.readBytes ('$runtimeVersion /api/packages/foo/feed.atom' ),
132- isNotNull,
131+ await bucket.readGzippedJson ('$runtimeVersion /api/packages/foo/likes' ),
132+ {
133+ 'package' : 'foo' ,
134+ 'likes' : 0 ,
135+ },
136+ );
137+ expect (
138+ await bucket.readGzippedJson ('$runtimeVersion /api/packages/foo/options' ),
139+ {
140+ 'isDiscontinued' : false ,
141+ 'replacedBy' : null ,
142+ 'isUnlisted' : false ,
143+ },
144+ );
145+ expect (
146+ await bucket
147+ .readGzippedJson ('$runtimeVersion /api/packages/foo/publisher' ),
148+ {
149+ 'publisherId' : null ,
150+ },
151+ );
152+ expect (
153+ await bucket.readGzippedJson ('$runtimeVersion /api/packages/foo/score' ),
154+ {
155+ 'grantedPoints' : isNotNull,
156+ 'maxPoints' : isNotNull,
157+ 'likeCount' : isNotNull,
158+ 'tags' : isNotEmpty,
159+ 'lastUpdated' : isNotNull,
160+ },
133161 );
134162 expect (
135163 await bucket.readGzippedJson ('$runtimeVersion /api/packages/foo' ),
@@ -139,6 +167,10 @@ Future<void> _testExportedApiSynchronization(
139167 'versions' : hasLength (1 ),
140168 },
141169 );
170+ expect (
171+ await bucket.readString ('$runtimeVersion /api/packages/foo/feed.atom' ),
172+ contains ('v1.0.0 of foo' ),
173+ );
142174 expect (
143175 await bucket
144176 .readGzippedJson ('$runtimeVersion /api/package-name-completion-data' ),
@@ -152,10 +184,6 @@ Future<void> _testExportedApiSynchronization(
152184 await bucket.readString ('$runtimeVersion /feed.atom' ),
153185 contains ('v1.0.0 of foo' ),
154186 );
155- expect (
156- await bucket.readString ('$runtimeVersion /api/packages/foo/feed.atom' ),
157- contains ('v1.0.0 of foo' ),
158- );
159187 }
160188
161189 _log.info ('## New package' );
@@ -193,6 +221,22 @@ Future<void> _testExportedApiSynchronization(
193221 await bucket.readString ('latest/api/packages/foo/feed.atom' ),
194222 contains ('v1.0.0 of foo' ),
195223 );
224+ expect (
225+ await bucket.readGzippedJson ('latest/api/packages/foo/likes' ),
226+ isNotNull,
227+ );
228+ expect (
229+ await bucket.readGzippedJson ('latest/api/packages/foo/options' ),
230+ isNotNull,
231+ );
232+ expect (
233+ await bucket.readGzippedJson ('latest/api/packages/foo/publisher' ),
234+ isNotNull,
235+ );
236+ expect (
237+ await bucket.readGzippedJson ('latest/api/packages/foo/score' ),
238+ isNotNull,
239+ );
196240 // Note. that name completion data won't be updated until search caches
197241 // are purged, so we won't test that it is updated.
198242
@@ -440,6 +484,10 @@ Future<void> _testExportedApiSynchronization(
440484 await bucket.readGzippedJson ('latest/api/packages/bar' ),
441485 isNull,
442486 );
487+ expect (
488+ await bucket.readGzippedJson ('latest/api/packages/bar/options' ),
489+ isNull,
490+ );
443491 expect (
444492 await bucket.readGzippedJson ('latest/api/packages/feed.atom' ),
445493 isNull,
@@ -480,6 +528,10 @@ Future<void> _testExportedApiSynchronization(
480528 'versions' : hasLength (2 ),
481529 },
482530 );
531+ expect (
532+ await bucket.readGzippedJson ('latest/api/packages/bar/options' ),
533+ isNotNull,
534+ );
483535 expect (
484536 await bucket.readBytes ('latest/api/archives/bar-2.0.0.tar.gz' ),
485537 isNotNull,
0 commit comments