Skip to content

Commit

Permalink
chore: moved versionhandlingtest to functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psmf22 committed Jan 16, 2024
1 parent 4588bf5 commit de9194e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ fcli.log
/ReportTemplateDefAnswerTemplate.y*ml*
/*.rptdesign
*.log
fcli-core/fcli-tool/src/main/resources/com/fortify/cli/tool/config/tool-definitions.yaml.zip

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 de9194e

Please sign in to comment.