blob: 09c06e525633cea5e6225e177286df6c98d6de23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* @tags: [serverless]
*/
(function() {
"use strict";
load("jstests/serverless/serverlesstest.js");
let st = new ServerlessTest();
(() => {
jsTest.log("Test adding and removing tenants to/from config.tenants");
const tenantID = ObjectId();
assert.eq(0, st.removeTenant(tenantID.str, st.shard0.shardName).nRemoved);
assert.eq(1, st.addTenant(tenantID.str, st.shard0.shardName).nInserted);
assert.eq(1, st.removeTenant(tenantID.str, st.shard0.shardName).nRemoved);
assert.eq(0, st.removeTenant(tenantID.str, st.shard0.shardName).nRemoved);
})();
st.stop();
})();
|