-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: ShopifyAPI::Webhooks::Registry doesn't update webhooks if metafi…
…eld_namespaces has changed (#1344) * remove dead code in test * make the do registration test helper more granular, update how it's called * fill out all test scenarios, temp set check to true * remove unused comments and temporary bypass that made unit tests pass * the dumb solution * add no registration done tests for http, pubsub, eventbridge * make parse type untyped and possibly sort arrays when checking for equality * invert order of attribute arrays for testing equality test * changelog * make type conversions more explicit, add unit test for edgecase of comparing nil and empty array * remove removing duplicate code * initial unit test refactoring: put everything in a loop * rename to registry test queries * pull out adding and registring webhooks into seperate fn * allow more addresses in the loop, remove hardcoding 2 other tests * rename constant * make test names shorter for rubocop * bring in http/pubsub/eventbridge registration error into loop * rename test * refactor away no registration test helper function because it's only used once * rename test again * remove only instance of check error test to abstract less * consolidate adding new webhook test, reduces redundancy * helper function to setup tests and expected queries * totally refactor away do registration test, and use setup queries helper for the other tests * rename test
- Loading branch information
Showing
8 changed files
with
488 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.