Coverage for oracle / oci_fsdr_mcp_server / consts.py: 100.00%
8 statements
« prev ^ index » next coverage.py v7.14.0, created at 2026-08-03 16:45 +0000
« prev ^ index » next coverage.py v7.14.0, created at 2026-08-03 16:45 +0000
1"""
2Copyright (c) 2025, Oracle and/or its affiliates.
3Licensed under the Universal Permissive License v1.0 as shown at
4https://oss.oracle.com/licenses/upl.
6Constants shared by the OCI Full Stack Disaster Recovery MCP server.
7"""
9from __future__ import annotations
11import os
13DEFAULT_PROFILE_1: str = os.getenv("FSDR_PROFILE_1", "FSDR_REGION1")
14DEFAULT_PROFILE_2: str = os.getenv("FSDR_PROFILE_2", "FSDR_REGION2")
16DEFAULT_OCI_CONFIG_FILE: str = os.path.expanduser(
17 os.getenv("OCI_CONFIG_FILE", "~/.oci/config")
18)
19DEFAULT_OCI_AUTH_TYPE: str = os.getenv("OCI_AUTH_TYPE", "api_key").lower()
21FSDR_OPERATION_NAMES: tuple[str, ...] = (
22 "create_automatic_dr_configuration",
23 "get_automatic_dr_configuration",
24 "list_automatic_dr_configurations",
25 "update_automatic_dr_configuration",
26 "delete_automatic_dr_configuration",
27 "create_dr_protection_group",
28 "get_dr_protection_group",
29 "list_dr_protection_groups",
30 "update_dr_protection_group",
31 "delete_dr_protection_group",
32 "change_dr_protection_group_compartment",
33 "update_dr_protection_group_role",
34 "associate_dr_protection_group",
35 "disassociate_dr_protection_group",
36 "create_dr_plan",
37 "get_dr_plan",
38 "list_dr_plans",
39 "update_dr_plan",
40 "delete_dr_plan",
41 "refresh_dr_plan",
42 "verify_dr_plan",
43 "create_dr_plan_execution",
44 "get_dr_plan_execution",
45 "list_dr_plan_executions",
46 "update_dr_plan_execution",
47 "cancel_dr_plan_execution",
48 "pause_dr_plan_execution",
49 "resume_dr_plan_execution",
50 "retry_dr_plan_execution",
51 "ignore_dr_plan_execution",
52 "delete_dr_plan_execution",
53 "get_work_request",
54 "list_work_requests",
55 "list_work_request_errors",
56 "list_work_request_logs",
57 "cancel_work_request",
58)
60ALLOWED_FSDR_OPERATIONS: frozenset[str] = frozenset(FSDR_OPERATION_NAMES)