Skip to content

Commit

Permalink
changed few formatting issues
Browse files Browse the repository at this point in the history
Signed-off-by: vivekr-splunk <94569031+vivekr-splunk@users.noreply.github.com>
  • Loading branch information
vivekr-splunk committed Sep 13, 2023
1 parent fed6f8a commit ad0882a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/provisioner/splunk/implementation/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func (p *splunkProvisioner) GetLicenseLocalPeer(ctx context.Context, conditions
return result, err
}

// GetClusterManagerStatus Access cluster node configuration details.
func (p *splunkProvisioner) GetLicense(ctx context.Context, conditions *[]metav1.Condition) (result provmodel.Result, err error) {
// GetLicenseStatus Access cluster node configuration details.
func (p *splunkProvisioner) GetLicenseStatus(ctx context.Context, conditions *[]metav1.Condition) (result provmodel.Result, err error) {
_, err = callLicense(ctx, p)
lslistptr, err := callLicense(ctx, p)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioner/splunk/implementation/license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestGetGetLicense(t *testing.T) {

ctx := context.TODO()

_, err := provisioner.GetLicense(ctx, conditions)
_, err := provisioner.GetLicenseStatus(ctx, conditions)
if err != nil {
t.Errorf("fixture: error in set cluster manager %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioner/splunk/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ type Provisioner interface {
// GetLicenseLocalPeer
GetLicenseLocalPeer(ctx context.Context, conditions *[]metav1.Condition) (result provmodel.Result, err error)

GetLicense(ctx context.Context, conditions *[]metav1.Condition) (result provmodel.Result, err error)
GetLicenseStatus(ctx context.Context, conditions *[]metav1.Condition) (result provmodel.Result, err error)
}
2 changes: 1 addition & 1 deletion pkg/splunk/enterprise/licensemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (p *splunkManager) ApplyLicenseManager(ctx context.Context, client splcommo
// Verification of splunk instance update CR status
// We are using Conditions to update status information
provResult := provmodel.Result{}
provResult, err = p.provisioner.GetLicense(ctx, &cr.Status.Conditions)
provResult, err = p.provisioner.GetLicenseStatus(ctx, &cr.Status.Conditions)
if err != nil {
cr.Status.ErrorMessage = provResult.ErrorMessage
}
Expand Down
3 changes: 1 addition & 2 deletions test/licensemanager/lm_s1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ var _ = Describe("Licensemanager test", func() {
// Download License File
downloadDir := "licenseFolder"
switch testenv.ClusterProvider {
case "eks":
licenseFilePath, err := testenv.DownloadLicenseFromS3Bucket()
case "eks": licenseFilePath, err := testenv.DownloadLicenseFromS3Bucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
Expand Down

0 comments on commit ad0882a

Please sign in to comment.