-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from fherbreteau/feature/update_project_group_id
Feature/update project group
- Loading branch information
Showing
29 changed files
with
251 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ | |
/*.idea/ | ||
/*.iml | ||
/**/*.iml | ||
/.vscode/ | ||
/.metals/ | ||
/.bloop/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Plugin for support performance testing with SFTP in Gatling (3.9.x) | ||
|
||
## Getting Started | ||
|
||
Plugin is currently available for Scala 2.12. | ||
|
||
You may add plugin as dependency in project with your tests. Write this to your build.sbt: | ||
|
||
``` scala | ||
libraryDependencies += "io.github.fherbreteau" %% "gatling-sftp" % <version> % Test | ||
``` | ||
|
||
## Example Scenarios | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
src/main/java/com/github/fherbreteau/gatling/sftp/javaapi/Sftp.java
This file was deleted.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
src/main/java/io/github/fherbreteau/gatling/sftp/javaapi/Sftp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package io.github.fherbreteau.gatling.sftp.javaapi; | ||
|
||
import io.gatling.commons.validation.Validation; | ||
import io.gatling.core.session.Session; | ||
import io.gatling.javaapi.core.internal.Expressions; | ||
import io.github.fherbreteau.gatling.sftp.javaapi.action.SftpActionBuilder; | ||
import scala.Function1; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.function.Function; | ||
|
||
public class Sftp { | ||
|
||
private final Function1<Session, Validation<String>> name; | ||
|
||
Sftp(Function1<io.gatling.core.session.Session, Validation<String>> name) { | ||
this.name = name; | ||
} | ||
|
||
public SftpActionBuilder move(@Nonnull String file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).move(Expressions.toStringExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder move(@Nonnull Function<io.gatling.javaapi.core.Session, String> file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).move(Expressions.javaFunctionToExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder copy(@Nonnull String file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).copy(Expressions.toStringExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder copy(@Nonnull Function<io.gatling.javaapi.core.Session, String> file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).copy(Expressions.javaFunctionToExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder delete(@Nonnull String file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).delete(Expressions.toStringExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder delete(@Nonnull Function<io.gatling.javaapi.core.Session, String> file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).delete(Expressions.javaFunctionToExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder upload(@Nonnull String file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).upload(Expressions.toStringExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder upload(@Nonnull Function<io.gatling.javaapi.core.Session, String> file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).upload(Expressions.javaFunctionToExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder download(@Nonnull String file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).download(Expressions.toStringExpression(file))); | ||
} | ||
|
||
public SftpActionBuilder download(@Nonnull Function<io.gatling.javaapi.core.Session, String> file) { | ||
return new SftpActionBuilder(new io.github.fherbreteau.gatling.sftp.Sftp(name).download(Expressions.javaFunctionToExpression(file))); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...breteau/gatling/sftp/javaapi/SftpDsl.java → ...breteau/gatling/sftp/javaapi/SftpDsl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ftp/javaapi/action/SftpActionBuilder.java → ...ftp/javaapi/action/SftpActionBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
src/main/scala/com/github/fherbreteau/gatling/sftp/Predef.scala
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/main/scala/io/github/fherbreteau/gatling/sftp/Predef.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package io.github.fherbreteau.gatling.sftp | ||
|
||
object Predef extends SftpDsl |
6 changes: 3 additions & 3 deletions
6
...ithub/fherbreteau/gatling/sftp/Sftp.scala → ...ithub/fherbreteau/gatling/sftp/Sftp.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ub/fherbreteau/gatling/sftp/SftpDsl.scala → ...ub/fherbreteau/gatling/sftp/SftpDsl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...teau/gatling/sftp/action/SftpAction.scala → ...teau/gatling/sftp/action/SftpAction.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.