Skip to content

Commit

Permalink
fix: update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisuhag committed Jul 1, 2023
1 parent e78d2ee commit 02d816d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/e2e_test/cortex_alerting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ func (s *CortexAlertingTestSuite) SetupTest() {

s.appConfig.Log.Level = "error"
s.appConfig.Service = server.Config{
Port: apiPort,
Port: apiPort,
GRPC: server.GRPCConfig{
Port: 8081,
},
EncryptionKey: testEncryptionKey,
}
s.appConfig.Notification = notification.Config{
Expand Down
5 changes: 4 additions & 1 deletion test/e2e_test/cortex_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ func (s *CortexNamespaceTestSuite) SetupTest() {

s.appConfig.Log.Level = "error"
s.appConfig.Service = server.Config{
Port: apiPort,
Port: apiPort,
GRPC: server.GRPCConfig{
Port: 8081,
},
EncryptionKey: testEncryptionKey,
}
s.appConfig.Notification = notification.Config{
Expand Down
7 changes: 6 additions & 1 deletion test/e2e_test/notification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@ func (s *NotificationTestSuite) SetupTest() {

apiPort, err := getFreePort()
s.Require().Nil(err)
grpcPort, err := getFreePort()
s.Require().Nil(err)

s.appConfig = &config.Config{}

defaults.SetDefaults(s.appConfig)

s.appConfig.Log.Level = "error"
s.appConfig.Service = server.Config{
Port: apiPort,
GRPC: server.GRPCConfig{
Port: apiPort,
},
Port: grpcPort,
EncryptionKey: testEncryptionKey,
}
s.appConfig.Notification = notification.Config{
Expand Down

0 comments on commit 02d816d

Please sign in to comment.