Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19093

Create standalone MetaStorage implementation for test purposes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta2
    • None
    • Docs Required, Release Notes Required

    Description

      Motivation.
      Some components depends on MetaStorage API and doesn’t tested well.
      In tests, we either have to create "100500" mocks, which doesn’t implement any quasi-real behaviour (e.g. we skip serialization step), or have to implement end-to-end test and start-up real nodes.

      See DistributionZoneManagerConfigurationChangesTest
      Here, initialization of all the mocks looks longer than the tests themselves.
      And we copy-paste this boilerplate code everywhere, when we need a bit more than stupid stub.

      Suggestion
      Let's

      • create standalone version of MetaStorage for test purposes, which will just push raft command directly to a metastorage listener.
      • replace boilerplate code in tests with new metastorage implementation.

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              amashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 20m
                  4h 20m