-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add more test coverage #373
Conversation
c46c867
to
583ad71
Compare
Otherwise we’ll get: ``` TestFirewalls#test_lifecycle: Google::Apis::ClientError: invalid: Invalid value for field 'resource.allowed[0]': ''. Must specify at least one rule. ``` , which is not very user friendly.
@@ -27,6 +40,10 @@ class Firewall < Fog::Model | |||
|
|||
def save | |||
requires :identity | |||
q | |||
unless self.allowed || self.denied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/RedundantSelf: Redundant self detected.
Codecov Report
@@ Coverage Diff @@
## master #373 +/- ##
=========================================
Coverage ? 81.43%
=========================================
Files ? 339
Lines ? 5757
Branches ? 0
=========================================
Hits ? 4688
Misses ? 1069
Partials ? 0
Continue to review full report at Codecov.
|
a31a7c3
to
aadd8b5
Compare
All tests pass, merging. |
Further improving coverage: