Cyberduck Mountain Duck CLI

Changeset 43188


Ignore:
Timestamp:
Nov 3, 2017 1:01:53 PM (4 years ago)
Author:
Tomas Celaya
Message:

Remove old test

Location:
shelves/Tomas_Celaya
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shelves/Tomas_Celaya

    • Property subgit:lock changed from commit:06332115d218c2e06c510e33345010fdcd055620 timestamp:2017-11-06T09:00:17.636 to commit:58f9352dab3fdbaeb1a90fcc4165fc0b312c6f88 timestamp:2017-11-06T09:00:19.472
  • shelves/Tomas_Celaya/triton/src/test/java/ch/cyberduck/core/manta/MantaSessionTest.java

    r43148 r43188  
    5454    }
    5555
    56     private void assertUsernameFailsLogin(final String username) {
    57         try {
    58             final MantaSession session = new MantaSession(
    59                 new Host(
    60                     new MantaProtocol(),
    61                     null,
    62                     443,
    63                     new Credentials(username)), new DisabledX509TrustManager(), new DefaultX509KeyManager());
    64             session.open(new DisabledHostKeyCallback());
    65             session.login(
    66                 new DisabledPasswordStore(),
    67                 new DisabledLoginCallback(),
    68                 new DisabledCancelCallback()
    69             );
    70         }
    71         catch(LoginFailureException e) {
    72             assertTrue(e.getMessage().contains("Login failed"));
    73         }
    74         catch(BackgroundException e) {
    75             fail("Unexpected exception thrown: " + e.getMessage());
    76         }
    77     }
    78 
    79     @Test
    80     @Ignore
    81     public void testSessionRejectsBadUsernames() {
    82         assertUsernameFailsLogin("!");
    83         assertUsernameFailsLogin("/subuser");
    84         assertUsernameFailsLogin("login/");
    85     }
    86 
    87 
    8856    @Test
    8957    public void testUserOwnerIdentification() throws BackgroundException {
Note: See TracChangeset for help on using the changeset viewer.