Skip to content

Commit

Permalink
Merge pull request #504 from psmf22/tool_debricked
Browse files Browse the repository at this point in the history
chore: moved versionhandlingtest to functional tests
  • Loading branch information
rsenden authored Jan 16, 2024
2 parents 4588bf5 + 9b9827d commit ce106c9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ build/
# We want to include everything in our functional test resources
!**/ftest/resources/runtime/**/*

# automatically downloaded during gradle build
fcli-core/fcli-tool/src/main/resources/com/fortify/cli/tool/config/tool-definitions.yaml.zip

### STS ###
.apt_generated
.classpath
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import spock.lang.Stepwise
@Prefix("tool.fod-uploader") @Stepwise
class ToolFoDUploaderSpec extends FcliBaseSpec {

def "install"() {
def "installLatest"() {
def args = "tool fod-uploader install -y -v=latest"
when:
def result = Fcli.run(args)
Expand Down Expand Up @@ -66,4 +66,43 @@ class ToolFoDUploaderSpec extends FcliBaseSpec {
}
}

def "installV5"() {
def args = "tool fod-uploader install -y -v=5"
when:
def result = Fcli.run(args)
then:
verifyAll(result.stdout) {
size()>0
it[0].replace(' ', '').equals("NameVersionDefaultInstalledInstalldirBindirAction")
it[1].replace(" ", "").contains("5.4.0")
it[1].contains("INSTALLED")
}
}

def "installV50"() {
def args = "tool fod-uploader install -y -v=5.0"
when:
def result = Fcli.run(args)
then:
verifyAll(result.stdout) {
size()>0
it[0].replace(' ', '').equals("NameVersionDefaultInstalledInstalldirBindirAction")
it[1].replace(" ", "").contains("5.0.1")
it[1].contains("INSTALLED")
}
}

def "installV500"() {
def args = "tool fod-uploader install -y -v=5.0.0"
when:
def result = Fcli.run(args)
then:
verifyAll(result.stdout) {
size()>0
it[0].replace(' ', '').equals("NameVersionDefaultInstalledInstalldirBindirAction")
it[1].replace(" ", "").contains("5.0.0")
it[1].contains("INSTALLED")
}
}

}

0 comments on commit ce106c9

Please sign in to comment.