Ask Your Question
0

Failed at functional tests & ./.probetests

asked 2010-11-09 03:31:41 -0500

tonytkdk gravatar image

Hi guys When I run ./.functests & ./.probetests there are several errors

./.functests ((((((((((((((((((MONITOR))))))))))))))))))) Ran 141 tests in 95.209s

OK

.......EE.E.E.

ERROR: test_cross_account_container (test.functionalnosetests.test_container.TestContainer)

Traceback (most recent call last): File "/home/hugo/swift/trunk/test/functionalnosetests/test_container.py", line 375, in test_cross_account_container resp = retry(get2, use_account=2) File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry swift_test_key[use_account]) File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth http_reason=resp.reason) ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized -------------------- >> begin captured logging << -------------------- root: DEBUG: HTTP PERF: 1.90763 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/6ba26921ba144a6d83af0dd8ff1dd1b0 (-) root: DEBUG: HTTP PERF: 1.91357 seconds to HEAD 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/6ba26921ba144a6d83af0dd8ff1dd1b0 (-) root: DEBUG: HTTP PERF: 0.00212 seconds to GET 127.0.0.1:11000 /v1.0 (-) --------------------- >> end captured logging << ---------------------

======================================================================

ERROR: test_cross_account_public_container (test.functionalnosetests.test_container.TestContainer)

Traceback (most recent call last): File "/home/hugo/swift/trunk/test/functionalnosetests/test_container.py", line 422, in test_cross_account_public_container resp = retry(get2, use_account=2) File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry swift_test_key[use_account]) File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth http_reason=resp.reason) ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized -------------------- >> begin captured logging << -------------------- root: DEBUG: HTTP PERF: 2.04006 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/fef027f388de48678761715cecbec718 (-) root: DEBUG: HTTP PERF: 2.04579 seconds to HEAD 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/fef027f388de48678761715cecbec718 (-) root: DEBUG: HTTP PERF: 0.00268 seconds to GET 127.0.0.1:11000 /v1.0 (-) --------------------- >> end captured logging << ---------------------

======================================================================

ERROR: test_nonadmin_user (test.functionalnosetests.test_container.TestContainer)

Traceback (most recent call last): File "/home/hugo/swift/trunk/test/functionalnosetests/test_container.py", line 480, in test_nonadmin_user resp = retry(get3, use_account=3) File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry swift_test_key[use_account]) File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth http_reason=resp.reason) ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized -------------------- >> begin captured logging << -------------------- root: DEBUG: HTTP PERF: 2.34257 seconds to PUT 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/5e066338e1d745cd975bd4ef9774b3a2 (-) root: DEBUG: HTTP PERF: 2.34907 seconds to HEAD 127.0.0.1:8080 /v1/AUTH_ae29c45345154fcea16a67f858b60de4/5e066338e1d745cd975bd4ef9774b3a2 (-) root: DEBUG: HTTP PERF: 0.00328 seconds to GET 127.0.0.1:11000 /v1.0 (-) --------------------- >> end captured logging << ---------------------

======================================================================

ERROR: test_private_object (test.functionalnosetests.test_object.TestObject)

Traceback (most recent call last): File "/home/hugo/swift/trunk/test/functionalnosetests/test_object.py", line 98, in test_private_object resp = retry(get, use_account=3) File "/home/hugo/swift/trunk/test/functionalnosetests/swift_testing.py", line 99, in retry swift_test_key[use_account]) File "/home/hugo/swift/trunk/swift/common/client.py", line 174, in get_auth http_reason=resp.reason) ClientException: Auth GET failed: http://127.0.0.1:11000/v1.0 401 Unauthorized -------------------- >> begin captured logging << -------------------- root: DEBUG: HTTP PERF: 0.10660 seconds to PUT 127 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-01-28 02:47:44 -0500

benhart gravatar image

Those kind of errors can be detected early when you develop correctly and look for mistakes within your code. You have a lot of tutorials on the web to help you do that. It also looks like you can use some programs to help you do that. I got an advise once to use Checkmarx to detect vulnerabilities in the code, you can try it out. Best regards. Ben.

edit flag offensive delete link more
0

answered 2010-11-15 20:28:49 -0500

gholt gravatar image

It is most likely you don't have the additional test accounts needed to run those functional tests.

The SAIO docs go into this a bit indirectly in this section, steps 9, 13, and 14: http://swift.openstack.org/development_saio.html#setting-up-scripts-for-running-swift (http://swift.openstack.org/developmen...)

You should just be able to run these commands and then the functional tests again:

swift-auth-add-user -K devauth -a test tester testing swift-auth-add-user -K devauth -a test2 tester2 testing2 swift-auth-add-user -K devauth test tester3 testing3

You may need to change the super_admin key of 'devauth' to your own if you changed that.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2010-11-09 03:31:41 -0500

Seen: 122 times

Last updated: Jan 28 '17