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
b8293b2f
Commit
b8293b2f
authored
May 20, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename bamboo service
Renames `bamboo_service` to `bamboo_integration`
parent
a16d508e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
app/models/integration.rb
app/models/integration.rb
+1
-1
app/models/project.rb
app/models/project.rb
+1
-1
spec/lib/gitlab/import_export/all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+1
-1
spec/models/integrations/bamboo_spec.rb
spec/models/integrations/bamboo_spec.rb
+21
-21
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
No files found.
app/models/integration.rb
View file @
b8293b2f
...
...
@@ -229,7 +229,7 @@ class Integration < ApplicationRecord
end
# used as part of the renaming effort
RENAMED_TO_INTEGRATION
=
%w[asana assembla
]
RENAMED_TO_INTEGRATION
=
%w[asana assembla
bamboo]
.
freeze
def
self
.
available_integration_names
(
**
args
)
available_services_names
(
**
args
)
...
...
app/models/project.rb
View file @
b8293b2f
...
...
@@ -157,7 +157,7 @@ class Project < ApplicationRecord
# Project integrations
has_one
:asana_integration
,
class_name:
'Integrations::Asana'
has_one
:assembla_integration
,
class_name:
'Integrations::Assembla'
has_one
:bamboo_
service
,
class_name:
'Integrations::Bamboo'
has_one
:bamboo_
integration
,
class_name:
'Integrations::Bamboo'
has_one
:bugzilla_service
,
class_name:
'Integrations::Bugzilla'
has_one
:buildkite_service
,
class_name:
'Integrations::Buildkite'
has_one
:campfire_service
,
class_name:
'Integrations::Campfire'
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
b8293b2f
...
...
@@ -384,7 +384,7 @@ project:
-
hangouts_chat_service
-
unify_circuit_service
-
buildkite_service
-
bamboo_
service
-
bamboo_
integration
-
teamcity_service
-
pushover_service
-
jira_service
...
...
spec/models/integrations/bamboo_spec.rb
View file @
b8293b2f
...
...
@@ -82,45 +82,45 @@ RSpec.describe Integrations::Bamboo, :use_clean_rails_memory_store_caching do
describe
'before_update :reset_password'
do
context
'when a password was previously set'
do
it
'resets password if url changed'
do
bamboo_
service
=
service
bamboo_
integration
=
service
bamboo_
service
.
bamboo_url
=
'http://gitlab1.com'
bamboo_
service
.
save!
bamboo_
integration
.
bamboo_url
=
'http://gitlab1.com'
bamboo_
integration
.
save!
expect
(
bamboo_
service
.
password
).
to
be_nil
expect
(
bamboo_
integration
.
password
).
to
be_nil
end
it
'does not reset password if username changed'
do
bamboo_
service
=
service
bamboo_
integration
=
service
bamboo_
service
.
username
=
'some_name'
bamboo_
service
.
save!
bamboo_
integration
.
username
=
'some_name'
bamboo_
integration
.
save!
expect
(
bamboo_
service
.
password
).
to
eq
(
'password'
)
expect
(
bamboo_
integration
.
password
).
to
eq
(
'password'
)
end
it
"does not reset password if new url is set together with password, even if it's the same password"
do
bamboo_
service
=
service
bamboo_
integration
=
service
bamboo_
service
.
bamboo_url
=
'http://gitlab_edited.com'
bamboo_
service
.
password
=
'password'
bamboo_
service
.
save!
bamboo_
integration
.
bamboo_url
=
'http://gitlab_edited.com'
bamboo_
integration
.
password
=
'password'
bamboo_
integration
.
save!
expect
(
bamboo_
service
.
password
).
to
eq
(
'password'
)
expect
(
bamboo_
service
.
bamboo_url
).
to
eq
(
'http://gitlab_edited.com'
)
expect
(
bamboo_
integration
.
password
).
to
eq
(
'password'
)
expect
(
bamboo_
integration
.
bamboo_url
).
to
eq
(
'http://gitlab_edited.com'
)
end
end
it
'saves password if new url is set together with password when no password was previously set'
do
bamboo_
service
=
service
bamboo_
service
.
password
=
nil
bamboo_
integration
=
service
bamboo_
integration
.
password
=
nil
bamboo_
service
.
bamboo_url
=
'http://gitlab_edited.com'
bamboo_
service
.
password
=
'password'
bamboo_
service
.
save!
bamboo_
integration
.
bamboo_url
=
'http://gitlab_edited.com'
bamboo_
integration
.
password
=
'password'
bamboo_
integration
.
save!
expect
(
bamboo_
service
.
password
).
to
eq
(
'password'
)
expect
(
bamboo_
service
.
bamboo_url
).
to
eq
(
'http://gitlab_edited.com'
)
expect
(
bamboo_
integration
.
password
).
to
eq
(
'password'
)
expect
(
bamboo_
integration
.
bamboo_url
).
to
eq
(
'http://gitlab_edited.com'
)
end
end
end
...
...
spec/models/project_spec.rb
View file @
b8293b2f
...
...
@@ -58,7 +58,7 @@ RSpec.describe Project, factory_default: :keep do
it
{
is_expected
.
to
have_one
(
:slack_slash_commands_service
)
}
it
{
is_expected
.
to
have_one
(
:mattermost_slash_commands_service
)
}
it
{
is_expected
.
to
have_one
(
:buildkite_service
)
}
it
{
is_expected
.
to
have_one
(
:bamboo_
service
)
}
it
{
is_expected
.
to
have_one
(
:bamboo_
integration
)
}
it
{
is_expected
.
to
have_one
(
:teamcity_service
)
}
it
{
is_expected
.
to
have_one
(
:jira_service
)
}
it
{
is_expected
.
to
have_one
(
:redmine_service
)
}
...
...
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