Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
776ddb95
Commit
776ddb95
authored
Jul 22, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue specs
parent
4ed23ba8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+1
-0
spec/workers/gitlab/jira_import/import_issue_worker_spec.rb
spec/workers/gitlab/jira_import/import_issue_worker_spec.rb
+2
-1
No files found.
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
776ddb95
...
@@ -32,6 +32,7 @@ Issue:
...
@@ -32,6 +32,7 @@ Issue:
-
discussion_locked
-
discussion_locked
-
health_status
-
health_status
-
external_key
-
external_key
-
issue_type
Event
:
Event
:
-
id
-
id
-
target_type
-
target_type
...
...
spec/workers/gitlab/jira_import/import_issue_worker_spec.rb
View file @
776ddb95
...
@@ -24,7 +24,8 @@ RSpec.describe Gitlab::JiraImport::ImportIssueWorker do
...
@@ -24,7 +24,8 @@ RSpec.describe Gitlab::JiraImport::ImportIssueWorker do
build
(
:issue
,
project_id:
project
.
id
,
title:
'jira issue'
)
build
(
:issue
,
project_id:
project
.
id
,
title:
'jira issue'
)
.
as_json
.
merge
(
.
as_json
.
merge
(
'label_ids'
=>
[
jira_issue_label_1
.
id
,
jira_issue_label_2
.
id
],
'assignee_ids'
=>
assignee_ids
'label_ids'
=>
[
jira_issue_label_1
.
id
,
jira_issue_label_2
.
id
],
'assignee_ids'
=>
assignee_ids
).
compact
).
except
(
'issue_type'
)
.
compact
end
end
context
'when any exception raised while inserting to DB'
do
context
'when any exception raised while inserting to DB'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment