diff --git a/config_tempest/services/boto.py b/config_tempest/services/aws.py similarity index 89% rename from config_tempest/services/boto.py rename to config_tempest/services/aws.py index 2ad43a30..36fb965a 100644 --- a/config_tempest/services/boto.py +++ b/config_tempest/services/aws.py @@ -19,7 +19,7 @@ from config_tempest.services.base import Service class Ec2Service(Service): def set_default_tempest_options(self, conf): - conf.set('boto', 'ec2_url', self.service_url) + conf.set('aws', 'ec2_url', self.service_url) @staticmethod def get_service_name(): @@ -29,7 +29,7 @@ class Ec2Service(Service): class S3Service(Service): def set_default_tempest_options(self, conf): - conf.set('boto', 's3_url', self.service_url) + conf.set('aws', 's3_url', self.service_url) @staticmethod def get_service_name(): diff --git a/config_tempest/tests/services/test_boto.py b/config_tempest/tests/services/test_aws.py similarity index 90% rename from config_tempest/tests/services/test_boto.py rename to config_tempest/tests/services/test_aws.py index 39d040fe..422112c7 100644 --- a/config_tempest/tests/services/test_boto.py +++ b/config_tempest/tests/services/test_aws.py @@ -15,8 +15,8 @@ import mock -from config_tempest.services.boto import Ec2Service -from config_tempest.services.boto import S3Service +from config_tempest.services.aws import Ec2Service +from config_tempest.services.aws import S3Service from config_tempest.services.services import Services from config_tempest.tests.base import BaseConfigTempestTest @@ -37,7 +37,7 @@ class TestEc2Service(BaseConfigTempestTest): def test_set_default_tempest_options(self): service = Ec2Service("ec2", "ec2", self.FAKE_URL, self.clients, False) service.set_default_tempest_options(self.Services._conf) - ec2_url = self.Services._conf.get("boto", "ec2_url") + ec2_url = self.Services._conf.get("aws", "ec2_url") self.assertEqual(ec2_url, self.FAKE_URL) @@ -57,5 +57,5 @@ class TestS3Service(BaseConfigTempestTest): def test_set_default_tempest_options(self): service = S3Service("s3", "s3", self.FAKE_URL, self.clients, False) service.set_default_tempest_options(self.Services._conf) - ec2_url = self.Services._conf.get("boto", "s3_url") + ec2_url = self.Services._conf.get("aws", "s3_url") self.assertEqual(ec2_url, self.FAKE_URL) diff --git a/releasenotes/notes/Rename-the-section-for--boto-options-f3552516219d70fa.yaml b/releasenotes/notes/Rename-the-section-for--boto-options-f3552516219d70fa.yaml new file mode 100644 index 00000000..9677a3bc --- /dev/null +++ b/releasenotes/notes/Rename-the-section-for--boto-options-f3552516219d70fa.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Rename boto section to aws one for ec2_url and s3_url options used by + ec2api-tempest-plugin.