summaryrefslogtreecommitdiffstats
path: root/test/fixtures
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-05-06 00:37:56 +0000
committerGo MAEDA <maeda@farend.jp>2020-05-06 00:37:56 +0000
commit43cc93755ad743e44cf9ef99b45790506c5f3c75 (patch)
treefbaf5624a7ff03a62ad7e5839b9035c2cc788464 /test/fixtures
parent92fdcc1ce4f0a7d8555a245e8e4d016b67d4d998 (diff)
downloadredmine-43cc93755ad743e44cf9ef99b45790506c5f3c75.tar.gz
redmine-43cc93755ad743e44cf9ef99b45790506c5f3c75.zip
Support issue relations when importing issues (#28198).
Patch by Gregor Schmidt and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19753 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/files/import_subtasks.csv10
-rw-r--r--test/fixtures/files/import_subtasks_with_relations.csv5
-rw-r--r--test/fixtures/files/import_subtasks_with_unique_id.csv15
3 files changed, 20 insertions, 10 deletions
diff --git a/test/fixtures/files/import_subtasks.csv b/test/fixtures/files/import_subtasks.csv
index 1e789514e..d00ab6cc3 100644
--- a/test/fixtures/files/import_subtasks.csv
+++ b/test/fixtures/files/import_subtasks.csv
@@ -1,5 +1,5 @@
-row;tracker;subject;parent
-1;bug;Root;
-2;bug;Child 1;1
-3;bug;Grand-child;4
-4;bug;Child 2;1
+row;tracker;subject;parent;simple relation;delayed relation
+1;bug;Root;;;
+2;bug;Child 1;1;1,4;1 2d
+3;bug;Grand-child;4;4;4 -1d
+4;bug;Child 2;1;1;1 1d
diff --git a/test/fixtures/files/import_subtasks_with_relations.csv b/test/fixtures/files/import_subtasks_with_relations.csv
new file mode 100644
index 000000000..af7605b34
--- /dev/null
+++ b/test/fixtures/files/import_subtasks_with_relations.csv
@@ -0,0 +1,5 @@
+row;tracker;subject;start;due;parent;follows
+1;bug;2nd Child;2020-01-12;2020-01-20;3;2 1d
+2;bug;1st Child;2020-01-01;2020-01-10;3;
+3;bug;Parent;2020-01-01;2020-01-31;;
+4;bug;3rd Child;2020-01-22;2020-01-31;3;1 1d
diff --git a/test/fixtures/files/import_subtasks_with_unique_id.csv b/test/fixtures/files/import_subtasks_with_unique_id.csv
index bd01e7298..efd5d0d82 100644
--- a/test/fixtures/files/import_subtasks_with_unique_id.csv
+++ b/test/fixtures/files/import_subtasks_with_unique_id.csv
@@ -1,5 +1,10 @@
-id;tracker;subject;parent
-RED-I;bug;Root;
-RED-II;bug;Child 1;RED-I
-RED-III;bug;Grand-child;RED-IV
-RED-IV;bug;Child 2;RED-I
+id;tracker;subject;parent;follows
+RED-IV;bug;Grand-child;RED-III;
+RED-III;bug;Child 2;RED-I;RED-II 1d
+RED-II;bug;Child 1;RED-I;
+RED-I;bug;Root;;
+BLUE-I;bug;Root;;
+BLUE-II;bug;Child 1;BLUE-I;
+BLUE-III;bug;Child 2;BLUE-I;BLUE-II 1d
+BLUE-IV;bug;Grand-child;BLUE-III;
+GREEN-II;bug;Thing;#1;#2 3d;