Skip to content

Commit c8d3142

Browse files
committed
service cluster: add integration test
1 parent 406a0fc commit c8d3142

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/service/cluster/service_integration_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,23 @@ func TestServiceStorageIntegration(t *testing.T) {
800800
})
801801
}
802802

803+
func TestVerifySMAndAgentVersionsIntegration(t *testing.T) {
804+
session := CreateScyllaManagerDBSession(t)
805+
secretsStore := store.NewTableStore(session, table.Secrets)
806+
s, err := cluster.NewService(session, metrics.NewClusterMetrics(), secretsStore, scyllaclient.DefaultTimeoutConfig(),
807+
server.DefaultConfig().ClientCacheTimeout, log.NewDevelopment())
808+
if err != nil {
809+
t.Fatal(err)
810+
}
811+
812+
t.Run("verify scylla manager and agent versions", func(t *testing.T) {
813+
err = s.VerifySMAndAgentVersions(context.Background())
814+
if err != nil {
815+
t.Fatalf("scylla manager and agent have different versions %v", err)
816+
}
817+
})
818+
}
819+
803820
func validCluster() *cluster.Cluster {
804821
return &cluster.Cluster{
805822
ID: uuid.MustRandom(),

0 commit comments

Comments
 (0)