@@ -77,6 +77,11 @@ func TestFeed_Get(t *testing.T) {
7777 jsonhttptest .Request (t , client , http .MethodGet , feedResource (ownerString , "aabbcc" , "12" ), http .StatusOK ,
7878 jsonhttptest .WithExpectedResponse (mockWrappedCh .Data ()[swarm .SpanSize :]),
7979 jsonhttptest .WithExpectedResponseHeader (api .SwarmFeedIndexHeader , hex .EncodeToString (idBytes )),
80+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexHeader ),
81+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexNextHeader ),
82+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmSocSignatureHeader ),
83+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .ContentDispositionHeader ),
84+ jsonhttptest .WithExpectedResponseHeader (api .ContentTypeHeader , "application/octet-stream" ),
8085 )
8186 })
8287
@@ -100,6 +105,11 @@ func TestFeed_Get(t *testing.T) {
100105 jsonhttptest .WithExpectedResponse (mockWrappedCh .Data ()[swarm .SpanSize :]),
101106 jsonhttptest .WithExpectedContentLength (len (mockWrappedCh .Data ()[swarm .SpanSize :])),
102107 jsonhttptest .WithExpectedResponseHeader (api .SwarmFeedIndexHeader , hex .EncodeToString (idBytes )),
108+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexHeader ),
109+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexNextHeader ),
110+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmSocSignatureHeader ),
111+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .ContentDispositionHeader ),
112+ jsonhttptest .WithExpectedResponseHeader (api .ContentTypeHeader , "application/octet-stream" ),
103113 )
104114 })
105115
@@ -124,6 +134,11 @@ func TestFeed_Get(t *testing.T) {
124134 jsonhttptest .WithExpectedResponse (testData ),
125135 jsonhttptest .WithExpectedContentLength (len (testData )),
126136 jsonhttptest .WithExpectedResponseHeader (api .SwarmFeedIndexHeader , hex .EncodeToString (idBytes )),
137+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexHeader ),
138+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexNextHeader ),
139+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmSocSignatureHeader ),
140+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .ContentDispositionHeader ),
141+ jsonhttptest .WithExpectedResponseHeader (api .ContentTypeHeader , "application/octet-stream" ),
127142 )
128143 })
129144
@@ -181,6 +196,11 @@ func TestFeed_Get(t *testing.T) {
181196 jsonhttptest .WithExpectedResponse (testData ),
182197 jsonhttptest .WithExpectedContentLength (testDataLen ),
183198 jsonhttptest .WithExpectedResponseHeader (api .SwarmFeedIndexHeader , hex .EncodeToString (idBytes )),
199+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexHeader ),
200+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexNextHeader ),
201+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmSocSignatureHeader ),
202+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .ContentDispositionHeader ),
203+ jsonhttptest .WithExpectedResponseHeader (api .ContentTypeHeader , "application/octet-stream" ),
184204 )
185205 })
186206
@@ -190,6 +210,10 @@ func TestFeed_Get(t *testing.T) {
190210 jsonhttptest .WithExpectedResponse (testRootCh .Data ()),
191211 jsonhttptest .WithExpectedContentLength (len (testRootCh .Data ())),
192212 jsonhttptest .WithExpectedResponseHeader (api .SwarmFeedIndexHeader , hex .EncodeToString (idBytes )),
213+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexHeader ),
214+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmFeedIndexNextHeader ),
215+ jsonhttptest .WithExpectedResponseHeader (api .AccessControlExposeHeaders , api .SwarmSocSignatureHeader ),
216+ jsonhttptest .WithExpectedResponseHeader (api .ContentTypeHeader , "application/octet-stream" ),
193217 )
194218 })
195219 })
@@ -267,7 +291,6 @@ func TestFeed_Post(t *testing.T) {
267291 )
268292 })
269293 })
270-
271294}
272295
273296// TestDirectUploadFeed tests that the direct upload endpoint give correct error message in dev mode
0 commit comments