You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not a Python expert at all, firstly.
I am experiencing a strange validation error, possibile related to the line in [1] but I am confused.
For v. 1.1.5 of spid_sp_test I am getting the following:
ERROR:spid_sp_test.metadata:SpidSpMetadataCheck.test_Contacts_PubPriv: Only one ContactPerson element of contactType "other" MUST be present
ERROR:spid_sp_test.metadata:Only one ContactPerson element of contactType "other" MUST be `present`
for a pub-ag-full SP with this kind of structure (Contacts section, edited here):
This structure should be supported and non error-flagged...
Actually I identified [1] but I am NOT entirely convinced it is there the problem (supposing my XML metadata is fine).. because the function defintion uses (apparently...) some default parameter values, here's the signature: def test_Contacts_PubPriv(self, contact_type="other", entity_type="")
and entityType..seems to be set correctly... which makes me wonder.. why is the Xpath/code triggering the error?
Seems like.. this section is triggered:
if not entity_type:
self._assertTrue(
len(entity_desc) == 1,
"Only one ContactPerson element of contactType "
f'"{contact_type}" MUST be present',
test_id = ['1.10.0'], **_data,
)
which.. looks impossible if I understand correctly the call from [1]...
Also strange... immediately following [1] there's another call with another entityType.. so.. I would expect 2 (two) errors... (one for aggregated and one for aggregator)..
Is this XML structure really incorrect? or there's some..ghost call around or I don't know exactly how to say it.
Hmm.. no --profile issued, so possibly my bad.
I just used spid_sp_test --metadata-url <my_meta_url> as in some examples and got many constraint checks performed, with final output summary as below.
Actually, i don't see any --profile option via spid_sp_test -h (on 1.1.5)
Hi,
not a Python expert at all, firstly.
I am experiencing a strange validation error, possibile related to the line in [1] but I am confused.
For v. 1.1.5 of spid_sp_test I am getting the following:
for a pub-ag-full SP with this kind of structure (Contacts section, edited here):
This structure should be supported and non error-flagged...
Actually I identified [1] but I am NOT entirely convinced it is there the problem (supposing my XML metadata is fine).. because the function defintion uses (apparently...) some default parameter values, here's the signature:
def test_Contacts_PubPriv(self, contact_type="other", entity_type="")
and entityType..seems to be set correctly... which makes me wonder.. why is the Xpath/code triggering the error?
Seems like.. this section is triggered:
which.. looks impossible if I understand correctly the call from [1]...
Also strange... immediately following [1] there's another call with another entityType.. so.. I would expect 2 (two) errors... (one for aggregated and one for aggregator)..
Is this XML structure really incorrect? or there's some..ghost call around or I don't know exactly how to say it.
Thank you.
Diego
[1]
spid-sp-test/src/spid_sp_test/metadata.py
Line 962 in 58afa3f
The text was updated successfully, but these errors were encountered: