*** Settings ***
Library    Process
Suite Setup    Log    UKO Layer 3 Technology Vocabulary Integration Tests

*** Test Cases ***
Verify Python Vocabulary
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    vocab-py
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    vocab-py-ok

Verify TypeScript Vocabulary
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    vocab-ts
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    vocab-ts-ok

Verify Rust Vocabulary
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    vocab-rs
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    vocab-rs-ok

Verify Java Vocabulary
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    vocab-java
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    vocab-java-ok

Verify Python Detail Level Map
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    detail-map-py
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    detail-map-py-ok

Verify TypeScript Detail Level Map
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    detail-map-ts
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    detail-map-ts-ok

Verify Rust Detail Level Map
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    detail-map-rs
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    detail-map-rs-ok

Verify Java Detail Level Map
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    detail-map-java
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    detail-map-java-ok

Verify Provenance Contract
    ${result}=    Run Process    python3    ${CURDIR}/helper_uko_layer3_vocabularies.py    provenance
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    provenance-ok
