-
Notifications
You must be signed in to change notification settings - Fork 3
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
test: pkg/aws/s3 #31
test: pkg/aws/s3 #31
Conversation
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.
👍🏻 With one nit, but naming is hard and I think this is great.
if group.Keys == nil { | ||
log.Printf("skipping group without keys") | ||
continue | ||
} |
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.
This fixes a potential, if unlikely, panic.
// TODO: region lookup failure | ||
// TODO: test should fail | ||
Keys: []string{"AWS GovCloud (US-East)-Requests-Tier1"}, |
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.
This may actually be a bug?
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.
Hmm, we don't have any govcloud instances so this is likely a bug. Do you have an example output of it failing?
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.
This is awesome, really happy to see where this is going. Thanks @skl!
CostExplorer
interface in front of the real AWS Cost ExplorerCostExplorer
instead of AWS*costexplorer.Client
struct