Prototype update for SNS tests in #334#342
Prototype update for SNS tests in #334#342smarnach wants to merge 1 commit intobobm/add_sns_pending_verifiedfrom
Conversation
|
I'll update this PR once #334 is merged – probably next week. |
|
👍 on landing the client changes
That'd be great! I used to write clojure and wanted something like https://clojuredocs.org/clojure.core/-%3E or a fluent interface, but it turned out badly (strange and incomplete). refs: #11 I pulled out a separate frost CLI entrypoint recently in #341 and adding a new subcommand e.g. |
|
I'll clean up the client changes and file them as a new PR against master. |
|
Draft PR opened: #356 |
This prototype encapsulates extracting region and profile in a new method on the
BotocoreClientto allow the client code to look reasonable. It's not quite what I had in mind, but with the current structure it's the best I could come up with in an hour.I also factored out the results list into its own class. It was a bit weird that the client stored the results in itself and then modified itself with
extract_key()andflatten(). I simply moved that to a separate class, so subsequent calls to the client don't overwrite the previous results.The test is now working and passing, but it's terribly slow. I tried it for the dev account, and it makes some 3,000 API calls, so you get rate limited and the client waits and retries. When I limit it to 300 subscriptions, it returns quite quickly, but running it for all subscriptions takes ages.
If the general approach seems reasonable, at least as an incremental improvement over the current situation, I can factor out the changes in the client in a separate PR and clean them up a bit.
Related: #334