summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/integ/cli/test_project.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/unit/integ/cli/test_project.py')
-rw-r--r--openstackclient/tests/unit/integ/cli/test_project.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/openstackclient/tests/unit/integ/cli/test_project.py b/openstackclient/tests/unit/integ/cli/test_project.py
index 6a7c6d1b..4e707a37 100644
--- a/openstackclient/tests/unit/integ/cli/test_project.py
+++ b/openstackclient/tests/unit/integ/cli/test_project.py
@@ -36,10 +36,10 @@ class TestIntegV2ProjectID(test_base.TestInteg):
def test_project_id_env(self):
_shell = shell.OpenStackShell()
- _shell.run("configuration show".split())
+ _shell.run("extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -57,10 +57,10 @@ class TestIntegV2ProjectID(test_base.TestInteg):
def test_project_id_arg(self):
_shell = shell.OpenStackShell()
- _shell.run("--os-project-id wsx configuration show".split())
+ _shell.run("--os-project-id wsx extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -94,10 +94,10 @@ class TestIntegV2ProjectName(test_base.TestInteg):
def test_project_name_env(self):
_shell = shell.OpenStackShell()
- _shell.run("configuration show".split())
+ _shell.run("extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -115,10 +115,10 @@ class TestIntegV2ProjectName(test_base.TestInteg):
def test_project_name_arg(self):
_shell = shell.OpenStackShell()
- _shell.run("--os-project-name qaz configuration show".split())
+ _shell.run("--os-project-name qaz extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -154,10 +154,10 @@ class TestIntegV3ProjectID(test_base.TestInteg):
def test_project_id_env(self):
_shell = shell.OpenStackShell()
- _shell.run("configuration show".split())
+ _shell.run("extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -173,10 +173,10 @@ class TestIntegV3ProjectID(test_base.TestInteg):
def test_project_id_arg(self):
_shell = shell.OpenStackShell()
- _shell.run("--os-project-id wsx configuration show".split())
+ _shell.run("--os-project-id wsx extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -210,10 +210,10 @@ class TestIntegV3ProjectName(test_base.TestInteg):
def test_project_name_env(self):
_shell = shell.OpenStackShell()
- _shell.run("configuration show".split())
+ _shell.run("extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(
@@ -234,10 +234,10 @@ class TestIntegV3ProjectName(test_base.TestInteg):
def test_project_name_arg(self):
_shell = shell.OpenStackShell()
- _shell.run("--os-project-name wsx configuration show".split())
+ _shell.run("--os-project-name wsx extension list".split())
# Check general calls
- self.assertEqual(len(self.requests_mock.request_history), 2)
+ self.assertNotEqual(len(self.requests_mock.request_history), 0)
# Check discovery request
self.assertEqual(