Commit 7d40b4f3 authored by kzangeli's avatar kzangeli
Browse files

fix(NotificationUtils): EntityInfo.type is scalar, don't index it as an array

Check Notification Data Entities collected [entities][0][type][0] — the first
CHARACTER of the type string ("Building" -> "B") — so the assertion failed
with e.g. 'Building != B'. TS 104-175 § 5.2.6.6.2 defines EntityInfo.type as a
single attribute name and TS 104-176 § 6.2.4 compacts a single value to a
string. Drop the trailing [0]. Affects the 047_* CSR-subscription notification
assertions.
parent 9d503c54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ Check Notification Data Entities
    ${notification_data_entities}=    Create List
    ${index}=    Set Variable    0
    FOR    ${registration_information}    IN    @{notification_data_information}
        Append To List    ${notification_data_entities}    ${registration_information}[entities][0][type][0]
        Append To List    ${notification_data_entities}    ${registration_information}[entities][0][type]
    END

    Lists Should Be Equal