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

test(core): Rename and combine all credential api tests (no-changelog) #9550

Merged
merged 2 commits into from
May 30, 2024

Conversation

despairblue
Copy link
Contributor

Summary

There are 3 test files testing the /credentials endpoints:

  • packages/cli/test/integration/credentials/credentials.controller.test.ts
  • packages/cli/test/integration/credentials/credentials.ee.test.ts
  • packages/cli/test/integration/credentials.test.ts

From looking at the other tests the conventions seems to be

  1. controller tests are called [resource].api.test.ts
  2. they are inside a resource folder (/[resource]/[resource].api.test.ts)
  3. they are separated into enterprise and non-enterprise suites

So I've renamed the files to match and merged packages/cli/test/integration/credentials.test.ts into packages/cli/test/integration/credentials/credentials.api.test.ts.

Related tickets and issues

none

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels May 30, 2024
@despairblue despairblue marked this pull request as ready for review May 30, 2024 14:23
Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented May 30, 2024

2 flaky tests on run #5192 ↗︎

0 359 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 despairblue 🗃️ e2e/*
Project: n8n Commit: 4aab911666
Status: Passed Duration: 05:02 💡
Started: May 30, 2024 3:05 PM Ended: May 30, 2024 3:10 PM
Flakiness  cypress/e2e/5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video

Review all test suite changes for PR #9550 ↗︎

@despairblue despairblue merged commit a221215 into master May 30, 2024
29 checks passed
@despairblue despairblue deleted the clean-up-credentials-tests branch May 30, 2024 16:01
MiloradFilipovic added a commit that referenced this pull request May 31, 2024
* master:
  fix(editor): Fix ts errors across the board (no-changelog) (#9561)
  refactor(core): Extract all Auth-related User columns into a separate entity (#9557)
  refactor(core): Update supertest, and fix some typing errors (no-changelog) (#9527)
  fix(editor): Render checkboxes in markdown (#9549)
  test(core): Rename and combine all credential api tests (no-changelog) (#9550)
  🚀 Release 1.44.0 (#9553)
  feat(editor): Node Creator AI nodes improvements  (#9484)
  fix(editor): Show workflow data in header when execution page is hard reloaded (#9529)
  refactor(core): Stop reporting to Sentry `NodeApiError` with 5xx status codes (no-changelog) (#9552)
  feat: HighLevel oauth2 api credentials (#9542)
  fix(editor): Fix empty node name handling (#9548)
  ci: Fix vulnerable dev dependencies (no-changelog) (#9545)
  fix: Don't throw errors for NaN in number operators in the filter component  (#9506)
  fix(core): Try setting postgres search_path on the database (#9530)
  fix(editor): Redirect to workflows list after deleting a workflow (#9546)

# Conflicts:
#	packages/editor-ui/src/views/NodeView.vue
#	pnpm-lock.yaml
@janober
Copy link
Member

janober commented Jun 5, 2024

Got released with n8n@1.45.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants