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

Fix bugs introduced from #642 #647

Merged
merged 1 commit into from
Mar 22, 2018
Merged

Fix bugs introduced from #642 #647

merged 1 commit into from
Mar 22, 2018

Conversation

austinbyers
Copy link
Contributor

to: @ryandeivert or @chunyong-lin
cc: @airbnb/streamalert-maintainers
size: small

Background

When syncing #642 internally, we found a couple of bugs related to rule testing. Namely:

  • The output credentials bucket was not mocked correctly because it had the wrong name
  • The mocks for the threat intel table and the alerts table conflict with each other

Changes

  • Reverted name of the secrets bucket in the alert processor (prefix.streamalert.secrets is correct, not prefix_streamalert_secrets)
  • Remove @mock_dynamodb2 decorator from methods which setup mock tables, because the context is already mocked when those methods are called

Testing

  • Deployed this to a test account and tested the slack integration (to confirm output secrets are working as expected). Going forward, I'll make sure to test outputs with secrets when making large changes to the alert processor.
  • Synced this branch internally and all tests pass

@austinbyers austinbyers added this to the 2.0.0 milestone Mar 22, 2018
@austinbyers austinbyers changed the title Fix secrets bucket and rule tests Fix bugs introduced from #642 Mar 22, 2018
Copy link
Contributor

@ryandeivert ryandeivert left a comment

Choose a reason for hiding this comment

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

🐑

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.554% when pulling 0a9ed21 on austin-rule-tests into 7d2804d on master.

@austinbyers austinbyers merged commit e64e643 into master Mar 22, 2018
@austinbyers austinbyers deleted the austin-rule-tests branch March 22, 2018 00:26
@ryandeivert ryandeivert removed the apps label Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants