twisted / twisted/twisted

twisted.test.test_strcred.TestSSHChecker.test_isChecker() fails with Twisted Conch not available

Open
#5,703 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug core new priority-normal
Dominant language
Python
Stars
6k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
10

Description

Arfrever's avatar Arfrever reported
Trac ID trac#5703
Type defect
Created 2012-06-06 02:48:41Z

twisted.test.test_strcred.TestSSHChecker.test_isChecker() has been introduced in Twisted 12.1.0 and fails.

twisted.test.test_strcred
  TestAnonymousChecker
    testAnonymousAccessSucceeds ...                                        [OK]
    test_isChecker ...                                                     [OK]
  TestCheckerOptions
    test_createsDictionary ...                                             [OK]
    test_createsList ...                                                   [OK]
    test_credInterfacesProvidesLists ...                                   [OK]
    test_displaysHelpCorrectly ...                                         [OK]
    test_displaysListCorrectly ...                                         [OK]
    test_invalidAuthError ...                                              [OK]
    test_listDoesNotDisplayDuplicates ...                                  [OK]
    test_unexpectedException ...                                           [OK]
  TestFileDBChecker
    test_failsWithEmptyFilename ...                                        [OK]
    test_fileCheckerFailsPassword ...                                      [OK]
    test_fileCheckerFailsUsername ...                                      [OK]
    test_fileCheckerSucceeds ...                                           [OK]
    test_isChecker ...                                                     [OK]
    test_warnWithBadFilename ...                                           [OK]
  TestLimitingInterfaces
    test_canAddSupportedChecker ...                                        [OK]
    test_failOnAddingUnsupportedChecker ...                                [OK]
    test_helpAuthLimitsOutput ...                                          [OK]
    test_helpAuthTypeLimitsOutput ...                                      [OK]
    test_supportsAllInterfaces ...                                         [OK]
    test_supportsCheckerFactory ...                                        [OK]
    test_supportsInterface ...                                             [OK]
    test_unsupportedInterfaceError ...                                     [OK]
  TestMemoryChecker
    test_badFormatArgString ...                                            [OK]
    test_isChecker ...                                                     [OK]
    test_memoryCheckerFailsPassword ...                                    [OK]
    test_memoryCheckerFailsUsername ...                                    [OK]
    test_memoryCheckerSucceeds ...                                         [OK]
  TestPublicAPI
    test_emptyDescription ...                                              [OK]
    test_invalidAuthType ...                                               [OK]
  TestSSHChecker
    test_isChecker ...                                                  [ERROR]
  TestStrcredFunctions
    test_findCheckerFactories ...                                          [OK]
    test_findCheckerFactory ...                                            [OK]
  TestUnixChecker
    test_isChecker ...                                                     [OK]
    test_unixCheckerFailsPassword ...                                      [OK]
    test_unixCheckerFailsUsername ...                                      [OK]
    test_unixCheckerSucceeds ...                                           [OK]

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-12.1.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/test/test_strcred.py", line 361, in test_isChecker
    sshChecker = strcred.makeChecker('sshkey')
  File "/var/tmp/portage/dev-python/twisted-12.1.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/cred/strcred.py", line 127, in makeChecker
    return findCheckerFactory(authType).generateChecker(argstring)
  File "/var/tmp/portage/dev-python/twisted-12.1.0-r1000/temp/tests-2.7/usr/lib64/python2.7/site-packages/twisted/cred/strcred.py", line 112, in findCheckerFactory
    raise InvalidAuthType(authType)
twisted.cred.strcred.InvalidAuthType: sshkey

twisted.test.test_strcred.TestSSHChecker.test_isChecker
-------------------------------------------------------------------------------
Ran 38 tests in 0.412s

FAILED (errors=1, successes=37)

Attachments:

Searchable metadata
trac-id__5703 5703
type__defect defect
reporter__Arfrever Arfrever
priority__normal normal
milestone__ 
branch__ 
branch_author__ 
status__new new
resolution__None None
component__core core
keywords__ 
time__1338950921000000 1338950921000000
changetime__1384261162000000 1384261162000000
version__None None
owner__ 
cc__Arfrever cc__marienz cc__hynek

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with twisted.test.test_strcred.TestSSHChecker.test_isChecker and the traceback showing strcred.makeChecker('sshkey') fails when Conch is unavailable. Review the attached twisted-12.1.0-remove-tests-conch-dependency.patch and verify that the test is skipped or guarded without Conch while the remaining strcred tests still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.