From 65a0362aa32fce44b1a23f9f264b2baa3a1eb3b7 Mon Sep 17 00:00:00 2001 From: Yashvi Jain Date: Mon, 13 May 2024 20:03:18 +0530 Subject: [PATCH] Adding license in gateway intergation Signed-off-by: Yashvi Jain --- .../automate-gateway/integration/data_lifecycle_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/automate-gateway/integration/data_lifecycle_test.go b/components/automate-gateway/integration/data_lifecycle_test.go index 68704fcc36ed..127c1b7d2b19 100644 --- a/components/automate-gateway/integration/data_lifecycle_test.go +++ b/components/automate-gateway/integration/data_lifecycle_test.go @@ -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{ @@ -83,8 +83,6 @@ func (suite *GatewayTestSuite) TestDataLifecycleConfigure() { }, } - - newEventFeedConfig := &data_lifecycle.SetEventFeedConfigRequest{ JobSettings: []*data_lifecycle.JobSettings{ &data_lifecycle.JobSettings{ @@ -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{ @@ -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)