|
158 | 158 | "non-matching RelatedUrls in metadata, on-prem url update"
|
159 | 159 | "http://example.com/foo"
|
160 | 160 | {:RelatedUrls [doc-related-url]}
|
161 |
| - {:RelatedUrls [{:URL "http://example.com/foo" |
| 161 | + {:RelatedUrls [doc-related-url |
| 162 | + {:URL "http://example.com/foo" |
162 | 163 | :Type "USE SERVICE API"
|
163 |
| - :Subtype "OPENDAP DATA"} |
164 |
| - doc-related-url]} |
| 164 | + :Subtype "OPENDAP DATA"}]} |
165 | 165 |
|
166 | 166 | "non-matching RelatedUrls in metadata, cloud url update"
|
167 | 167 | "https://opendap.earthdata.nasa.gov/foo"
|
168 | 168 | {:RelatedUrls [doc-related-url]}
|
169 |
| - {:RelatedUrls [{:URL "https://opendap.earthdata.nasa.gov/foo" |
| 169 | + {:RelatedUrls [doc-related-url |
| 170 | + {:URL "https://opendap.earthdata.nasa.gov/foo" |
170 | 171 | :Type "USE SERVICE API"
|
171 |
| - :Subtype "OPENDAP DATA"} |
172 |
| - doc-related-url]} |
| 172 | + :Subtype "OPENDAP DATA"}]} |
173 | 173 |
|
174 | 174 | "non-matching RelatedUrls in metadata, cloud url and on-prem url update"
|
175 | 175 | "http://example.com/foo, https://opendap.earthdata.nasa.gov/foo"
|
176 | 176 | {:RelatedUrls [doc-related-url]}
|
177 |
| - {:RelatedUrls [{:URL "http://example.com/foo" |
178 |
| - :Type "USE SERVICE API" |
179 |
| - :Subtype "OPENDAP DATA"} |
| 177 | + {:RelatedUrls [doc-related-url |
180 | 178 | {:URL "https://opendap.earthdata.nasa.gov/foo"
|
181 | 179 | :Type "USE SERVICE API"
|
182 | 180 | :Subtype "OPENDAP DATA"}
|
183 |
| - doc-related-url]})) |
| 181 | + {:URL "http://example.com/foo" |
| 182 | + :Type "USE SERVICE API" |
| 183 | + :Subtype "OPENDAP DATA"}]} |
| 184 | + |
| 185 | + "existing cloud, appending on-prem" |
| 186 | + "https://example.com/addr" |
| 187 | + {:RelatedUrls |
| 188 | + [{:URL "https://opendap.uat.earthdata.nasa.gov/to_be_updated" |
| 189 | + :Type "GET DATA" |
| 190 | + :Subtype "OPENDAP DATA" |
| 191 | + :Description "cloud OPeNDAP Documentation"}]} |
| 192 | + {:RelatedUrls |
| 193 | + [{:URL "https://opendap.uat.earthdata.nasa.gov/to_be_updated" |
| 194 | + :Type "GET DATA" |
| 195 | + :Subtype "OPENDAP DATA" |
| 196 | + :Description "cloud OPeNDAP Documentation"} |
| 197 | + {:URL "https://example.com/addr" |
| 198 | + :Type "USE SERVICE API" |
| 199 | + :Subtype "OPENDAP DATA"}]} |
| 200 | + |
| 201 | + "existing on-prem, appending cloud" |
| 202 | + "https://opendap.uat.earthdata.nasa.gov/new" |
| 203 | + {:RelatedUrls |
| 204 | + [{:URL "https://example.com/addr" |
| 205 | + :Type "GET DATA" |
| 206 | + :Subtype "OPENDAP DATA"}]} |
| 207 | + {:RelatedUrls |
| 208 | + [{:URL "https://example.com/addr" |
| 209 | + :Type "GET DATA" |
| 210 | + :Subtype "OPENDAP DATA"} |
| 211 | + {:URL "https://opendap.uat.earthdata.nasa.gov/new" |
| 212 | + :Type "USE SERVICE API" |
| 213 | + :Subtype "OPENDAP DATA"}]})) |
184 | 214 |
|
185 | 215 | (testing "throws when appropriate"
|
186 | 216 | (are3 [url-value source]
|
|
0 commit comments