-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ssh key name requirement from testing.
IPA will add public key to EC2 instance based on private key file using cloud init script.
- Loading branch information
1 parent
0abaff5
commit 162a28a
Showing
11 changed files
with
58 additions
and
49 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
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
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ services: | |
- pint | ||
non_cred_services: | ||
- obs | ||
testing: | ||
ssh_private_key_file: /etc/mash/testing_key |
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 |
---|---|---|
@@ -1,13 +1,23 @@ | ||
from pytest import raises | ||
|
||
from mash.mash_exceptions import MashConfigException | ||
from mash.services.testing.config import TestingConfig | ||
|
||
|
||
class TestTestingConfig(object): | ||
def setup(self): | ||
self.empty_config = TestingConfig('../data/empty_testing_config.yml') | ||
|
||
def test_config_data(self): | ||
assert self.empty_config.config_data | ||
self.empty_config = TestingConfig('../data/empty_mash_config.yaml') | ||
self.config = TestingConfig('../data/mash_config.yaml') | ||
|
||
def test_get_log_file(self): | ||
assert self.empty_config.get_log_file('testing') == \ | ||
'/var/log/mash/testing_service.log' | ||
|
||
def test_get_ssh_private_key_file(self): | ||
assert self.config.get_ssh_private_key_file() == \ | ||
'/etc/mash/testing_key' | ||
|
||
with raises(MashConfigException) as error: | ||
self.empty_config.get_ssh_private_key_file() | ||
|
||
assert str(error.value) |
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