LogicAppUnit / TestingFramework

Unit testing framework for Azure Logic Apps (Standard)
MIT License
26 stars 13 forks source link

Conditional mock of "external service" #33

Closed MattiasAsplund closed 4 weeks ago

MattiasAsplund commented 9 months ago

Service Bus has been "mocked" by a Docker image (in this case Apache ActiveMQ Artemis).

It would be advisable to be able to turn the internal mocking behaviour on and off, so that potential standins (external to the Logic App, but internal from an inward looking perspective) could be used.

Turning internal mocking off would in this case mean that AMQP 1.0 protocol behaviour, when sending Service Bus messages, could be tested.

mark-abrams commented 9 months ago

Hi @MattiasAsplund , are you using a built-in connector to connect to Service Bus, or a managed API connector?

MattiasAsplund commented 9 months ago

I have been thinking about an Azure Service Bus alternative (AMQP 1.0 based service) surrounding the test context, where assertions would be made against an actual message queue. Like a "real" service although kind of mocked)

I guess it would have to be the built-in connector, I haven't really tried that part yet.

Mattias

Den ons 6 mars 2024 kl 17:24 skrev Mark Abrams @.***>:

Hi @MattiasAsplund https://github.com/MattiasAsplund , are you using a built-in connector to connect to Service Bus, or a managed API connector?

— Reply to this email directly, view it on GitHub https://github.com/LogicAppUnit/TestingFramework/issues/33#issuecomment-1981259346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIXAVGBKUNITNS75KAZ2BLYW47LJAVCNFSM6AAAAABEIP5JVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGI2TSMZUGY . You are receiving this because you were mentioned.Message ID: @.***>