Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63458

Write a JS integration test for cluster write blocking

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2022-02-21, Security 2022-03-07, Security 2022-03-21

      We should write a test to validate the behaviour of the global critical section.

      Roughly, we should evaluate the following sequence of events:
      ASSERT: User X with readWrite@foo can insert into foo.
      ASSERT: Administrative user A may enable write blocking mode.
      ASSERT: X receives a semantically meaningful error message if it attempts to insert into foo.
      ASSERT: User R authorized with the restore role may insert into foo
      ASSERT: A may disable write blocking mode
      ASSERT X may insert into foo

      We should run this test on a standalone and a 3 node replicaset. Until SERVER-63459 we should only validate replicaset behaviour on the primary.

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: