Skip to content
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

feat: Enabled VRF routes in metal-cli #425

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

codinja1188
Copy link
Contributor

@codinja1188 codinja1188 commented Dec 26, 2023

What issues it address?

#414

  • Enabled VRF routes in Metal-cli.
  • Improved metal gateways to support Vrf gateway inputs.

docs/metal_vrf.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ctreatma ctreatma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need tests covering these subcommands as well

docs/metal_vrf.md Outdated Show resolved Hide resolved
docs/metal_vrf.md Outdated Show resolved Hide resolved
cmd/cli.go Outdated Show resolved Hide resolved
internal/vrfroute/vrfroute.go Outdated Show resolved Hide resolved
@@ -28,7 +28,7 @@ func TestClient() *metalv1.APIClient {
configuration.AddDefaultHeader("X-Auth-Token", os.Getenv("METAL_AUTH_TOKEN"))
configuration.UserAgent = fmt.Sprintf("metal-cli/test-helper %s", configuration.UserAgent)
// For debug purpose
// configuration.Debug = true
configuration.Debug = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you're in the process of updating the tests; just remember to turn Debug off before this gets merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@ctreatma ctreatma merged commit 36f4f5e into equinix:main Jan 30, 2024
9 checks passed
Comment on lines +116 to +119
// Actually user have to wait for 5 min to updae the VRF-routes. This test case is skipped intentionally
if true {
t.Skip("Skipping this test because someCondition is true")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In cases like this it is much better to implement a wait function so that the test can be executed than it is to skip the test. #441 enables this test and fixes a bug that was uncovered by running the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants