Added copy server support, allowing the duplication of existing servers with the option to make certain modifications. #6085 (#7106)

Added copy server support, allowing the duplication of existing servers with the option to make certain modifications. #6085
This commit is contained in:
Akshay Joshi
2024-01-08 12:16:49 +05:30
committed by GitHub
parent 5e710f7ee3
commit 30509d1bc1
14 changed files with 143 additions and 26 deletions

View File

@@ -42,6 +42,10 @@ describe('ServerSchema', ()=>{
let state = {};
let setError = jest.fn();
schemaObj.validate(state, setError);
expect(setError).toHaveBeenCalledWith('gid', 'Server group must be specified.');
state.gid = 1;
schemaObj.validate(state, setError);
expect(setError).toHaveBeenCalledWith('host', 'Either Host name or Service must be specified.');