1、Defcore(2016.01) and OpenStack Powered Compute
# ./refstack-client test -c ~/refstack-client/.tempest/etc/tempest.conf -v -- tempest.api.compute.test_authorization.AuthorizationTestJSON.test_create_server_fails_when_tenant_incorrect
2016-06-14 09:35:23.172 22181 INFO tempest.lib.common.rest_client [req-82e4ac4f-0d8a-4711-b1ad-e9eb9147793a ] Request (main): 200 POST http://172.16.74.100:5000/v2.0/tokens
2016-06-14 09:35:23.271 22181 INFO tempest.lib.common.rest_client [req-8b51549b-59c9-407c-a924-2aa003ec0a5d ] Request (main): 200 GET http://172.16.74.100:8774/v2/98c37793594a43bdae4dd39231d4ae65/flavors 0.087s
2016-06-14 09:35:23.502 22181 INFO tempest.lib.common.rest_client [req-63b0929a-c9be-4497-90cb-16e2d1c4f5ba ] Request (main): 200 GET http://172.16.74.100:8774/v2/98c37793594a43bdae4dd39231d4ae65/images 0.226s
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list
The test run didn't actually run any tests
2、Need to use the test_authorization module's test cases:
tempest.api.compute.test_authorization.AuthorizationTestJSON.test_create_server_fails_when_tenant_incorrect
tempest.api.compute.test_authorization.AuthorizationTestJSON.test_create_server_with_unauthorized_image
tempest.api.compute.test_authorization.AuthorizationTestJSON.test_get_keypair_of_alt_account_fails
tempest.api.compute.test_authorization.AuthorizationTestJSON.test_get_metadata_of_alt_account_server_fails
tempest.api.compute.test_authorization.AuthorizationTestJSON.test_set_metadata_of_alt_account_server_fails
tempest.api.compute.test_authorization.AuthorizationTestJSON.test_create_keypair_in_analt_user_tenant
My test results (see for not passed)
https://refstack.openstack.org/#/results/8a56340e-abcf-4a96-b7af-a8c73a9f7a96(OpenStack Powered Compute )
3、Refstack-client install
use default install , Tempest will be installed from commit 8d468c8332b1d0d7176c285de4cedfa589a54a23 (May 7, 2016).
https://github.com/openstack/refstack-client
Again, this is a flag test. See the comments in https:/ /bugs.launchpad .net/refstack/ +bug/1592279 and https:/ /bugs.launchpad .net/refstack/ +bug/1592239 about flagged tests.
On https:/ /refstack. openstack. org/#/results/ 8a56340e- abcf-4a96- b7af-a8c73a9f7a 96 , tempest. api.compute. test_authorizat ion.Authorizati onTestJSON. test_create_ server_ fails_when_ tenant_ incorrect showed as not pass but with a "FLAG" in front of it. This means that this test will not be counted toward pass/fail calculation.