mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Added support for setting PostgreSQL connection parameters. #4728
2) Fixed an issue where Kerberos authentication to the server is not imported/exported. #5732 3) Increase the length of the value column of the setting table. #5746 4) Upgrade Flask-Migrate to 4.0.0. #5525
This commit is contained in:
@@ -54,14 +54,9 @@ describe('ServerSchema', ()=>{
|
||||
let setError = jasmine.createSpy('setError');
|
||||
|
||||
schemaObj.validate(state, setError);
|
||||
expect(setError).toHaveBeenCalledWith('host', 'Either Host name, Address or Service must be specified.');
|
||||
|
||||
state.hostaddr = 'incorrectip';
|
||||
schemaObj.validate(state, setError);
|
||||
expect(setError).toHaveBeenCalledWith('hostaddr', 'Host address must be valid IPv4 or IPv6 address.');
|
||||
expect(setError).toHaveBeenCalledWith('host', 'Either Host name or Service must be specified.');
|
||||
|
||||
state.host = '127.0.0.1';
|
||||
state.hostaddr = null;
|
||||
schemaObj.validate(state, setError);
|
||||
expect(setError).toHaveBeenCalledWith('username', 'Username must be specified.');
|
||||
|
||||
|
||||
@@ -74,9 +74,18 @@ describe('VariableSchema', ()=>{
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'enum', enumvals: []})).toEqual(jasmine.objectContaining({
|
||||
cell: 'select',
|
||||
}));
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'integer'})).toBe('int');
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'real'})).toBe('numeric');
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'string'})).toBe('text');
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'integer'})).toEqual(jasmine.objectContaining({
|
||||
cell: 'int',
|
||||
}));
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'real'})).toEqual(jasmine.objectContaining({
|
||||
cell: 'numeric',
|
||||
}));
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'string'})).toEqual(jasmine.objectContaining({
|
||||
cell: 'text',
|
||||
}));
|
||||
expect(schemaObj.getValueFieldProps({vartype: 'file'})).toEqual(jasmine.objectContaining({
|
||||
cell: 'file',
|
||||
}));
|
||||
expect(schemaObj.getValueFieldProps({})).toBe('');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user