TestingFramework icon indicating copy to clipboard operation
TestingFramework copied to clipboard

Conditional mock of "external service"

Open MattiasAsplund opened this issue 1 year ago • 2 comments

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.

MattiasAsplund avatar Mar 06 '24 07:03 MattiasAsplund

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

mark-abrams avatar Mar 06 '24 16:03 mark-abrams

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: @.***>

MattiasAsplund avatar Mar 07 '24 12:03 MattiasAsplund