mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
cleanup test data
This commit is contained in:
parent
6dd1fa5d36
commit
dedcb83330
@ -28,19 +28,13 @@ const metadata: Partial<MetaData> = {
|
||||
price: 10,
|
||||
files: [
|
||||
{
|
||||
url: "234ab87234acbd09543085340abffh21983ddhiiee982143827423421",
|
||||
checksum: "efb2c764274b745f5fc37f97c6b0e761",
|
||||
contentLength: 4535431,
|
||||
resourceId: "access-log2018-02-13-15-17-29-18386C502CAEA932",
|
||||
index: 0,
|
||||
url: 'https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip'
|
||||
},
|
||||
{
|
||||
url: "234ab87234acbd6894237582309543085340abffh21983ddhiiee982143827423421",
|
||||
checksum: "085340abffh21495345af97c6b0e761",
|
||||
contentLength: 12324,
|
||||
},
|
||||
{
|
||||
url: "80684089027358963495379879a543085340abffh21983ddhiiee982143827abcc2",
|
||||
},
|
||||
index: 1,
|
||||
url: 'https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip'
|
||||
}
|
||||
],
|
||||
},
|
||||
}
|
||||
|
@ -77,7 +77,6 @@ describe("DDO", () => {
|
||||
},
|
||||
{
|
||||
type: "Consume",
|
||||
// tslint:disable-next-line
|
||||
serviceEndpoint: "http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${pubKey}&serviceId={serviceId}&url={url}",
|
||||
},
|
||||
{
|
||||
@ -101,12 +100,10 @@ describe("DDO", () => {
|
||||
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
links: [
|
||||
{
|
||||
// tslint:disable-next-line
|
||||
sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/"
|
||||
sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/",
|
||||
},
|
||||
{
|
||||
// tslint:disable-next-line
|
||||
sample2: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/"
|
||||
sample2: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/",
|
||||
},
|
||||
{
|
||||
fieldsDescription: "http://data.ceda.ac.uk/badc/ukcp09/",
|
||||
@ -118,18 +115,18 @@ describe("DDO", () => {
|
||||
price: 10,
|
||||
files: [
|
||||
{
|
||||
url: "234ab87234acbd09543085340abffh21983ddhiiee982143827423421",
|
||||
index: 0,
|
||||
checksum: "efb2c764274b745f5fc37f97c6b0e761",
|
||||
contentLength: 4535431,
|
||||
resourceId: "access-log2018-02-13-15-17-29-18386C502CAEA932",
|
||||
},
|
||||
{
|
||||
url: "234ab87234acbd6894237582309543085340abffh21983ddhiiee982143827423421",
|
||||
index: 1,
|
||||
checksum: "085340abffh21495345af97c6b0e761",
|
||||
contentLength: 12324,
|
||||
},
|
||||
{
|
||||
url: "80684089027358963495379879a543085340abffh21983ddhiiee982143827abcc2",
|
||||
index: 2,
|
||||
},
|
||||
],
|
||||
checksum: "",
|
||||
|
1
test/testdata/AccessToken.json
vendored
1
test/testdata/AccessToken.json
vendored
@ -1 +0,0 @@
|
||||
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE1Mzk3ODcxMDEsImV4cCI6NDcyNjk5NjcwNCwiYXVkIjoiIiwic3ViIjoiIiwic2VydmljZV9lbmRwb2ludCI6Imh0dHA6Ly9hZGFzZCIsInJlc291cmNlX2lkIjoiMTIzNDUifQ.2H3TRC3CAToVE9divSckwHi_HNvgOHKrtJPo8128qrKBHTk7YYb0UNfVCuYqwhGR"
|
63
test/testdata/MetaData.ts
vendored
63
test/testdata/MetaData.ts
vendored
@ -1,63 +0,0 @@
|
||||
import { MetaData } from "../../src/ddo/MetaData"
|
||||
|
||||
export const metadataMock: MetaData = {
|
||||
base: {
|
||||
name: "UK Weather information 2011",
|
||||
type: "dataset",
|
||||
description: "Weather information of UK including temperature and humidity",
|
||||
dateCreated: "2012-10-10T17:00:000Z",
|
||||
datePublished: "2012-10-10T17:00:000Z",
|
||||
author: "Met Office",
|
||||
license: "CC-BY",
|
||||
copyrightHolder: "Met Office",
|
||||
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
files: [
|
||||
{
|
||||
index: 0,
|
||||
url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
||||
checksum: "085340abffh21495345af97c6b0e761",
|
||||
contentLength: 12324,
|
||||
},
|
||||
{
|
||||
url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip",
|
||||
},
|
||||
],
|
||||
links: [
|
||||
{
|
||||
// tslint:disable-next-line
|
||||
sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/"
|
||||
},
|
||||
{
|
||||
// tslint:disable-next-line
|
||||
sample2: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/"
|
||||
},
|
||||
{
|
||||
fieldsDescription: "http://data.ceda.ac.uk/badc/ukcp09/",
|
||||
},
|
||||
],
|
||||
inLanguage: "en",
|
||||
categories: ["Economy", "Data Science"],
|
||||
tags: ["weather", "uk", "2011", "temperature", "humidity"],
|
||||
price: 10,
|
||||
checksum: "",
|
||||
},
|
||||
curation: {
|
||||
rating: 0.93,
|
||||
numVotes: 123,
|
||||
schema: "Binary Voting",
|
||||
},
|
||||
additionalInformation: {
|
||||
updateFrequency: "yearly",
|
||||
structuredMarkup: [
|
||||
{
|
||||
uri: "http://skos.um.es/unescothes/C01194/jsonld",
|
||||
mediaType: "application/ld+json",
|
||||
},
|
||||
{
|
||||
uri: "http://skos.um.es/unescothes/C01194/turtle",
|
||||
mediaType: "text/turtle",
|
||||
},
|
||||
],
|
||||
checksum: "",
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user