Skip to content

Commit

Permalink
Adding license in gateway intergation
Browse files Browse the repository at this point in the history
Signed-off-by: Yashvi Jain <[email protected]>
  • Loading branch information
Yashvi Jain committed May 13, 2024
1 parent bb28920 commit 65a0362
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ func (suite *GatewayTestSuite) TestDataLifecycleConfigure() {
oldStatus, err := dlClient.GetStatus(suite.ctx, &data_lifecycle.GetStatusRequest{})
suite.Require().NoError(err)

// Se
// Set each config individually
newComplianceConfig := &data_lifecycle.SetComplianceConfigRequest{
JobSettings: []*data_lifecycle.JobSettings{
&data_lifecycle.JobSettings{
Name: compliancePurgeJobName,
Di
Disabled: true,
Recurrence: testRecurrence,
PurgePolicies: &data_lifecycle.PurgePolicyUpdate{
Elasticsearch: []*data_lifecycle.EsPolicyUpdate{
Expand All @@ -83,8 +83,6 @@ func (suite *GatewayTestSuite) TestDataLifecycleConfigure() {
},
}



newEventFeedConfig := &data_lifecycle.SetEventFeedConfigRequest{
JobSettings: []*data_lifecycle.JobSettings{
&data_lifecycle.JobSettings{
Expand Down Expand Up @@ -253,6 +251,7 @@ func (suite *GatewayTestSuite) TestDataLifecycleConfigure() {
// if our job was successfully run.
func (suite *GatewayTestSuite) TestDataLifecycleRun() {
dlClient := data_lifecycle.NewDataLifecycleClient(suite.gwConn)

licenseClient, _ := suite.clients.LicenseControlClient()

updateRequest := &license_control.UpdateRequest{
Expand Down Expand Up @@ -665,7 +664,6 @@ func (suite *GatewayTestSuite) TestConvertJobStatusToJobSetting() {
licenseClient.Update(suite.ctx, updateRequest)
generatedSettings := jobStatusesToJobSettings(statuses)


// Rather than deep compare our expected settings with the generated settings
// we can assert that both match the statuses.
suite.assertJobSettingsMatchJobStatus(generatedSettings, statuses)
Expand Down

0 comments on commit 65a0362

Please sign in to comment.