From 4d8ba2377bdf7c4b8d7cda205b06b0881f5890c3 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 3 Mar 2017 18:28:05 -0800 Subject: [PATCH] Fix typo of setUpClass There are a few same pattern of typo related to setUpClass. Let's fix them. Change-Id: Ic835bb37353f1ef6623d55f294c09f4f06a4be44 --- doc/source/test-removal.rst | 6 +++--- tempest/api/compute/servers/test_server_actions.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/test-removal.rst b/doc/source/test-removal.rst index 4757dc415f..d06e4ba412 100644 --- a/doc/source/test-removal.rst +++ b/doc/source/test-removal.rst @@ -64,7 +64,7 @@ The Old Way using subunit2sql directly SELECT * from tests where test_id like "%test_id%"; (where $test_id is the full test_id, but truncated to the class because of -setupClass or tearDownClass failures) +setUpClass or tearDownClass failures) You can access the infra mysql subunit2sql db w/ read-only permissions with: @@ -82,7 +82,7 @@ you would run the following: #. run the query: MySQL [subunit2sql]> select * from tests where test_id like "tempest.api.compute.admin.test_flavors_negative.FlavorsAdminNegativeTestJSON%"; which will return a table of all the tests in the class (but it will also - catch failures in setupClass and tearDownClass) + catch failures in setUpClass and tearDownClass) #. paste the output table with numbers and the mysql command you ran to generate it into the etherpad. @@ -185,4 +185,4 @@ to expect, and thus would not be able to enforce a specific behavior. If a test exists in Tempest that would meet this criteria as consequence of a change, the test must be removed according to the procedure discussed into this document. The API change should not be merged until all conditions -required for test removal can be met. \ No newline at end of file +required for test removal can be met. diff --git a/tempest/api/compute/servers/test_server_actions.py b/tempest/api/compute/servers/test_server_actions.py index 6160024e2c..b915739168 100644 --- a/tempest/api/compute/servers/test_server_actions.py +++ b/tempest/api/compute/servers/test_server_actions.py @@ -471,7 +471,7 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest): # NOTE: SHUTOFF is irregular status. To avoid test instability, # one server is created only for this test without using - # the server that was created in setupClass. + # the server that was created in setUpClass. server = self.create_test_server(wait_until='ACTIVE') temp_server_id = server['id']