fix org test
This commit is contained in:
parent
086085156f
commit
ec5c98781f
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue