@@ -1330,7 +1330,12 @@ async def test_create_input_data(client, location_schema: NodeSchemaAPI, client_
13301330 node = InfrahubNodeSync (client = client , schema = location_schema , data = data )
13311331
13321332 assert node ._generate_input_data ()["data" ] == {
1333- "data" : {"name" : {"value" : "JFK1" }, "description" : {"value" : "JFK Airport" }, "type" : {"value" : "SITE" }}
1333+ "data" : {
1334+ "name" : {"value" : "JFK1" },
1335+ "description" : {"value" : "JFK Airport" },
1336+ "type" : {"value" : "SITE" },
1337+ "primary_tag" : None ,
1338+ }
13341339 }
13351340
13361341
@@ -1577,7 +1582,7 @@ async def test_create_input_data_with_IPHost_attribute(client, ipaddress_schema,
15771582 ip_address = InfrahubNodeSync (client = client , schema = ipaddress_schema , data = data )
15781583
15791584 assert ip_address ._generate_input_data ()["data" ] == {
1580- "data" : {"address" : {"value" : "1.1.1.1/24" , "is_protected" : True }}
1585+ "data" : {"address" : {"value" : "1.1.1.1/24" , "is_protected" : True }, "interface" : None }
15811586 }
15821587
15831588
@@ -1591,7 +1596,7 @@ async def test_create_input_data_with_IPNetwork_attribute(client, ipnetwork_sche
15911596 ip_network = InfrahubNodeSync (client = client , schema = ipnetwork_schema , data = data )
15921597
15931598 assert ip_network ._generate_input_data ()["data" ] == {
1594- "data" : {"network" : {"value" : "1.1.1.0/24" , "is_protected" : True }}
1599+ "data" : {"network" : {"value" : "1.1.1.0/24" , "is_protected" : True }, "site" : None }
15951600 }
15961601
15971602
@@ -1789,7 +1794,7 @@ async def test_update_input_data_empty_relationship(
17891794 "data" : {
17901795 "id" : "llllllll-llll-llll-llll-llllllllllll" ,
17911796 "name" : {"value" : "DFW" },
1792- # "primary_tag": None,
1797+ "primary_tag" : None ,
17931798 "tags" : [],
17941799 "type" : {"value" : "SITE" },
17951800 },
@@ -1798,7 +1803,7 @@ async def test_update_input_data_empty_relationship(
17981803 "data" : {
17991804 "id" : "llllllll-llll-llll-llll-llllllllllll" ,
18001805 "name" : {"is_protected" : True , "is_visible" : True , "value" : "DFW" },
1801- # "primary_tag": None,
1806+ "primary_tag" : None ,
18021807 "tags" : [],
18031808 "type" : {"is_protected" : True , "is_visible" : True , "value" : "SITE" },
18041809 },
0 commit comments