fake-sftp-server-rule | A JUnit rule that runs an in-memory SFTP server | Continuous Deployment library

 by   stefanbirkner Java Version: 2.0.1 License: MIT

kandi X-RAY | fake-sftp-server-rule Summary

kandi X-RAY | fake-sftp-server-rule Summary

fake-sftp-server-rule is a Java library typically used in Devops, Continuous Deployment, Spring Boot, Docker applications. fake-sftp-server-rule has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.

Fake SFTP Server Rule is a JUnit rule that runs an in-memory SFTP server while your tests are running. It uses the SFTP server of the Apache SSHD project. Fake SFTP Server Rule is published under the MIT license. It requires at least Java 8. Please open an issue if you want to use it with an older version of Java. I want to thank my former team SAM at ThoughtWorks for using this library and @crizzis, @OArtyomov and @TheSentinel454 for their feature requests. There is an alternative to Fake SFTP Server Rule that is independent of the test framework. Its name is Fake SFTP Server Lambda.

            kandi-support Support

              fake-sftp-server-rule has a low active ecosystem.
              It has 28 star(s) with 23 fork(s). There are 2 watchers for this library.
              It had no major release in the last 12 months.
              There are 10 open issues and 8 have been closed. On average issues are closed in 103 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of fake-sftp-server-rule is 2.0.1

            kandi-Quality Quality

              fake-sftp-server-rule has 0 bugs and 112 code smells.

            kandi-Security Security

              fake-sftp-server-rule has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              fake-sftp-server-rule code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              fake-sftp-server-rule is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              fake-sftp-server-rule releases are not available. You will need to build from source code and install.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 1476 lines of code, 110 functions and 4 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed fake-sftp-server-rule and discovered the below as its top functions. This is intended to give you an instant insight into fake-sftp-server-rule implemented functionality, and help decide if they suit your requirements.
            • Start the server
            • Starts the server
            • Creates the file system
            • Returns the port of the server
            • Gets the port from the server
            • Verifies that the test is running
            • Sets the port of the rule
            • Restart the SFTP server
            • Creates a set of directories
            • Creates a directory on the FTP server
            • Checks if a file exists
            • Registers a user
            • Authenticate against the given session and password
            • Deletes all the files and directories
            Get all kandi verified functions for this library.

            fake-sftp-server-rule Key Features

            No Key Features are available at this moment for fake-sftp-server-rule.

            fake-sftp-server-rule Examples and Code Snippets

            No Code Snippets are available at this moment for fake-sftp-server-rule.

            Community Discussions

            Trending Discussions on fake-sftp-server-rule


            Testing an SFTP client with Spock Framework
            Asked 2022-Feb-13 at 00:56

            We actually use JUnit and the great FakeSftpServerRule junit rule to test a custom SFTP client we made. That was working great.

            Lastly, we want to get rid of junit in favor of the spock framework because we try to migrate to groovy.

            Do you guys know any equivalent of FakeSftpServerRule or any way to "switch" a junit rule into a spock rule equivalent ?

            Thank you a lot.



            Answered 2022-Feb-13 at 00:56

            The same author also published Fake SFTP Server Lambda, which is independent of the test framework in contrast to the JUnit 4 rule you use.

            If you want to stick with the old tool, Spock 1.3 can also use JUnit 4 rules, and in Spock 2.x it might also work with the JUnit 4 compatibility layer.

            Update: Here is an example program using the SSHJ library for downloading a file from an SFTP server, so we have a subject under test:

            Source https://stackoverflow.com/questions/71081881

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install fake-sftp-server-rule

            Fake SFTP Server Rule is available from Maven Central. If you upgrade from a version < 2.x to the newest version please read the last section of this readme.


            You have three options if you have a feature request, found a bug or simply have a question about Fake SFTP Server Rule.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone stefanbirkner/fake-sftp-server-rule

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Continuous Deployment Libraries

            Try Top Libraries by stefanbirkner


            by stefanbirknerJava


            by stefanbirknerJava


            by stefanbirknerJava


            by stefanbirknerShell


            by stefanbirknerPython