From ec5c98781f4bf97aa6f155a36bbb8a0c76d0e885 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 3 Feb 2026 10:45:58 -0600 Subject: [PATCH] fix org test --- test/towerops/organizations_test.exs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/towerops/organizations_test.exs b/test/towerops/organizations_test.exs index 93f81cc7..09bef387 100644 --- a/test/towerops/organizations_test.exs +++ b/test/towerops/organizations_test.exs @@ -696,9 +696,15 @@ defmodule Towerops.OrganizationsTest do assert updated_org.mikrotik_use_ssl == true assert updated_org.mikrotik_enabled == true - # Verify device was updated with inherited settings + # Verify device credential source remains "site" (inherits from site, which inherits from org) updated_device = Repo.get!(Device, device.id) - assert updated_device.mikrotik_credential_source == "organization" + assert updated_device.mikrotik_credential_source == "site" + + # Verify the device received the organization's MikroTik settings through propagation + assert updated_device.mikrotik_username == "admin" + assert updated_device.mikrotik_port == 8729 + assert updated_device.mikrotik_use_ssl == true + assert updated_device.mikrotik_enabled == true end test "propagates when individual MikroTik fields change" do