|
163 | 163 | :operation "UPDATE_FIELD"
|
164 | 164 | :update-field "S3Link"
|
165 | 165 | :updates [["SC:AE_5DSno.002:30500511" "s3://url30500511"]
|
166 |
| - ["SC:AE_5DSno.002:30500512" "S3://url1, S3://url2,S3://url3"] |
| 166 | + ["SC:AE_5DSno.002:30500512" "s3://url1, s3://url2,s3://url3"] |
167 | 167 | ["SC:AE_5DSno.002:30500514" "s3://url30500514"]]}
|
168 | 168 | response (ingest/bulk-update-granules "PROV1" bulk-update bulk-update-options)
|
169 | 169 | {:keys [status task-id]} response]
|
|
207 | 207 | (let [bulk-update {:name "add s3 links"
|
208 | 208 | :operation "UPDATE_FIELD"
|
209 | 209 | :update-field "S3Link"
|
210 |
| - :updates [["SC:AE_5DSno.002:30500511" "S3://url30500511"] |
| 210 | + :updates [["SC:AE_5DSno.002:30500511" "s3://url30500511"] |
211 | 211 | ["SC:AE_5DSno.002:30500512" "s3://url30500512"]
|
212 | 212 | ["SC:non-existent-ur" "s3://url30500513"]]}
|
213 | 213 | response (ingest/bulk-update-granules "PROV1" bulk-update bulk-update-options)
|
|
236 | 236 | :operation "UPDATE_FIELD"
|
237 | 237 | :update-field "S3Link"
|
238 | 238 | :updates [["SC:AE_5DSno.002:30500511" "https://foo"]
|
239 |
| - ["SC:AE_5DSno.002:30500512" "s3://foo,https://bar"]]} |
| 239 | + ["SC:AE_5DSno.002:30500512" "s3://foo,S3://bar"]]} |
240 | 240 | response (ingest/bulk-update-granules "PROV1" bulk-update bulk-update-options)
|
241 | 241 | {:keys [status task-id]} response]
|
242 | 242 | (index/wait-until-indexed)
|
|
253 | 253 | :status-message "Invalid URL value, each S3 url must start with s3://, but was https://foo"}
|
254 | 254 | {:granule-ur "SC:AE_5DSno.002:30500512"
|
255 | 255 | :status "FAILED"
|
256 |
| - :status-message "Invalid URL value, each S3 url must start with s3://, but was https://bar"}] |
| 256 | + :status-message "Invalid URL value, each S3 url must start with s3://, but was S3://bar"}] |
257 | 257 | granule-statuses))))))))
|
258 | 258 |
|
259 | 259 | (deftest add-opendap-url
|
|
0 commit comments