1
0
Fork 0

[eosc_services] unit test adaptation

This commit is contained in:
Claudio Atzori 2022-05-09 16:05:06 +02:00
parent 89657a0b78
commit 378020e30a
5 changed files with 5 additions and 17 deletions

View File

@ -136,8 +136,8 @@ public class MigrateDbEntitiesApplicationTest {
assertEquals(getValueAsString("releaseenddate", fields), ds.getReleasestartdate()); assertEquals(getValueAsString("releaseenddate", fields), ds.getReleasestartdate());
assertEquals(getValueAsString("missionstatementurl", fields), ds.getMissionstatementurl()); assertEquals(getValueAsString("missionstatementurl", fields), ds.getMissionstatementurl());
assertEquals(false, ds.getDataprovider().getValue()); assertEquals(null, ds.getDataprovider());
assertEquals(false, ds.getServiceprovider().getValue()); assertEquals(null, ds.getServiceprovider());
assertEquals(getValueAsString("databaseaccesstype", fields), ds.getDatabaseaccesstype()); assertEquals(getValueAsString("databaseaccesstype", fields), ds.getDatabaseaccesstype());
assertEquals(getValueAsString("datauploadtype", fields), ds.getDatauploadtype()); assertEquals(getValueAsString("datauploadtype", fields), ds.getDatauploadtype());

View File

@ -1,6 +1,6 @@
[ [
{ {
"field": "datasource", "field": "service",
"type": "string", "type": "string",
"value": "openaire____::revistasunicauca" "value": "openaire____::revistasunicauca"
}, },

View File

@ -1,6 +1,6 @@
[ [
{ {
"field": "datasourceid", "field": "id",
"type": "string", "type": "string",
"value": "274269ac6f3b::2579-5449" "value": "274269ac6f3b::2579-5449"
}, },
@ -268,13 +268,6 @@
"Research Data" "Research Data"
] ]
}, },
{
"field": "providedproducttypes",
"type": "array",
"value": [
]
},
{ {
"field": "jurisdiction", "field": "jurisdiction",
"type": "string", "type": "string",
@ -285,11 +278,6 @@
"type": "boolean", "type": "boolean",
"value": true "value": true
}, },
{
"field": "knowledgegraph",
"type": "boolean",
"value": true
},
{ {
"field": "contentpolicies", "field": "contentpolicies",
"type": "array", "type": "array",