from cmts_scraper import sync_cmts_leaves

# 💡 直接套用您在 shared.py 中驗證過的完美設定
CMTS_DEVICE = {
    'device_type': 'cisco_ios',
    'host': '10.14.110.4',
    'username': 'admin',
    'password': 'nsgadmin',
    'port': 22,
    'fast_cli': False,
    'global_delay_factor': 2
}

# 測試用的葉節點路徑
TEST_LEAVES = [
    "clock timezone",
    "cable mac-domain 13:0/0.0 admin-state"
]

if __name__ == "__main__":
    print("🚀 開始執行 CMTS 爬蟲測試...")
    result = sync_cmts_leaves(CMTS_DEVICE, TEST_LEAVES)
    
    print("\n📊 最終測試結果:")
    import json
    print(json.dumps(result, indent=4, ensure_ascii=False))
