Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDS 2.2 LH Acceptance Tests Manual #25

Open
dhommen opened this issue Jul 4, 2024 · 0 comments
Open

MDS 2.2 LH Acceptance Tests Manual #25

dhommen opened this issue Jul 4, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@dhommen
Copy link
Contributor

dhommen commented Jul 4, 2024

Acceptance Test Manual for MDS-EDC Connector

Introduction

This manual provides detailed instructions and guidelines for performing acceptance tests on the newly developed Connector built with MDS-EDC version 7.4.2 and logging-house-extension version 1.1.0. The acceptance tests are designed to ensure that the Connector functions correctly in the specified environments and scenarios, confirming that it meets the required specifications and performance standards.

Overview of Key Components

  1. Connector Version:

    • MDS-EDC: Version 7.4.2
    • Logging-House-Extension: Version 1.1.0
    • Image: ghcr.io/truzzt/edc-extensions/connector:7.4.2-lh8 (public)
  2. Environment Setup:

    • Two Connectors were registered in the MDS DEV environment. This setup is crucial for simulating real-world scenarios and validating the interaction between different components.
  3. Contract Negotiation:

    • The process of contract negotiation was triggered using the User Interface (UI). This step ensures that the UI correctly facilitates the contract negotiation process, reflecting the necessary workflows and validations.
  4. Data Transfer:

    • The data transfer process was also triggered using the UI. This test confirms that the data transfer functionality works as expected and that the UI provides the necessary controls and feedback to the user.
  5. Simulating Connection Interruptions:

    • To test the system's resilience and error handling capabilities, the connection to the logging-house-server was deliberately cut. Subsequently, both contract negotiation and data transfer processes were triggered via the UI. This scenario is critical for assessing how well the system handles unexpected disconnections and ensures data integrity and proper error logging.

Contract Negotiation

Logs of truzzt-mds-connector-lh1:
Image {caption=truzzt-mds-connector-lh1}

Logs of truzzt-mds-connector-lh2:
Image {caption=truzzt-mds-connector-lh2}
Note: The logging house request is failing since the process can only be created once (expected behaviour)

Transfer Process

Logs of truzzt-mds-connector-lh1:
Image
Note: The transfer process on the provider side contains three events

Logs of truzzt-mds-connector-lh2:
Image
Note: The transfer process on the provider side contains four events

LoggingHouse Server SQL Query

Process table
Query: SELECT * FROM processes WHERE process_id = 'dGVzdA==:dGVzdC0xLjAuMA==:NmFhNmU5NWMtNTk1NS00Mzc3LThhMjYtYzM3MDNhMjQ4YmIz';
Screenshot 2024-07-05 at 11 37 57

Documents table
Query SELECT * FROM documents WHERE process_id = '54';
Screenshot 2024-07-05 at 11 40 34
Note: The process contains nine documents (two for the contract negotiation and three + four for the transfer)

Example Message Payload Contract

{"ContractProviderId":"MDSLEULVWX.CVDZ8VB","ContractConsumerId":"MDSLEULVWX.CO32VMI","ContractSigningDate":1720106916,"AssetProperties":{"http://purl.org/dc/terms/license":"","https://semantic.sovity.io/dcat-ext#httpDatasourceHintsProxyBody":"false","https://w3id.org/mobilitydcat-ap/georeferencingMethod":"","https://semantic.sovity.io/dcat-ext#httpDatasourceHintsProxyPath":"false","http://purl.org/dc/terms/language":"https://w3id.org/idsa/code/EN","http://purl.org/dc/terms/description":"","http://purl.org/dc/terms/publisher":{"http://xmlns.com/foaf/0.1/homepage":[{"@value":""}]},"https://semantic.sovity.io/dcat-ext#httpDatasourceHintsProxyMethod":"false","http://www.w3.org/ns/dcat#version":"1.0.0","http://www.w3.org/ns/dcat#distribution":{"http://www.w3.org/ns/dcat#mediaType":[{"@value":""}]},"http://purl.org/dc/terms/creator":{"http://xmlns.com/foaf/0.1/name":[{"@value":"truzzt"}]},"http://www.w3.org/ns/dcat#landingPage":"","https://w3id.org/mobilitydcat-ap/mobilityTheme":{"https://w3id.org/mobilitydcat-ap/mobility-theme/data-content-category":[{"@value":"Traffic Information"}]},"http://purl.org/dc/terms/title":"test","https://w3id.org/edc/v0.0.1/ns/id":"test-1.0.0","https://semantic.sovity.io/dcat-ext#httpDatasourceHintsProxyQueryParams":"false"},"ContractPolicy":"org.eclipse.edc.policy.model.Policy@1dd48afb","Timestamp":"2024-07-04T15:29:03.806Z","AssetId":"test-1.0.0","ContractAgreementId":"dGVzdA==:dGVzdC0xLjAuMA==:NmFhNmU5NWMtNTk1NS00Mzc3LThhMjYtYzM3MDNhMjQ4YmIz","ConnectorId":"MDSLEULVWX.CVDZ8VB"}

Example Message Payload Transfer

{"TransferContractId":"dGVzdA==:dGVzdC0xLjAuMA==:NmFhNmU5NWMtNTk1NS00Mzc3LThhMjYtYzM3MDNhMjQ4YmIz","TransferAssetId":"test-1.0.0","TransferProcessId":"ccf893e8-32ac-45c9-b36e-168594ce5496","Timestamp":"2024-07-04T15:36:03.727Z","TransferState":"INITIAL","ConnectorId":"MDSLEULVWX.CVDZ8VB","TransferProtocol":"dataspace-protocol-http"}
@dhommen dhommen self-assigned this Jul 4, 2024
@dhommen dhommen added the documentation Improvements or additions to documentation label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant