From cf3fa3193ce1214f2e9950e640541f2697a3f17e Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 9 Sep 2014 09:46:35 +0200 Subject: [PATCH] Change 'secrete' to 'secret' Removal of a spelling error. Change-Id: If59dec6c226e86177019b665a5f0a0e5d42e6316 --- keystoneclient/tests/test_shell.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/keystoneclient/tests/test_shell.py b/keystoneclient/tests/test_shell.py index 2f7586bb7..9ca3d416d 100644 --- a/keystoneclient/tests/test_shell.py +++ b/keystoneclient/tests/test_shell.py @@ -229,7 +229,7 @@ class ShellTest(utils.TestCase): # Old_style options # Test case with one --tenant_id args present: ec2 creds shell('user-create --name=FOO ' - '--pass=secrete --tenant_id=barrr --enabled=true') + '--pass=secret --tenant_id=barrr --enabled=true') assert do_uc_mock.called ((a, b), c) = do_uc_mock.call_args actual = (b.os_auth_url, b.os_password, b.os_tenant_id, @@ -239,13 +239,13 @@ class ShellTest(utils.TestCase): DEFAULT_TENANT_NAME, DEFAULT_USERNAME, '') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) actual = (b.tenant_id, b.name, b.passwd, b.enabled) - expect = ('barrr', 'FOO', 'secrete', 'true') + expect = ('barrr', 'FOO', 'secret', 'true') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) # New-style options # Test case with one --tenant args present: ec2 creds shell('user-create --name=foo ' - '--pass=secrete --tenant=BARRR --enabled=true') + '--pass=secret --tenant=BARRR --enabled=true') assert do_uc_mock.called ((a, b), c) = do_uc_mock.call_args actual = (b.os_auth_url, b.os_password, b.os_tenant_id, @@ -255,13 +255,13 @@ class ShellTest(utils.TestCase): DEFAULT_TENANT_NAME, DEFAULT_USERNAME, '') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) actual = (b.tenant, b.name, b.passwd, b.enabled) - expect = ('BARRR', 'foo', 'secrete', 'true') + expect = ('BARRR', 'foo', 'secret', 'true') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) # New-style options # Test case with one --tenant-id args present: ec2 creds shell('user-create --name=foo ' - '--pass=secrete --tenant-id=BARRR --enabled=true') + '--pass=secret --tenant-id=BARRR --enabled=true') assert do_uc_mock.called ((a, b), c) = do_uc_mock.call_args actual = (b.os_auth_url, b.os_password, b.os_tenant_id, @@ -271,13 +271,13 @@ class ShellTest(utils.TestCase): DEFAULT_TENANT_NAME, DEFAULT_USERNAME, '') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) actual = (b.tenant, b.name, b.passwd, b.enabled) - expect = ('BARRR', 'foo', 'secrete', 'true') + expect = ('BARRR', 'foo', 'secret', 'true') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) # Old_style options # Test case with --os_tenant_id and --tenant_id args present shell('--os_tenant_id=os-tenant user-create --name=FOO ' - '--pass=secrete --tenant_id=barrr --enabled=true') + '--pass=secret --tenant_id=barrr --enabled=true') assert do_uc_mock.called ((a, b), c) = do_uc_mock.call_args actual = (b.os_auth_url, b.os_password, b.os_tenant_id, @@ -287,13 +287,13 @@ class ShellTest(utils.TestCase): DEFAULT_TENANT_NAME, DEFAULT_USERNAME, '') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) actual = (b.tenant_id, b.name, b.passwd, b.enabled) - expect = ('barrr', 'FOO', 'secrete', 'true') + expect = ('barrr', 'FOO', 'secret', 'true') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) # New-style options # Test case with --os-tenant-id and --tenant-id args present shell('--os-tenant-id=ostenant user-create --name=foo ' - '--pass=secrete --tenant-id=BARRR --enabled=true') + '--pass=secret --tenant-id=BARRR --enabled=true') assert do_uc_mock.called ((a, b), c) = do_uc_mock.call_args actual = (b.os_auth_url, b.os_password, b.os_tenant_id, @@ -303,7 +303,7 @@ class ShellTest(utils.TestCase): DEFAULT_TENANT_NAME, DEFAULT_USERNAME, '') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) actual = (b.tenant, b.name, b.passwd, b.enabled) - expect = ('BARRR', 'foo', 'secrete', 'true') + expect = ('BARRR', 'foo', 'secret', 'true') self.assertTrue(all([x == y for x, y in zip(actual, expect)])) def test_do_tenant_create(self):