Skip to content

Conversation

pdhanoya-splunk
Copy link
Contributor

  • Added utilities need for S3 Index test cases
  • Created a new test suite for Index Management
  • Created S3 utilities to get object from S3 and verify object exists on S3

@pdhanoya-splunk pdhanoya-splunk force-pushed the CSPL-540-s3-secret-object branch 6 times, most recently from 2b504f8 to 145c69e Compare January 26, 2021 22:38
if err != nil {
logf.Log.Error(err, "Failed to create s3 session")
}
svc := s3.New(session.Must(sess, err))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! No issue here just wanted to tag @kumarajeet @vebken-splunk since this is what we could use for App framework.

@jryb
Copy link
Contributor

jryb commented Jan 26, 2021

This PR lowered our coverage in coveralls?!?!? Do we count the code in test/ against our code coverage? Should we be unit testing our smoke test code?

@pdhanoya-splunk pdhanoya-splunk force-pushed the CSPL-540-s3-secret-object branch from 145c69e to 6456b5a Compare January 26, 2021 23:19
}
})

Context("Confiugre indexes on standlaone deployment using CR Spec", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Typos

// RollHotBuckets roll hot buckets in cluster
func RollHotBuckets(deployment *Deployment) bool {
podName := fmt.Sprintf("splunk-%s-cluster-master-0", deployment.GetName())
stdin := "/opt/splunk/bin/splunk rolling-restart cluster-peers -auth admin:$(cat /mnt/splunk-secrets/password)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just use the roll-hot-buckets command instead of rolling-restart?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do that as part of next PR. I just added this util but its not being used. I am using roll-hot-buckets on standalone which is part of this PR and will follow similar pattern for Indexer cluster.

@pdhanoya-splunk pdhanoya-splunk force-pushed the CSPL-540-s3-secret-object branch from 6456b5a to dc1b255 Compare January 27, 2021 06:01
@pdhanoya-splunk pdhanoya-splunk force-pushed the CSPL-540-s3-secret-object branch from dc1b255 to f7bc91a Compare January 27, 2021 06:02
@smohan-splunk smohan-splunk merged commit bdb443c into develop Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants