-
Notifications
You must be signed in to change notification settings - Fork 266
tests: Log network interfaces before and after destroy #2157
Conversation
Can one of the admins verify this patch? |
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.
I'll defer the actual implementation review to @alexsomesan, but if it does what it is supposed to do, I have no objection once green ;-)
tests/rspec/lib/aws_cluster.rb
Outdated
describe_network_interfaces | ||
end | ||
|
||
def describe_network_interfaces |
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.
I'm afraid such debug sections will be forgotten around the code once the issues get fixed.
Do you think it makes sense to gate these sections with an environment variable flag so that they only run while that var is set? That way we can also grep the tests code for that var name to discover any stale debug statements.
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.
@alexsomesan Would a comment with a keyword like DEBUG
be enough? This way we can grep for it in the code base.
It fails on the second go, as in the best case there are no network interfaces no more. I will look into it. |
c0d2f92
to
9848805
Compare
@alexsomesan @mxinden is this ready? |
9848805
to
ae168d7
Compare
@squat Added one small refactoring. I will request for review once ready. @alexsomesan Any opinion on #2157 (comment) ? |
ae168d7
to
6a8ab83
Compare
@squat @alexsomesan Could you give this another review? |
6a8ab83
to
3407f67
Compare
@mxinden taking over, as INST-288 has been priorized |
For better upstream Terraform debugging we would like to log the network interfaces related to the VPC. For further details see: hashicorp/terraform-provider-aws#1051
3407f67
to
0acd7a2
Compare
ok to test |
@s-urbaniak @alexsomesan Tests are all green. Can you approve once again, so I can merge? |
For better upstream Terraform debugging we would like to log the network
interfaces related to the VPC. For further details see:
hashicorp/terraform-provider-aws#1051
@erikkn This change will add something along the lines of this to the test log:
The goal would be to be able to analyse this with the Elastic search project. Should I log any particular keyword before or after so we can extract it from the logs?