@@ -28,14 +28,15 @@ func (suite *RadosGWTestSuite) TestAccount() {
2828 assert .ErrorIs (suite .T (), err , ErrInvalidArgument )
2929 })
3030
31- if util .CurrentCephVersion () > util .CephTentacle {
32- suite .T ().Run ("successfully get account" , func (_ * testing.T ) {
33- account , err := co .GetAccount (context .Background (), "RGW12345678901234567" )
34- assert .NoError (suite .T (), err )
35- assert .Equal (suite .T (), "RGW12345678901234567" , account .ID )
36- assert .Equal (suite .T (), "test-account" , account .Name )
37- })
38- }
31+ suite .T ().Run ("successfully get account" , func (t * testing.T ) {
32+ if util .CurrentCephVersion () <= util .CephTentacle {
33+ t .Skipf ("GetAccount is not yet supported on %s" , util .CurrentCephVersionString ())
34+ }
35+ account , err := co .GetAccount (context .Background (), "RGW12345678901234567" )
36+ assert .NoError (t , err )
37+ assert .Equal (t , "RGW12345678901234567" , account .ID )
38+ assert .Equal (t , "test-account" , account .Name )
39+ })
3940
4041 suite .T ().Run ("fail to modify account since no ID provided" , func (_ * testing.T ) {
4142 _ , err := co .ModifyAccount (context .Background (), Account {Name : "modified-account" })
@@ -54,10 +55,11 @@ func (suite *RadosGWTestSuite) TestAccount() {
5455 assert .ErrorIs (suite .T (), err , ErrInvalidArgument )
5556 })
5657
57- if util .CurrentCephVersion () > util .CephTentacle {
58- suite .T ().Run ("successfully delete account" , func (_ * testing.T ) {
59- err := co .DeleteAccount (context .Background (), "RGW12345678901234567" )
60- assert .NoError (suite .T (), err )
61- })
62- }
58+ suite .T ().Run ("successfully delete account" , func (t * testing.T ) {
59+ if util .CurrentCephVersion () <= util .CephTentacle {
60+ t .Skipf ("DeleteAccount is not yet supported on %s" , util .CurrentCephVersionString ())
61+ }
62+ err := co .DeleteAccount (context .Background (), "RGW12345678901234567" )
63+ assert .NoError (t , err )
64+ })
6365}
0 commit comments