<commit_before>{
    "tests": [
        {
            "name": "Test file server with all features",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserPassword": "<PASSWORD>",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }<commit_msg>BatchAI. Added failure cases to file server unit tests<commit_after>{
    "tests": [
        {
            "name": "file server - all features",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserPassword": "<PASSWORD>",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - no sshConfiguration",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - no admin username",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserPassword": "<PASSWORD>",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - no vm size",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - no data disks",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    }
                }
            }
        },
        {
            "name": "file server - no disk count",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - no disk size",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "readonly",
                        "diskCount": 10,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - wrong caching type",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "strong",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Standard_LRS"
                    }
                }
            }
        },
        {
            "name": "file server - wrong sku",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "none",
                        "diskCount": 10,
                        "diskSizeInGB": 512,
                        "storageAccountType": "Slow"
                    }
                }
            }
        },
        {
            "name": "file server - wrong sku",
            "definition": "https://schema.management.azure.com/schemas/2018-03-01/Microsoft.BatchAI.json#/resourceDefinitions/fileServers",
            "expectedErrors":[
                {
                    "message":"Data does not match any schemas from \"oneOf\"",
                    "dataPath":"/properties"
                }
            ],
            "json": {
                "type": "Microsoft.BatchAI/fileServers",
                "name": "nfs",
                "location": "East US",
                "apiVersion": "2018-03-01",
                "properties": {
                    "vmSize": "STANDARD_D1",
                    "sshConfiguration": {
                        "userAccountSettings": {
                            "adminUserName": "adminuser",
                            "adminUserSshPublicKey": "ssh-rsa AAAAB3NzaC1..."
                        }
                    },
                    "dataDisks": {
                        "cachingType": "none",
                        "diskCount": 10,
                        "diskSizeInGB": "512Gb",
                        "storageAccountType": "Standard_LRS"
                    }
                }
{'fraction_non_alphanumeric': 0.12149170414017677, 'fraction_numerical': 0.019460381454489067, 'mean_word_length': 0.977161250766401, 'pattern_counts': {'":': 217, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4666809', 'n_tokens_mistral': 3430, 'n_tokens_neox': 2970, 'n_words': 488}