Skip to content
  • Georges Racinet's avatar
    Testing production servers: first test without root · ef0f9ec9f942
    Georges Racinet authored
    We introduce a new "Group owner" CLI option to specify the
    relevant user, with the idea in mind that all test data will
    evntually be created inside this group. For now it is
    in the user personal namespace for simplicity.
    
    The basic idea is to avoid changing the test itself,
    playing on the fixtures. The first test to actually
    work in this mode is the very simple `push_basic` test.
    
    Of course some tests perform more server-side object
    creation, assuming admin powers, and would need deeper
    adaptation, but a good majority of our tests should work
    readily.
    
    To achieve this, we subclass `Heptapod` and replace preparation
    (of the `root` and `test_basic` users) with preparation of the
    given Group owner.
    
    --HG--
    branch : stable
    ef0f9ec9f942