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

Display external IPs on primary network interface #1070

Merged
merged 8 commits into from
Jul 26, 2022
Merged

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Jul 25, 2022

Closes #1066

Depends on oxidecomputer/omicron#1495, which is waiting on oxidecomputer/omicron#1478.

image

@vercel
Copy link

vercel bot commented Jul 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview Jul 26, 2022 at 7:38PM (UTC)

Comment on lines 65 to 67
await expectRowVisible(page, 'nic-2', ['nic-2', null, null, null, null, 'primary'])
await expectRowVisible(page, 'nic-2', ['nic-2', null, null, null, null, null, 'primary'])
Copy link
Contributor

Choose a reason for hiding this comment

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

Feel like we need a better way to do this. Key/value pairs for table names or something.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

const skip = (n: number) => new Array(5).fill(null)

await expectRowVisible(page, 'nic-2', ['nic-2', ...skip(5), 'primary'])

😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this actually works ahaha

await expectRowVisible(page, 'nic-2', ['nic-2', , , , , , 'primary'])

Copy link
Contributor

Choose a reason for hiding this comment

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

I just mean more so the test doesn't need to be changed just because you add a new field.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, you’re totally right. I’ll give it a quick shot.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're gonna love 95fd19a

Copy link
Contributor

@zephraph zephraph left a comment

Choose a reason for hiding this comment

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

Looks great. Love the test improvements, they feel much sturdier.

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.

Show external IP for instance primary NIC
2 participants