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

Tutorial: Asset Administration Shell Repository Service Specification #75

Open
Frosty2500 opened this issue Nov 18, 2024 · 2 comments
Open

Comments

@Frosty2500
Copy link

Frosty2500 commented Nov 18, 2024

Hello^^
I followed the tutorial in the README.md and tried to test my server using this code.

conf = api.ExecConf(server="http://localhost:8080/api/v3.0/")
    result, mat = api.execute_tests(conf=conf, suite='Asset Administration Shell Repository Service Specification', version="3.0")
    result.dump()

What I am confused about is the start of the dumped result.

Checking compliance to Asset Administration Shell Repository Service Specification
   Trying to reach http://localhost:8080/api/v3.0/
      OK
   Checking GET /aas (GetAssetAdministrationShell)
      Setup
      Negative Tests
      Positive Tests

        Perform a simple semantic test

            Invoke: GET /aas
               Response: (404): {"success":false,"messages":[{"messageType":"Error","text":"The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.","code":"NotFound","timestamp":"2024-11-18T14:52:45.290341+00:00"}]}
               Expected status code 2xx, but got 404

/aas is not a route in the Asset Administration Shell Repository Service Specification. So what is happening here?

It looks like this is testing the AssetAdministrationShellServiceSpecification.

@otto-ifak
Copy link
Collaborator

Hi @Frosty2500 you are right, this is not the indented behavior.
Actually, you should pass a profile name for suite like https://admin-shell.io/aas/API/3/0/AssetAdministrationShellRepositoryServiceSpecification/SSP-002.
So, actually your suite should be rejected.

@Frosty2500
Copy link
Author

Ah ok thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants