Skip to content

Commit 0739c42

Browse files
committed
replace V0001.1__dev-data-users.sql test data migration by json fixture file
1 parent c6386c9 commit 0739c42

2 files changed

Lines changed: 93 additions & 61 deletions

File tree

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
[
2+
{
3+
"_class": "org.fairdatapoint.entity.user.UserAccount",
4+
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9",
5+
"firstName": "Albert",
6+
"lastName": "Einstein",
7+
"email": "albert.einstein@example.org",
8+
"passwordHash": "$2a$10$hZF1abbZ48Tf.3RndC9W6OlDt6gnBoD/2HbzJayTs6be7d.5DbpnW",
9+
"role": "USER"
10+
},
11+
{
12+
"_class": "org.fairdatapoint.entity.user.UserAccount",
13+
"uuid": "b5b92c69-5ed9-4054-954d-0121c29b6800",
14+
"firstName": "Nikola",
15+
"lastName": "Tesla",
16+
"email": "nikola.tesla@example.org",
17+
"passwordHash": "$2a$10$tMbZUZg9AbYL514R.hZ0tuzvfZJR5NQhSVeJPTQhNwPf6gv/cvrna",
18+
"role": "USER"
19+
},
20+
{
21+
"_class": "org.fairdatapoint.entity.user.UserAccount",
22+
"uuid": "8d1a4c06-bb0e-4d03-a01f-14fa49bbc152",
23+
"firstName": "Isaac",
24+
"lastName": "Newton",
25+
"email": "isaac.newton@example.org",
26+
"passwordHash": "$2a$10$DLkI7NAZDzWVaKG1lVtloeoPNLPoAgDDBqQKQiSAYDZXrf2QKkuHC",
27+
"role": "USER"
28+
},
29+
{
30+
"_class": "org.fairdatapoint.entity.user.UserAccount",
31+
"uuid": "95589e50-d261-492b-8852-9324e9a66a42",
32+
"firstName": "Admin",
33+
"lastName": "von Universe",
34+
"email": "admin@example.org",
35+
"passwordHash": "$2a$10$L.0OZ8QjV3yLhoCDvU04gu.WP1wGQih41MsBdvtQOshJJntaugBxe",
36+
"role": "ADMIN"
37+
},
38+
{
39+
"_class": "org.fairdatapoint.entity.apikey.ApiKey",
40+
"uuid": "a1c00673-24c5-4e0a-bdbe-22e961ee7548",
41+
"token": "a274793046e34a219fd0ea6362fcca61a001500b71724f4c973a017031653c20",
42+
"userAccount": {
43+
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9"
44+
}
45+
},
46+
{
47+
"_class": "org.fairdatapoint.entity.apikey.ApiKey",
48+
"uuid": "62657760-21fe-488c-a0ea-f612a70493da",
49+
"token": "dd5dc3b53b6145cfa9f6c58b72ebad21cd2f860ace62451ba4e3c74a0e63540a",
50+
"userAccount": {
51+
"uuid": "b5b92c69-5ed9-4054-954d-0121c29b6800"
52+
}
53+
},
54+
{
55+
"_class" : "org.fairdatapoint.entity.search.SearchSavedQuery",
56+
"uuid": "d31e3da1-2cfa-4b55-a8cb-71d1acf01aef",
57+
"name": "All datasets",
58+
"description": "Quickly query all datasets (DCAT)",
59+
"type": "PUBLIC",
60+
"varPrefixes": "PREFIX dcat: <http://www.w3.org/ns/dcat#>",
61+
"varGraphPattern": "?entity rdf:type dcat:Dataset .",
62+
"varOrdering": "ASC(?title)",
63+
"userAccount": {
64+
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9"
65+
}
66+
},
67+
{
68+
"_class" : "org.fairdatapoint.entity.search.SearchSavedQuery",
69+
"uuid": "c7d0b6a0-5b0a-4b0e-9b0a-9b0a9b0a9b0a",
70+
"name": "All distributions",
71+
"description": "Quickly query all distributions (DCAT)",
72+
"type": "INTERNAL",
73+
"varPrefixes": "PREFIX dcat: <http://www.w3.org/ns/dcat#>",
74+
"varGraphPattern": "?entity rdf:type dcat:Distribution .",
75+
"varOrdering": "ASC(?title)",
76+
"userAccount": {
77+
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9"
78+
}
79+
},
80+
{
81+
"_class" : "org.fairdatapoint.entity.search.SearchSavedQuery",
82+
"uuid": "97da9119-834e-4687-8321-3df157547178",
83+
"name": "Things with data",
84+
"description": "This is private query of Nikola Tesla!",
85+
"type": "PRIVATE",
86+
"varPrefixes": "PREFIX dcat: <http://www.w3.org/ns/dcat#>",
87+
"varGraphPattern": "?entity ?relationPredicate ?relationObject .\nFILTER isLiteral(?relationObject)\nFILTER CONTAINS(LCASE(str(?relationObject)), LCASE(\"data\"))",
88+
"varOrdering": "ASC(?title)",
89+
"userAccount": {
90+
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9"
91+
}
92+
}
93+
]

src/test/resources/test/db/migration/V0001.1__dev-data-users.sql

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)