Skip to content

Commit 71a1f6f

Browse files
committed
fix: [tests] Updated tests for domain-ip objects import from STIX 2.1
- Following changes and fixes on the `domain-ip` Observable objects conversion
1 parent 2f0b359 commit 71a1f6f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/test_external_stix21_import.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -891,9 +891,7 @@ def test_stix21_bundle_with_domain_ip_objects(self):
891891
domain_object.name, domain_ip_object.name, 'domain-ip'
892892
)
893893

894-
self._check_misp_object_fields(
895-
domain_object, od1, domain2.id, multiple=True
896-
)
894+
self._check_misp_object_fields(domain_object, od1, domain2.id)
897895
self.assertEqual(len(domain_object.attributes), 1)
898896
domain_attribute = domain_object.attributes[0]
899897
self._assert_multiple_equal(
@@ -908,12 +906,9 @@ def test_stix21_bundle_with_domain_ip_objects(self):
908906
self.assertEqual(len(domain_object.references), 1)
909907
reference = domain_object.references[0]
910908
self.assertEqual(reference.referenced_uuid, domain_ip_object.uuid)
911-
self.assertEqual(reference.relationship_type, 'resolves-to')
909+
self.assertEqual(reference.relationship_type, 'alias-of')
912910

913-
self._check_misp_object_fields(
914-
domain_ip_object, od2, f'{domain1.id} - {ipv4.id} - {ipv6.id}',
915-
multiple=True
916-
)
911+
self._check_misp_object_fields(domain_ip_object, od2, domain1.id)
917912
self._check_domain_ip_fields(
918913
domain_ip_object, domain1, ipv4, ipv6,
919914
domain1.id, f'{domain1.id} - {ipv4.id}', f'{domain1.id} - {ipv6.id}'

0 commit comments

Comments
 (0)