diff --git a/sdk/python/core/keeper_secrets_manager_core/dto/dtos.py b/sdk/python/core/keeper_secrets_manager_core/dto/dtos.py index 8d586454..07dade67 100644 --- a/sdk/python/core/keeper_secrets_manager_core/dto/dtos.py +++ b/sdk/python/core/keeper_secrets_manager_core/dto/dtos.py @@ -454,11 +454,17 @@ def __init__(self): self.type = None -VALID_RECORD_FIELDS = ['login', 'password', 'url', 'fileRef', 'oneTimeCode', 'otp', 'name', 'birthDate', 'date', - 'expirationDate', 'text', 'securityQuestion', 'multiline', 'email', 'cardRef', 'addressRef', - 'pinCode', 'phone', 'secret', 'note', 'accountNumber', 'paymentCard', 'bankAccount', 'keyPair', - 'host', 'address', 'licenseNumber', 'recordRef', 'schedule', 'directoryType', 'databaseType', - 'pamHostname', 'pamResources', 'checkbox', 'passkey', 'script'] +VALID_RECORD_FIELDS = [ + 'accountNumber', 'address', 'addressRef', 'appFiller', 'bankAccount', + 'birthDate', 'cardRef', 'checkbox', 'databaseType', 'date', + 'directoryType', 'dropdown', 'email', 'expirationDate', 'fileRef', 'host', + 'isSSIDHidden', 'keyPair', 'licenseNumber', 'login', 'multiline', 'name', + 'note', 'oneTimeCode', 'otp', 'pamHostname', 'pamRemoteBrowserSettings', + 'pamResources', 'pamSettings', 'passkey', 'password', 'paymentCard', + 'phone', 'pinCode', 'rbiUrl', 'recordRef', 'schedule', 'script', 'secret', + 'securityQuestion', 'text', 'trafficEncryptionSeed', 'url', + 'wifiEncryption' +] class RecordField: diff --git a/sdk/python/helper/tests/v3/v3_field_type_all_fields_test.py b/sdk/python/helper/tests/v3/v3_field_type_all_fields_test.py index 019f7217..213f9b9a 100644 --- a/sdk/python/helper/tests/v3/v3_field_type_all_fields_test.py +++ b/sdk/python/helper/tests/v3/v3_field_type_all_fields_test.py @@ -342,7 +342,25 @@ def test_pam_resources(self): ft.controllerUid = "OlLZ6JLjnyMOS3CiIPHBjw" ft.folderUid = "so5ja6A46Zmr9J1QyCc06g" ft.resourceRef = ["hUrGHrcM0PI3Y6Ch5wCrAQ"] - self._check_dict(ft, value={"controllerUid": "OlLZ6JLjnyMOS3CiIPHBjw", "folderUid": "so5ja6A46Zmr9J1QyCc06g", "resourceRef": ["hUrGHrcM0PI3Y6Ch5wCrAQ"]}) + ft.allowedSettings = { + "connections": True, + "portForwards": True, + "rotation": True, + "sessionRecording": True, + "typescriptRecording": True + } + self._check_dict(ft, value={ + "controllerUid": "OlLZ6JLjnyMOS3CiIPHBjw", + "folderUid": "so5ja6A46Zmr9J1QyCc06g", + "resourceRef": ["hUrGHrcM0PI3Y6Ch5wCrAQ"], + "allowedSettings": { + "connections": True, + "portForwards": True, + "rotation": True, + "sessionRecording": True, + "typescriptRecording": True + } + }) def test_checkbox(self): ft = Checkbox() @@ -383,7 +401,7 @@ def test_passkey(self): "username": "user1", "createdDate": 1625140800000}) - def test_scrpt(self): + def test_script(self): ft = Script() ft.fileRef = "OlLZ6JLjnyMOS3CiIPHBjw" ft.command = "/bin/zsh"