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

upcoming: [M3-9096] - Add factories and mocks for new API /v4/linode/interfaces endpoints #11875

Merged
merged 11 commits into from
Mar 19, 2025

Conversation

coliu-akamai
Copy link
Contributor

@coliu-akamai coliu-akamai commented Mar 18, 2025

Description 📝

  • Adds mocking for new /v4/linode/interfaces endpoints

Changes 🔄

  • see API spec > New Endpoints to see which endpoints are now supported
  • Also updated createLinode to support creating linodes with new interfaces

How to test 🧪

  • Confirm that mocking (generally) works
  • Create a Linode with a new Public Interface, attach a firewall, confirm things show up as expected
  • test upgrading interfaces
  • see comments for testing VPC Linode interfaces

Some endpoints are currently not reachable, will be more reachable as UI continues to be built out

Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

Comment on lines +265 to +269
payload.interfaces &&
payload.interfaces.some(
(iface: CreateLinodeInterfacePayload) => iface.vpc
)
) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

...hopefully this part just works, but I will make tweaks to it as needed when I begin reviewing #11847

Copy link
Contributor Author

@coliu-akamai coliu-akamai Mar 18, 2025

Choose a reason for hiding this comment

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

(ok now it works 😆)
(btw I've been testing VPC Linode interfaces on this branch, which is essentially these changes added onto the changes in #11847)

@coliu-akamai coliu-akamai marked this pull request as ready for review March 18, 2025 16:26
@coliu-akamai coliu-akamai requested a review from a team as a code owner March 18, 2025 16:26
@coliu-akamai coliu-akamai requested review from hana-akamai and abailly-akamai and removed request for a team March 18, 2025 16:26
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #3 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing538 Passing3 Skipped137m 15s

Details

Failing Tests
SpecTest
clone-linode.spec.tsclone linode » can clone a Linode from Linode details page

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/linodes/clone-linode.spec.ts"

Copy link

Coverage Report:
Base Coverage: 79.96%
Current Coverage: 79.96%

Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

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

Thanks!

@coliu-akamai coliu-akamai added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Mar 19, 2025
Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

Thank you!!!

@coliu-akamai coliu-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Mar 19, 2025
@coliu-akamai coliu-akamai merged commit 9602ac9 into linode:develop Mar 19, 2025
26 of 27 checks passed
@coliu-akamai coliu-akamai deleted the m3-9096 branch March 19, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Linode Interfaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants