Git Product home page Git Product logo

Comments (6)

alexeyzimarev avatar alexeyzimarev commented on September 28, 2024

I would not consider this as any thing related to the persistence. If you want to test your saga - you need to use test harnesses provided by MassTransit.

from masstransit.eventstoreintegration.

misiektg86 avatar misiektg86 commented on September 28, 2024

@pblachut if you want to preinitialize your saga in integration test then you probably have to publish your messages through MT. This will add events to your saga repository stream.

from masstransit.eventstoreintegration.

pblachut avatar pblachut commented on September 28, 2024

Regarding point no 2: I publish message on the bus which which should generate transition to state 2. It`s integration test and saga is not the only thing.

from masstransit.eventstoreintegration.

alexeyzimarev avatar alexeyzimarev commented on September 28, 2024

This is how you test Automatonymous sagas:
https://github.com/MassTransit/MassTransit/blob/develop/src/MassTransit.AutomatonymousIntegration.Tests/Testing_Specs.cs

But you do not need to test with persistence unless you absolutely need to, this will involve embedded ES and it will become too slow. In-memory persistence is just fine to test the saga logic.

from masstransit.eventstoreintegration.

alexeyzimarev avatar alexeyzimarev commented on September 28, 2024

But looking at your initial post again (sorry I was reading from mobile) I can conclude that the stream name does not match, you can also check there.

from masstransit.eventstoreintegration.

pblachut avatar pblachut commented on September 28, 2024

Thanks for your response. Stream name was good, problem is in the state of the bus.

I have changed my test to setup SUT by send all messages on the bus (instead manually persistance saga state to ES). It is not perfect situation (in the test I check handling of two messages) but based on links which you have sent it will be hard to get better results. Thanks!

from masstransit.eventstoreintegration.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.