[SERVER-63458] Write a JS integration test for cluster write blocking Created: 08/Feb/22  Updated: 29/Oct/23  Resolved: 09/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0-rc4

Type: Task Priority: Major - P3
Reporter: Spencer Jackson Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-63459 Extend cluster write blocking integra... Closed
is depended on by SERVER-63460 Extend cluster write blocking replica... Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2022-02-21, Security 2022-03-07, Security 2022-03-21
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 09/Mar/22 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-63458 Update JSTest to test WriteBlockBypass
Branch: master
https://github.com/mongodb/mongo/commit/44ad2b3406535b927e0f968a1a4a0a022a6dbcb1

Generated at Thu Feb 08 05:57:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.