{
  "get_fts_template_nodes_and_node": [
    {
      "name": "Get FTS Templates nodes",
      "url": "/browser/fts_template/nodes/",
      "is_positive_test": true,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    },
    {
      "name": "Error while fetching FTS Templates nodes",
      "url": "/browser/fts_template/nodes/",
      "error_fetching_fts_template": true,
      "is_positive_test": false,
      "mocking_required": true,
      "mock_data": {
        "function_name": "pgadmin.utils.driver.psycopg2.connection.Connection.execute_2darray",
        "return_value": "(False, 'Mocked Internal Server Error while fetching fts templates nodes')"
      },
      "expected_data": {
        "status_code": 500
      }
    },
    {
      "name": "Get FTS Templates node",
      "url": "/browser/fts_template/nodes/",
      "is_positive_test": true,
      "node": true,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    },
    {
      "name": "Error while fetching FTS Templates node",
      "url": "/browser/fts_template/nodes/",
      "error_fetching_fts_template": true,
      "is_positive_test": false,
      "node": true,
      "mocking_required": true,
      "mock_data": {
        "function_name": "pgadmin.utils.driver.psycopg2.connection.Connection.execute_2darray",
        "return_value": "(False, 'Mocked Internal Server Error while fetching fts templates nodes')"
      },
      "expected_data": {
        "status_code": 500
      }
    },
    {
      "name": "Error while fetching FTS Templates node",
      "url": "/browser/fts_template/nodes/",
      "error_fetching_fts_template": true,
      "set_wrong_fts_templates_value": true,
      "is_positive_test": false,
      "node": true,
      "mocking_required": true,
      "mock_data": {
        "function_name": "pgadmin.utils.driver.psycopg2.connection.Connection.execute_2darray",
        "return_value": "(True, {'rows': []})"
      },
      "expected_data": {
        "status_code": 410
      }
    },
    {
      "name": "Get FTS Templates nodes list",
      "url": "/browser/fts_template/obj/",
      "is_positive_test": true,
      "node": false,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    },
    {
      "name": "Error while Get FTS Templates nodes list",
      "url": "/browser/fts_template/obj/",
      "is_positive_test": false,
      "error_fetching_fts_template": true,
      "node": false,
      "mocking_required": true,
      "mock_data": {
        "function_name": "pgadmin.utils.driver.psycopg2.connection.Connection.execute_dict",
        "return_value": "(False, 'Mocked Internal Server Error while fetching fts templates nodes list')"
      },
      "expected_data": {
        "status_code": 500
      }
    }
  ],
  "dependency_dependent_fts_templates": [
    {
      "name": "Get FTS Templates dependency",
      "url": "/browser/fts_template/dependency/",
      "is_positive_test": true,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    },
    {
      "name": "Get FTS Templates dependent",
      "url": "/browser/fts_template/dependent/",
      "is_positive_test": true,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    }
  ],
  "get_init_fts_templates": [
    {
      "name": "Get FTS Templates get init",
      "url": "/browser/fts_template/get_init/",
      "is_positive_test": true,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    },
    {
      "name": "Error while Get FTS Templates get init",
      "url": "/browser/fts_template/get_init/",
      "is_positive_test": false,
      "error_fetching_fts_template": true,
      "mocking_required": true,
      "mock_data": {
        "function_name": "pgadmin.utils.driver.psycopg2.connection.Connection.execute_dict",
        "return_value": "(False, 'Mocked Internal Server Error while fetching fts template init functions')"
      },
      "expected_data": {
        "status_code": 500
      }
    }
  ],
  "get_lexize_fts_templates": [
    {
      "name": "Get FTS Templates get lexize",
      "url": "/browser/fts_template/get_lexize/",
      "is_positive_test": true,
      "mocking_required": false,
      "mock_data": {},
      "expected_data": {
        "status_code": 200
      }
    },
    {
      "name": "Error while Get FTS Templates get lexize",
      "url": "/browser/fts_template/get_lexize/",
      "is_positive_test": false,
      "error_fetching_fts_template": true,
      "mocking_required": true,
      "mock_data": {
        "function_name": "pgadmin.utils.driver.psycopg2.connection.Connection.execute_dict",
        "return_value": "(False, 'Mocked Internal Server Error while fetching fts template lexize functions')"
      },
      "expected_data": {
        "status_code": 500
      }
    }
  ]
}
