-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Scalingo/fix/STORY-1232/remove_password_p…
…rinting fix(printing): remove user info from service and host when printing them fix STORY-1232
- Loading branch information
Showing
3 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,11 +113,24 @@ | |
expect(service.to_uri.to_s).to eq "https://user:[email protected]:5000" | ||
end | ||
|
||
it "should get the URI of one of the hosts with redacted password" do | ||
mock_not_found("service01") | ||
mock_hosts("service01", host, 1) | ||
service = subject.get("service01") | ||
expect(service.to_s).to eq "https://user:[email protected]:5000" | ||
end | ||
|
||
it "should get the URI of the service if public" do | ||
mock_service_info("service01", info) | ||
service = subject.get("service01") | ||
expect(service.to_uri.to_s).to eq "https://user:[email protected]:5000" | ||
end | ||
|
||
it "should get the URI of the service with redacted password" do | ||
mock_service_info("service01", info) | ||
service = subject.get("service01") | ||
expect(service.to_s).to eq "https://user:[email protected]:5000" | ||
end | ||
end | ||
|
||
# To get the private URI of a public service | ||
|
@@ -128,5 +141,12 @@ | |
service = subject.get("service01") | ||
expect(service.one.to_uri.to_s).to eq "https://user:[email protected]:5000" | ||
end | ||
|
||
it "should get the URI of the private host with redacted password" do | ||
mock_service_info("service01", info) | ||
mock_hosts("service01", host, 1) | ||
service = subject.get("service01") | ||
expect(service.one.to_s).to eq "https://user:[email protected]:5000" | ||
end | ||
end | ||
end |