Skip to content

Commit

Permalink
chore: Functional test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Oct 20, 2023
1 parent 3f6f232 commit c902606
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import spock.lang.Shared
import spock.lang.Stepwise

@Prefix("ssc.token-definitions") @FcliSession(SSC) @Stepwise
class SSCTokenDefinitionSpec extends FcliBaseSpec {
class SSCAccessControlTokenDefinitionSpec extends FcliBaseSpec {

def "list"() {
def args = "ssc token list-definitions"
def args = "ssc ac list-token-definitions"
when:
def result = Fcli.run(args)
then:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import spock.lang.Stepwise

@Prefix("ssc.token") @FcliSession(SSC) @Stepwise
@Requires({System.getProperty('ft.ssc.user') && System.getProperty('ft.ssc.password')})
class SSCTokenSpec extends FcliBaseSpec {
class SSCAccessControlTokenSpec extends FcliBaseSpec {
String user = System.getProperty('ft.ssc.user');
String pass = System.getProperty('ft.ssc.password');


def "create"() {
def args = "ssc token create CIToken --expire-in='5m' --user=$user --password=$pass --store token"
def args = "ssc ac create-token CIToken --expire-in='5m' --user=$user --password=$pass --store token"
when:
def result = Fcli.run(args)
then:
Expand All @@ -44,7 +44,7 @@ class SSCTokenSpec extends FcliBaseSpec {
}

def "verifyCreated"() {
def args = "ssc token list -q id==#var('token').id --user=$user --password=$pass"
def args = "ssc ac list-tokens -q id==#var('token').id --user=$user --password=$pass"
when:
def result = Fcli.run(args)
then:
Expand All @@ -56,7 +56,7 @@ class SSCTokenSpec extends FcliBaseSpec {
}

def "update"() {
def args = "ssc token update --description=updatedDescription --user=$user --password=$pass ::token::id -o table=id,description"
def args = "ssc ac update-token --description=updatedDescription --user=$user --password=$pass ::token::id -o table=id,description"
when:
def result = Fcli.run(args)
then:
Expand All @@ -68,7 +68,7 @@ class SSCTokenSpec extends FcliBaseSpec {
}

def "verifyUpdated"() {
def args = "ssc token list -q id==#var('token').id --user=$user --password=$pass -o table=id,description"
def args = "ssc ac list-tokens -q id==#var('token').id --user=$user --password=$pass -o table=id,description"
when:
def result = Fcli.run(args)
then:
Expand All @@ -80,7 +80,7 @@ class SSCTokenSpec extends FcliBaseSpec {
}

def "revoke"() {
def args = "ssc token revoke ::token::restToken --user=$user --password=$pass"
def args = "ssc ac revoke-token ::token::restToken --user=$user --password=$pass"
when:
def result = Fcli.run(args)
then:
Expand All @@ -92,7 +92,7 @@ class SSCTokenSpec extends FcliBaseSpec {
}

def "verifyRevoked"() {
def args = "ssc token list -q id==#var('token').id --user=$user --password=$pass"
def args = "ssc ac list-tokens -q id==#var('token').id --user=$user --password=$pass"
when:
def result = Fcli.run(args)
then:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import spock.lang.Shared
import spock.lang.Stepwise

@Prefix("ssc.user") @FcliSession(SSC) @Stepwise
class SSCUserSpec extends FcliBaseSpec {
class SSCAccessControlUserSpec extends FcliBaseSpec {
@Shared private final String random = System.currentTimeMillis()
@Shared private final String userName = "fclitemporarytestuser"+random

Expand All @@ -35,7 +35,7 @@ class SSCUserSpec extends FcliBaseSpec {
@Shared private String mailval = "email: \"$random@mail.mail\""

def "list"() {
def args = "ssc user list --store users"
def args = "ssc ac list-users --store users"
when:
def result = Fcli.run(args)
then:
Expand All @@ -47,7 +47,7 @@ class SSCUserSpec extends FcliBaseSpec {
}

def "create"() {
def args = "ssc user create --username $userName --password P@ssW._ord123 --pne --suspend --rpc --firstname fName --lastname lName --email $random@mail.mail --roles viewonly --store user"
def args = "ssc ac create-user --username $userName --password P@ssW._ord123 --pne --suspend --rpc --firstname fName --lastname lName --email $random@mail.mail --roles viewonly --store user"
when:
def result = Fcli.run(args)
then:
Expand All @@ -62,7 +62,7 @@ class SSCUserSpec extends FcliBaseSpec {
}

def "get.byId"() {
def args = "ssc user get ::user::id"
def args = "ssc ac get-user ::user::id"
when:
def result = Fcli.run(args)
then:
Expand All @@ -73,7 +73,7 @@ class SSCUserSpec extends FcliBaseSpec {
}

def "get.byName"() {
def args = "ssc user get ::user::userName"
def args = "ssc ac get-user ::user::userName"
when:
def result = Fcli.run(args)
then:
Expand All @@ -84,7 +84,7 @@ class SSCUserSpec extends FcliBaseSpec {
}

def "get.byMail"() {
def args = "ssc user get ::user::email"
def args = "ssc ac get-user ::user::email"
when:
def result = Fcli.run(args)
then:
Expand All @@ -95,7 +95,7 @@ class SSCUserSpec extends FcliBaseSpec {
}

def "delete"() {
def args = "ssc user delete ::user::id"
def args = "ssc ac delete-user ::user::id"
when:
def result = Fcli.run(args)
then:
Expand All @@ -106,7 +106,7 @@ class SSCUserSpec extends FcliBaseSpec {
}

def "verifyDeleted"() {
def args = "ssc user list --store users"
def args = "ssc ac list-users --store users"
when:
def result = Fcli.run(args)
then:
Expand Down

0 comments on commit c902606

Please sign in to comment.