island: Add ransomware directory path validators to ransomware schema

This commit is contained in:
Shreya 2021-07-01 13:19:44 +05:30
parent 0a1782a928
commit 73c61ebcf0
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
from common.common_consts.validation_formats import VALID_DIR_LINUX, VALID_DIR_WINDOWS
RANSOMWARE = {
"title": "Ransomware",
"type": "object",
@ -20,6 +22,7 @@ RANSOMWARE = {
"linux_target_dir": {
"title": "Linux target directory",
"type": "string",
"format": VALID_DIR_LINUX,
"default": "",
"description": "A path to a directory on Linux systems that contains "
"files that you will allow Infection Monkey to encrypt. If no "
@ -28,6 +31,7 @@ RANSOMWARE = {
"windows_target_dir": {
"title": "Windows target directory",
"type": "string",
"format": VALID_DIR_WINDOWS,
"default": "",
"description": "A path to a directory on Windows systems that contains "
"files that you will allow Infection Monkey to encrypt. If no "