-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ def setup | |
def test_install_by_wizard | ||
@mock_prompt.promise_question_answer('Uffizzi use a wildcard tls certificate. Do you have it?', 'n') | ||
@mock_prompt.promise_question_answer('Do you want to add wildcard certificate later?', 'y') | ||
@mock_prompt.promise_question_answer('Namespace: ', 'uffizzi') | ||
@mock_prompt.promise_question_answer('Domain: ', 'my-domain.com') | ||
@mock_prompt.promise_question_answer('User email: ', '[email protected]') | ||
@mock_prompt.promise_question_answer('User password: ', 'password') | ||
|
@@ -30,7 +31,7 @@ def test_install_by_wizard | |
@mock_shell.promise_execute(/helm list/, stdout: [].to_json) | ||
@mock_shell.promise_execute(/helm install/, stdout: { info: { status: 'deployed' } }.to_json) | ||
|
||
@install.by_wizard('uffizzi') | ||
@install.application | ||
|
||
last_message = Uffizzi.ui.last_message | ||
assert_match('deployed', last_message) | ||
|
@@ -45,7 +46,7 @@ def test_install_by_options | |
@mock_shell.promise_execute(/helm install/, stdout: { info: { status: 'deployed' } }.to_json) | ||
|
||
@install.options = command_options(domain: 'my-domain.com', 'without-wildcard-tls' => true) | ||
@install.by_options('uffizzi') | ||
@install.application | ||
|
||
last_message = Uffizzi.ui.last_message | ||
assert_match('deployed', last_message) | ||
|