Skip to content

Commit

Permalink
Adjust test data to be consistent and realistic
Browse files Browse the repository at this point in the history
Reverse order of reference from Jira issue 332 and Jira issue 328, since
previously, Jira issue 332 was referenced before its creation.
Copy GitHub and Jira issue data from 'test_feature/feature' also to
'test_proximity/proximity' to keep the data consistent.

Adjust all effected tests to comply with the changed testing data.

Signed-off-by: Maximilian Löffler <[email protected]>
  • Loading branch information
maxloeffler committed Dec 19, 2023
1 parent 958f272 commit ea4fe8d
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"commented";"Olaf";"[email protected]";"2013-05-25 06:22:23";"open";"[""unresolved""]"
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"commented";"Olaf";"[email protected]";"2013-06-01 06:50:26";"open";"[""unresolved""]"
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"resolution_updated";"Björn";"[email protected]";"2013-06-01 06:53:06";"fixed";"""unresolved"""
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"add_link";"Thomas";"[email protected]";"2013-06-01 06:54:00";"ZEPPELIN-332";"""issue"""
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"referenced_by";"Thomas";"[email protected]";"2013-06-01 06:54:00";"ZEPPELIN-328";"""issue"""
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"referenced_by";"Thomas";"[email protected]";"2017-05-21 12:00:00";"ZEPPELIN-332";"""issue"""
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"add_link";"Thomas";"[email protected]";"2017-05-21 12:00:00";"ZEPPELIN-328";"""issue"""
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"created";"Björn";"[email protected]";"2016-07-12 16:01:30";"open";"[""unresolved""]"
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"commented";"Björn";"[email protected]";"2016-07-12 16:02:30";"open";"[""unresolved""]"
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"commented";"Björn";"[email protected]";"2016-07-15 19:55:39";"open";"[""unresolved""]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
3;"Error in construct.networks.from.list for openssl function networks";"[""issue"", ""bug""]";"closed";"[]";"2016-07-12 15:59:25";"2016-07-12 16:06:30";"[]";"add_link";"Karl";"[email protected]";"2016-08-07 15:37:02";"930af63a030fb92e48eddff01f53284c3eeba80e";"""commit"""
3;"Error in construct.networks.from.list for openssl function networks";"[""issue"", ""bug""]";"closed";"[]";"2016-07-12 15:59:25";"2016-07-12 16:06:30";"[]";"referenced";"Karl";"[email protected]";"2016-08-31 16:45:09";"";""""""
3;"Error in construct.networks.from.list for openssl function networks";"[""issue"", ""bug""]";"closed";"[]";"2016-07-12 15:59:25";"2016-07-12 16:06:30";"[]";"referenced";"Thomas";"[email protected]";"2016-10-05 16:45:09";"";""""""
3;"Error in construct.networks.from.list for openssl function networks";"[""issue"", ""bug""]";"closed";"[]";"2016-07-12 15:59:25";"2016-07-12 16:06:30";"[]";"add_link";"Karl";"[email protected]";"2016-08-07 15:37:02";"6";"""issue"""
3;"Error in construct.networks.from.list for openssl function networks";"[""issue"", ""bug""]";"closed";"[]";"2016-07-12 15:59:25";"2016-07-12 16:06:30";"[]";"add_link";"Thomas";"[email protected]";"2016-08-07 15:30:00";"2";"""issue"""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"mentioned";"udo";"[email protected]";"2016-07-12 15:30:02";"Thomas";"""[email protected]"""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"subscribed";"udo";"[email protected]";"2016-07-12 15:30:02";"Thomas";"""[email protected]"""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"commented";"Thomas";"[email protected]";"2016-07-12 16:03:59";"open";"[]"
Expand All @@ -15,6 +17,7 @@
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"subscribed";"Björn";"[email protected]";"2016-12-07 15:30:02";"udo";"""[email protected]"""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"labeled";"Olaf";"[email protected]";"2017-05-23 12:31:34";"decided";""""""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"commented";"Björn";"[email protected]";"2017-05-23 12:32:39";"open";"[]"
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"referenced_by";"Karl";"[email protected]";"2016-08-07 15:37:02";"3";"""issue"""
"1";"Example pull request 1";"[""pull request""]";"reopened";"[]";"2016-07-14 13:37:00";"";"[]";"created";"Thomas";"[email protected]";"2016-07-12 15:59:25";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"reopened";"[]";"2016-07-14 13:37:00";"";"[]";"commented";"Thomas";"[email protected]";"2016-07-12 15:59:25";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"reopened";"[]";"2016-07-14 13:37:00";"";"[]";"state_updated";"Thomas";"[email protected]";"2016-07-12 15:59:59";"closed";"""open"""
Expand All @@ -25,6 +28,7 @@
"2";"Example pull request 2";"[""pull request""]";"closed";"[]";"2016-07-12 14:59:25";"2016-07-12 16:04:59";"[]";"commented";"Björn";"[email protected]";"2016-07-12 14:59:25";"open";"[]"
"2";"Example pull request 2";"[""pull request""]";"closed";"[]";"2016-07-12 14:59:25";"2016-07-12 16:04:59";"[]";"merged";"Olaf";"[email protected]";"2016-07-12 16:04:59";"";""""""
"2";"Example pull request 2";"[""pull request""]";"closed";"[]";"2016-07-12 14:59:25";"2016-07-12 16:04:59";"[]";"state_updated";"Olaf";"[email protected]";"2016-07-12 16:04:59";"closed";"""open"""
"2";"Example pull request 2";"[""pull request""]";"closed";"[]";"2016-07-12 14:59:25";"2016-07-12 16:04:59";"[]";"referenced_by";"Thomas";"[email protected]";"2016-08-07 15:30:00";"3";"""issue"""
"4";"Example pull request 4";"[""pull request"", ""enhancement""]";"open";"[]";"2016-07-12 16:02:02";"";"[]";"commit_added";"Björn";"[email protected]";"2016-07-12 15:58:59";"72c8dd25d3dd6d18f46e2b26a5f5b1e2e8dc28d0";""""""
"4";"Example pull request 4";"[""pull request"", ""enhancement""]";"open";"[]";"2016-07-12 16:02:02";"";"[]";"created";"Olaf";"[email protected]";"2016-07-12 16:02:02";"open";"[]"
"4";"Example pull request 4";"[""pull request"", ""enhancement""]";"open";"[]";"2016-07-12 16:02:02";"";"[]";"commented";"Olaf";"[email protected]";"2016-07-12 16:02:02";"open";"[]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"commented";"Olaf";"[email protected]";"2013-05-25 06:22:23";"open";"[""unresolved""]"
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"commented";"Olaf";"[email protected]";"2013-06-01 06:50:26";"open";"[""unresolved""]"
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"resolution_updated";"Björn";"[email protected]";"2013-06-01 06:53:06";"fixed";"""unresolved"""
"ZEPPELIN-328";"[ZEPPELIN-328] Interpreter page should clarify the % magic syntax for interpreter group.name";"[""issue"", ""bug""]";"closed";"[""fixed""]";"2013-04-21 23:52:09";"2013-05-25 20:02:08";"[""GUI"", ""Interpreters""]";"referenced_by";"Thomas";"[email protected]";"2017-05-21 12:00:00";"ZEPPELIN-332";"""issue"""
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"add_link";"Thomas";"[email protected]";"2017-05-21 12:00:00";"ZEPPELIN-328";"""issue"""
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"created";"Björn";"[email protected]";"2016-07-12 16:01:30";"open";"[""unresolved""]"
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"commented";"Björn";"[email protected]";"2016-07-12 16:02:30";"open";"[""unresolved""]"
"ZEPPELIN-332";"[ZEPPELIN-332] CNFE when running SQL query against Cassandra temp table";"[""issue"", ""bug""]";"open";"[""unresolved""]";"2016-07-12 16:01:30";"";"[""Interpreters""]";"commented";"Björn";"[email protected]";"2016-07-15 19:55:39";"open";"[""unresolved""]"
Expand Down
12 changes: 6 additions & 6 deletions tests/test-networks-artifact.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,23 @@ patrick::with_parameters_test_that("Network construction of an issue-based artif
## build expected network:
## 1) vertices
vertices = data.frame(name = c("<issue-jira-ZEPPELIN-328>",
"<issue-jira-ZEPPELIN-332>" ,
"<issue-github-2>",
"<issue-github-6>",
"<issue-github-3>",
"<issue-github-1>",
"<issue-jira-ZEPPELIN-332>" ,
"<issue-github-4>"),
kind = "Issue",
type = TYPE.ARTIFACT)
## 2) edges
edges = data.frame(
from = c("<issue-jira-ZEPPELIN-328>", "<issue-github-3>", "<issue-github-3>"),
to = c("<issue-jira-ZEPPELIN-332>", "<issue-github-2>", "<issue-github-6>"),
date = get.date.from.string(c("2013-06-01 06:54:00", "2016-08-07 15:30:00", "2016-08-07 15:37:02")),
from = c("<issue-github-3>", "<issue-github-3>", "<issue-jira-ZEPPELIN-332>"),
to = c("<issue-github-2>", "<issue-github-6>", "<issue-jira-ZEPPELIN-328>"),
date = get.date.from.string(c("2016-08-07 15:30:00", "2016-08-07 15:37:02", "2017-05-21 12:00:00")),
artifact.type = c("IssueEvent", "IssueEvent", "IssueEvent"),
issue.id = c("<issue-jira-ZEPPELIN-328>", "<issue-github-3>", "<issue-github-3>"),
issue.id = c("<issue-github-3>", "<issue-github-3>", "<issue-jira-ZEPPELIN-332>"),
event.name = c("add_link", "add_link", "add_link"),
author.name = c("Thomas", "Thomas", "Karl"),
author.name = c("Thomas", "Karl", "Thomas"),
weight = c(1, 1, 1),
type = TYPE.EDGES.INTRA,
relation = "issue"
Expand Down
26 changes: 13 additions & 13 deletions tests/test-networks-author.R
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ test_that("Network construction of the undirected author-issue network with all
rep("Thomas", 4), rep("Karl", 3), rep("Björn", 7), rep("Olaf", 3), rep("Thomas", 3), rep("Thomas", 7),
rep("Thomas", 3), rep("Björn", 6), rep("Olaf", 2), rep("Olaf", 6), # <issue-github-6>
rep("Thomas", 10), rep("Thomas", 7), rep("Olaf", 11), # <issue-jira-ZEPPELIN-328>
rep("Thomas", 4), rep("Thomas", 4), rep("Björn", 6) # <issue-jira-ZEPPELIN-332>
rep("Björn", 6), rep("Thomas", 4), rep("Thomas", 4) # <issue-jira-ZEPPELIN-332>
),
to = c(rep("Olaf", 5), rep("Björn", 4), rep("Björn", 3), # <issue-github-1>
rep("Björn", 4), rep("Björn", 3), rep("Olaf", 3), # <issue-github-2>
Expand All @@ -504,7 +504,7 @@ test_that("Network construction of the undirected author-issue network with all
rep("udo", 4), rep("udo", 3), rep("udo", 7), rep("udo", 3), rep("Karl", 3), rep("Björn", 7),
rep("Olaf", 3), rep("Karl", 6), rep("Karl", 2), rep("Björn", 6), # <issue-github-6>
rep("Björn", 10), rep("Olaf", 7), rep("Björn", 11), # <issue-jira-ZEPPELIN-328>
rep("Björn", 4), rep("Max", 4), rep("Max", 6) # <issue-jira-ZEPPELIN-332>
rep("Max", 6), rep("Björn", 4), rep("Max", 4) # <issue-jira-ZEPPELIN-332>
),
date = get.date.from.string(c( "2016-07-12 15:59:25", "2016-07-12 15:59:25", "2016-07-12 15:59:59", # <issue-github-1>
"2016-07-12 16:01:01", "2016-07-14 13:37:00", "2016-07-12 15:59:25",
Expand Down Expand Up @@ -536,21 +536,21 @@ test_that("Network construction of the undirected author-issue network with all
"2016-08-07 15:37:02", "2017-05-23 12:31:34", "2016-08-31 15:30:02",
"2016-10-05 15:30:02", "2016-12-07 15:30:02", "2016-12-07 15:30:02",
"2017-05-23 12:32:39", "2017-05-23 12:31:34",
"2013-04-21 23:52:09", "2013-04-21 23:52:09", "2013-06-01 06:54:00", # <issue-jira-ZEPPELIN-328>
"2013-04-21 23:52:09", "2013-04-21 23:52:09", "2017-05-21 12:00:00", # <issue-jira-ZEPPELIN-328>
"2013-05-05 21:46:30", "2013-05-05 21:49:21", "2013-05-05 21:49:34",
"2013-05-06 01:04:34", "2013-05-25 03:48:41", "2013-05-25 04:08:07",
"2013-06-01 06:53:06", "2013-04-21 23:52:09", "2013-04-21 23:52:09",
"2013-06-01 06:54:00", "2013-05-25 03:25:06", "2013-05-25 06:06:53",
"2017-05-21 12:00:00", "2013-05-25 03:25:06", "2013-05-25 06:06:53",
"2013-05-25 06:22:23", "2013-06-01 06:50:26", "2013-05-05 21:46:30",
"2013-05-05 21:49:21", "2013-05-05 21:49:34", "2013-05-06 01:04:34",
"2013-05-25 03:48:41", "2013-05-25 04:08:07", "2013-06-01 06:53:06",
"2013-05-25 03:25:06", "2013-05-25 06:06:53", "2013-05-25 06:22:23",
"2013-06-01 06:50:26",
"2013-06-01 06:54:00", "2016-07-12 16:01:30", "2016-07-12 16:02:30", # <issue-jira-ZEPPELIN-332>
"2016-07-15 19:55:39", "2013-06-01 06:54:00", "2016-07-15 20:07:47",
"2016-07-27 20:12:08", "2016-07-28 06:27:52", "2016-07-12 16:01:30",
"2016-07-12 16:02:30", "2016-07-15 19:55:39", "2016-07-15 20:07:47",
"2016-07-27 20:12:08", "2016-07-28 06:27:52"
"2016-07-12 16:01:30", "2016-07-12 16:02:30", "2016-07-15 19:55:39", # <issue-jira-ZEPPELIN-332>
"2016-07-15 20:07:47", "2016-07-27 20:12:08", "2016-07-28 06:27:52",
"2016-07-12 16:01:30", "2016-07-12 16:02:30", "2016-07-15 19:55:39",
"2017-05-21 12:00:00", "2016-07-15 20:07:47", "2016-07-27 20:12:08",
"2016-07-28 06:27:52", "2017-05-21 12:00:00"
)),
artifact.type = "IssueEvent",
issue.id = c(rep("<issue-github-1>", 12), rep("<issue-github-2>", 10), rep("<issue-github-3>", 18),
Expand All @@ -570,12 +570,12 @@ test_that("Network construction of the undirected author-issue network with all
"subscribed", "mentioned", "subscribed", "commented", "commented", "add_link", "labeled", "referenced_by",
"mentioned", "subscribed", "mentioned", "subscribed", "commented", "referenced_by", "labeled",
"mentioned", "subscribed", "mentioned", "subscribed", "commented", "labeled",
"created", "commented", "add_link", "commented", "commented", "commented", "commented", # <issue-jira-ZEPPELIN-328>
"commented", "commented", "resolution_updated", "created", "commented", "add_link", "commented", "commented",
"created", "commented", "referenced_by", "commented", "commented", "commented", "commented", # <issue-jira-ZEPPELIN-328>
"commented", "commented", "resolution_updated", "created", "commented", "referenced_by", "commented", "commented",
"commented", "commented", "commented", "commented", "commented", "commented", "commented",
"commented", "resolution_updated", "commented", "commented", "commented", "commented",
"referenced_by", "created", "commented", "commented", "referenced_by", "commented", # <issue-jira-ZEPPELIN-332>
"commented", "commented", "created", "commented", "commented", "commented", "commented", "commented"
"created", "commented", "commented", "commented", "commented", "commented", "created", # <issue-jira-ZEPPELIN-332>
"commented", "commented", "add_link", "commented", "commented", "commented", "add_link"
),
weight = 1,
type = TYPE.EDGES.INTRA,
Expand Down
Loading

0 comments on commit ea4fe8d

Please sign in to comment.