maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: maven-wagon/wagon-providers/ssh/src/test/java/org/apache/maven/wagon/providers/ssh ScpWagonWithSshPrivateKeySearchTest.java
Date Wed, 21 Apr 2004 05:19:06 GMT
jvanzyl     2004/04/20 22:19:06

  Added:       wagon-providers/ssh/src/test/java/org/apache/maven/wagon/providers/ssh
                        ScpWagonWithSshPrivateKeySearchTest.java
  Log:
  o test to force the scp wagon to search for the private key.
  
  Revision  Changes    Path
  1.1                  maven-wagon/wagon-providers/ssh/src/test/java/org/apache/maven/wagon/providers/ssh/ScpWagonWithSshPrivateKeySearchTest.java
  
  Index: ScpWagonWithSshPrivateKeySearchTest.java
  ===================================================================
  package org.apache.maven.wagon.providers.ssh;
  
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  import org.codehaus.plexus.PlexusTestCase;
  import org.apache.maven.wagon.Wagon;
  import org.apache.maven.wagon.WagonTestCase;
  import org.apache.maven.wagon.authentication.AuthenticationInfo;
  import org.apache.maven.wagon.artifact.Artifact;
  import org.apache.maven.wagon.artifact.DefaultArtifact;
  import org.apache.maven.wagon.events.Debug;
  import org.apache.maven.wagon.repository.Repository;
  
  import java.io.File;
  
  /**
   * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
   * @version $Id: ScpWagonWithSshPrivateKeySearchTest.java,v 1.1 2004/04/21 05:19:06 jvanzyl
Exp $
   */
  public class ScpWagonWithSshPrivateKeySearchTest
      extends WagonTestCase
  {
      protected String getProtocol()
      {
          return "scp";
      }
  
      protected String getTestRepositoryUrl()
      {
          return "scp://login.ibiblio.org//public/html/maven";
      }
  
      protected AuthenticationInfo getAuthInfo()
      {
          AuthenticationInfo authInfo = new AuthenticationInfo();
  
          String userName = System.getProperty( "user.name" );
  
          authInfo.setUserName( userName );
  
          authInfo.setPassphrase( "" );
  
          authInfo.setGroup( "maven" );
  
          return authInfo;
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-cvs-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-cvs-help@maven.apache.org


Mime
View raw message