chore: add e2e test for eventhub as a destination for shoebox diagnostic logs#4863
chore: add e2e test for eventhub as a destination for shoebox diagnostic logs#4863ashishmax31 wants to merge 1 commit intomainfrom
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test stage-e2e-parallel |
2dd1726 to
1d99d0f
Compare
|
Keeping it draft because i'm waiting for stage e2e to pass. |
|
|
||
| // Specs can be globally filtered... | ||
| // specs = specs.MustFilter([]string{`name.contains("filter")`}) | ||
| specs = specs.MustFilter([]string{`name.contains("shoebox")`}) |
There was a problem hiding this comment.
Adding this filter for quick feedback from stage e2e. Will remove once stage e2e passes.
|
/test stage-e2e-parallel |
1d99d0f to
08fcc63
Compare
|
/test stage-e2e-parallel |
08fcc63 to
df47717
Compare
df47717 to
701d368
Compare
0035a34 to
34bd9b2
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ashishmax31 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
34bd9b2 to
5c011c8
Compare
|
/test e2e-parallel |
3 similar comments
|
/test e2e-parallel |
|
/test e2e-parallel |
|
/test e2e-parallel |
…tic logs Signed-off-by: Ashish <asnaraya@redhat.com>
5c011c8 to
2c1b140
Compare
| AuthorizationRuleID: *authRuleResp.ID, | ||
| ConnectionString: *keysResp.PrimaryConnectionString, |
| func pollVerifier(ctx context.Context, name string, verifier shoeboxLogVerifier, timeout time.Duration) bool { | ||
| ticker := time.NewTicker(60 * time.Second) | ||
| defer ticker.Stop() | ||
| timer := time.After(timeout) |
There was a problem hiding this comment.
The timer is never cancelled if the context completes first. Use context.WithTimeout instead.
There was a problem hiding this comment.
That is unecessary from go 1.23. From go doc:
"Before Go 1.23, this documentation warned that the underlying Timer would not be recovered by the garbage collector until the timer fired, and that if efficiency was a concern, code should use NewTimer instead and call Timer.Stop if the timer is no longer needed. As of Go 1.23, the garbage collector can recover unreferenced, unstopped timers."
| func createEventHub(ctx context.Context, subscriptionID string, creds azcore.TokenCredential, resourceGroupName, location string) (*eventHubResult, error) { | ||
| const ( | ||
| namespaceName = "shoebox-eh-ns" | ||
| hubName = "shoebox-eh" |
There was a problem hiding this comment.
should this be randomized?
There was a problem hiding this comment.
There is no need to randomize this as they are scoped under a RG (and the RG is randomized)
|
@ashishmax31: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This PR modifies the existing shoebox e2e test to also include azure eventhub as a destination for shoebox diagnostic logs