[Notice] Announcing the End of Demo Server [Read me]

Fix constraint violation by test-data.yml.
* In test-data.yml, Remove entities already added by initial-data.yml. * Make Global.insertTestData insert "users" entities.
@7f473f070361ba89369ab99484758cfedc01e569
--- app/Global.java
+++ app/Global.java
... | ... | @@ -53,8 +53,8 @@ |
53 | 53 |
|
54 | 54 |
private static void insertTestData() { |
55 | 55 |
String[] entityNames = { |
56 |
- "projects", "milestones", "issues", "issueComments", "postings", |
|
57 |
- "postingComments", "projectUsers" |
|
56 |
+ "users", "projects", "milestones", "issues", "issueComments", |
|
57 |
+ "postings", "postingComments", "projectUsers" |
|
58 | 58 |
}; |
59 | 59 |
|
60 | 60 |
insertDataFromYaml("test-data.yml", entityNames); |
--- conf/test-data.yml
+++ conf/test-data.yml
... | ... | @@ -1,14 +1,6 @@ |
1 | 1 |
# Users |
2 | 2 |
users: |
3 | 3 |
- !!models.User |
4 |
- name: Site admin |
|
5 |
- loginId: admin |
|
6 |
- password: 5v4TVjzLo1bqullT1CU4/bENUNOUfX97WpdunGLvJvw= |
|
7 |
- passwordSalt: '[B@1032a4' |
|
8 |
- email: admin@nhn.com |
|
9 |
- avatarUrl: /assets/images/default-avatar-128.png |
|
10 |
- createdDate: 2012-11-01 08:00:00 |
|
11 |
- - !!models.User |
|
12 | 4 |
name: Hobi |
13 | 5 |
loginId: hobi |
14 | 6 |
password: ys9gr1Xet/DL9RpmgczOlJg+txPvqnZCaw/z55gb0KU= |
... | ... | @@ -40,11 +32,6 @@ |
40 | 32 |
email: ejlee@nhn.com |
41 | 33 |
avatarUrl: /assets/images/default-avatar-128.png |
42 | 34 |
createdDate: 2012-05-01 08:00:00 |
43 |
- |
|
44 |
-siteAdmins: |
|
45 |
- - !!models.SiteAdmin |
|
46 |
- admin: !!models.User |
|
47 |
- id: 1 |
|
48 | 35 |
|
49 | 36 |
# Projects |
50 | 37 |
projects: |
... | ... | @@ -340,15 +327,6 @@ |
340 | 327 |
state: CLOSED |
341 | 328 |
project: !!models.Project |
342 | 329 |
id: 3 |
343 |
- |
|
344 |
-# Role |
|
345 |
-roles: |
|
346 |
- - !!models.Role |
|
347 |
- name: manager |
|
348 |
- active: true |
|
349 |
- - !!models.Role |
|
350 |
- name: member |
|
351 |
- active: true |
|
352 | 330 |
|
353 | 331 |
# ProjectUser |
354 | 332 |
projectUsers: |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?