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