Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOUDP-78654: Missing audit filter on convert #545

Merged
merged 2 commits into from
Dec 9, 2020
Merged

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Dec 9, 2020

Proposed changes

Jira ticket: CLOUDP-78654

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

@@ -173,7 +173,7 @@ func createProject(projectName string) (string, error) {
cmd.Env = os.Environ()
resp, err := cmd.CombinedOutput()
if err != nil {
return "", err
return "", fmt.Errorf("%s (%w)", string(resp), err)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drive by debug, a tests was failing here and needed to see why

@@ -363,6 +363,7 @@ func (p *ProcessConfig) auditLog() *opsmngr.AuditLog {
Destination: p.auditLogDestination(),
Path: p.AuditLogPath,
Format: p.AuditLogFormat,
Filter: p.AuditLogFilter,
Copy link
Collaborator Author

@gssbzn gssbzn Dec 9, 2020

Choose a reason for hiding this comment

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

I missed this, the rest is tests

@@ -116,3 +113,166 @@ func TestNewReplicaSetProcessConfig(t *testing.T) {

assert.Equal(t, expected, result)
}

func Test_newConfigRSProcess(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a test of ops manager -> mcli but not one mcli -> ops manager, so now we have both

Copy link

@threebee threebee left a comment

Choose a reason for hiding this comment

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

LGTM!

@gssbzn gssbzn merged commit db4d248 into master Dec 9, 2020
@gssbzn gssbzn deleted the CLOUDP-78654 branch December 9, 2020 11:54
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.

None yet

2 participants