-
Notifications
You must be signed in to change notification settings - Fork 46
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
Added Unit test case for events sub commands #305
Conversation
300d0d7
to
a150b79
Compare
Now that the e2e tests have been moved to a separate workflow, the e2e test files should be moved into the |
a150b79
to
cd568de
Compare
cd568de
to
39e7b24
Compare
39e7b24
to
d3b3f59
Compare
d3b3f59
to
00d8c32
Compare
00d8c32
to
bf5b90d
Compare
Note that the tests are failing due to what looks like a 10-minute timeout (the timeout is happening in the test code, it's not an API request timeout). https://github.com/equinix/metal-cli/actions/runs/5648492098/job/15300834778 |
I think this is failing because of the sheer number of available events; the paginator is trying to load all of them and there are so many that it's taking too long for the test to pass. For now, lets update the test to do a |
bf5b90d
to
c7ca146
Compare
c7ca146
to
f6289e3
Compare
f6289e3
to
b9cf963
Compare
b9cf963
to
cd61670
Compare
cd61670
to
c071eb2
Compare
}, | ||
want: &cobra.Command{}, | ||
cmdFunc: func(t *testing.T, c *cobra.Command) { | ||
root := c.Root() |
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.
You even added a device events test! Nice!
Added Unit test case for events sub commands
Added Unit test case for events sub commands