[mocks][xs]: add reosurce urls and add 'package_show' mock for 'population' dataset.
This commit is contained in:
@@ -10,7 +10,9 @@ const gdp = {
|
|||||||
"title": "GDP data",
|
"title": "GDP data",
|
||||||
"format": "csv",
|
"format": "csv",
|
||||||
"created": "2019-03-07T12:00:36.273495",
|
"created": "2019-03-07T12:00:36.273495",
|
||||||
"last_modified": "2020-05-07T12:00:36.273495"
|
"last_modified": "2020-05-07T12:00:36.273495",
|
||||||
|
"datastore_active": false,
|
||||||
|
"url": "https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"organization": {
|
"organization": {
|
||||||
@@ -34,7 +36,9 @@ const population = {
|
|||||||
"title": "Population data",
|
"title": "Population data",
|
||||||
"format": "csv",
|
"format": "csv",
|
||||||
"created": "2019-03-07T12:00:36.273495",
|
"created": "2019-03-07T12:00:36.273495",
|
||||||
"last_modified": "2020-05-07T12:00:36.273495"
|
"last_modified": "2020-05-07T12:00:36.273495",
|
||||||
|
"datastore_active": true,
|
||||||
|
"url": "https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"organization": {
|
"organization": {
|
||||||
@@ -92,6 +96,9 @@ module.exports.initMocks = function() {
|
|||||||
"success": true,
|
"success": true,
|
||||||
"result": gdp
|
"result": gdp
|
||||||
})
|
})
|
||||||
|
.get('/package_show?id=population')
|
||||||
// "organization_show" mocks
|
.reply(200, {
|
||||||
|
"success": true,
|
||||||
|
"result": population
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user