@@ -138,7 +138,9 @@ func NewHTTPClientWithSessionToken(t *testing.T, reg *driver.RegistryDefault, se
138
138
139
139
func NewHTTPClientWithArbitrarySessionToken (t * testing.T , reg * driver.RegistryDefault ) * http.Client {
140
140
ctx := context .Background ()
141
+ header := make (map [string ][]string , 0 )
141
142
s , err := session .NewActiveSession (ctx ,
143
+ header ,
142
144
& identity.Identity {ID : x .NewUUID (), State : identity .StateActive },
143
145
NewSessionLifespanProvider (time .Hour ),
144
146
time .Now (),
@@ -152,7 +154,9 @@ func NewHTTPClientWithArbitrarySessionToken(t *testing.T, reg *driver.RegistryDe
152
154
153
155
func NewHTTPClientWithArbitrarySessionCookie (t * testing.T , reg * driver.RegistryDefault ) * http.Client {
154
156
ctx := context .Background ()
157
+ header := make (map [string ][]string , 0 )
155
158
s , err := session .NewActiveSession (ctx ,
159
+ header ,
156
160
& identity.Identity {ID : x .NewUUID (), State : identity .StateActive },
157
161
NewSessionLifespanProvider (time .Hour ),
158
162
time .Now (),
@@ -166,7 +170,9 @@ func NewHTTPClientWithArbitrarySessionCookie(t *testing.T, reg *driver.RegistryD
166
170
167
171
func NewNoRedirectHTTPClientWithArbitrarySessionCookie (t * testing.T , reg * driver.RegistryDefault ) * http.Client {
168
172
ctx := context .Background ()
173
+ header := make (map [string ][]string , 0 )
169
174
s , err := session .NewActiveSession (ctx ,
175
+ header ,
170
176
& identity.Identity {ID : x .NewUUID (), State : identity .StateActive },
171
177
NewSessionLifespanProvider (time .Hour ),
172
178
time .Now (),
@@ -180,7 +186,10 @@ func NewNoRedirectHTTPClientWithArbitrarySessionCookie(t *testing.T, reg *driver
180
186
181
187
func NewHTTPClientWithIdentitySessionCookie (t * testing.T , reg * driver.RegistryDefault , id * identity.Identity ) * http.Client {
182
188
ctx := context .Background ()
183
- s , err := session .NewActiveSession (ctx , id ,
189
+ header := make (map [string ][]string , 0 )
190
+ s , err := session .NewActiveSession (ctx ,
191
+ header ,
192
+ id ,
184
193
NewSessionLifespanProvider (time .Hour ),
185
194
time .Now (),
186
195
identity .CredentialsTypePassword ,
@@ -193,7 +202,10 @@ func NewHTTPClientWithIdentitySessionCookie(t *testing.T, reg *driver.RegistryDe
193
202
194
203
func NewHTTPClientWithIdentitySessionToken (t * testing.T , reg * driver.RegistryDefault , id * identity.Identity ) * http.Client {
195
204
ctx := context .Background ()
196
- s , err := session .NewActiveSession (ctx , id ,
205
+ header := make (map [string ][]string , 0 )
206
+ s , err := session .NewActiveSession (ctx ,
207
+ header ,
208
+ id ,
197
209
NewSessionLifespanProvider (time .Hour ),
198
210
time .Now (),
199
211
identity .CredentialsTypePassword ,
0 commit comments