Skip to content

cluster: remove hooks #414

@oleg-jukovec

Description

@oleg-jukovec

Please remove the hooks and the logic around:

luatest/luatest/cluster.lua

Lines 351 to 353 in b446120

hooks.before_all_preloaded(init)
hooks.after_each_preloaded(drop)
hooks.after_all_preloaded(clean)

The testing framework should be universal, but these hooks limit it to some specific case. As example, I can't:

  1. I want to start 3 clusters and don't drop them between separate tests.
  2. I want to start a single cluster of config storage for all tests.

As an alternative way: add a cluster option to be able to create a cluster without the logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions