Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
fixed field names
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Swinarski committed Mar 29, 2013
1 parent 73f24c4 commit e734842
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/fisheye
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Install Notes

1. Your FishEye server must be accessible from the internet

2. "base_url" is the URL to your FishEye server
2. "url_base" is the URL to your FishEye server
Example: http://fisheye.example.com/ or http://fisheye.example.com/fisheye/

3. "token" is the REST API token for your FishEye server
It is defined in FishEye Administration > Security Settings > Authentication > REST API Token

4. "custom_repository_name" is the repository name (optional)
4. "repository_name" is the repository name (optional)
If not set github repository name is used


2 changes: 1 addition & 1 deletion services/fisheye.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def verify_config
end

def repository_name
@repository_name ||= (data['custom_repository_name'].to_s.strip.length != 0) ? data['custom_repository_name'] : payload['repository']['name']
@repository_name ||= (data['repository_name'].to_s.strip.length != 0) ? data['repository_name'] : payload['repository']['name']
end

def url_base
Expand Down
4 changes: 2 additions & 2 deletions test/fisheye_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def data_my_repo
{
"url_base" => "http://localhost:6060/foo",
"token" => "515848d216e3baa46e10d92f21f890f67fea1d12",
"custom_repository_name" => "myRepo"
"repository_name" => "myRepo"
}
end

Expand Down Expand Up @@ -82,7 +82,7 @@ def test_triggers_scanning_empty_custom_repository
data = {
"url_base" => "http://localhost:6060/foo",
"token" => "515848d216e3baa46e10d92f21f890f67fea1d12",
"custom_repository_name" => " "
"repository_name" => " "
}

svc = service :push, data, payload
Expand Down

0 comments on commit e734842

Please sign in to comment.