Class GitSshTagCommandTckTest

    • Field Detail

      • tmpDirectory

        public org.junit.rules.TemporaryFolder tmpDirectory
    • Constructor Detail

      • GitSshTagCommandTckTest

        protected GitSshTagCommandTckTest()
                                   throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
    • Method Detail

      • getScmProvider

        protected abstract java.lang.String getScmProvider()
      • getScmUrl

        public java.lang.String getScmUrl()
                                   throws java.lang.Exception
        Specified by:
        getScmUrl in class ScmTckTestCase
        Returns:
        a provider specific and valid url for the repository
        Throws:
        java.lang.Exception - if any
      • configureCredentials

        protected void configureCredentials​(ScmRepository repository,
                                            java.lang.String passphrase)
                                     throws java.lang.Exception
        Sets up repository credentials for SSH access.
        Throws:
        java.lang.Exception
      • initRepo

        public void initRepo()
                      throws java.lang.Exception

        Initialize repository at the ScmTckTestCase.getScmUrl() location with the files in ScmTckTestCase.getScmFileNames()

        The setup is also asserting on the existence of these files.
        This should only be used by this class (thus do not call this method from derived classes)

        Note: 'svnadmin' should be a system command.
        Specified by:
        initRepo in class ScmTckTestCase
        Throws:
        java.lang.Exception - if any
      • removeRepo

        public void removeRepo()
                        throws java.lang.Exception
        Description copied from class: ScmTckTestCase
        This method is available to those SCM clients that need to perform a cleanup at the end of the tests. It is needed when server side operations are performed, or the check out dirs are outside of the normal target directory.
        Overrides:
        removeRepo in class ScmTckTestCase
        Throws:
        java.lang.Exception
      • testTagCommandTestWithPush

        public void testTagCommandTestWithPush()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTagCommandWithPassphraseAndPushTest

        public void testTagCommandWithPassphraseAndPushTest()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception