Coder Social home page Coder Social logo

Comments (4)

Trishia avatar Trishia commented on August 25, 2024

And the default response of collection resource (oic.wk.col) should be the response of oic.if.ll, but the response of /api/v1/devices/{deviceId}/{resourceHref} of cloud2cloud-gateway is always baseline response. So CTT is exposing invalid schema error of #/definitions/slink.

See the logs below:

22:39:45 VERBOSE: CTT HTTP Client -> [request ID=4E07D12C] GET https://c2c-api.ttaocfcloud.org/api/v1/devices/a0253411-a758-4a30-6efc-27b5061bbd58/platform
Headers: [Accept=application/json, Authorization=Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImxfcUtMNlE3djFRNTNyZ3dSSFN1aiJ9.eyJpc3MiOiJodHRwczovL3R0YW9jZi51cy5hdXRoMC5jb20vIiwic3ViIjoiZ29vZ2xlLW9hdXRoMnwxMDQ0MzAyMzI5NjAyMzA1ODY1OTUiLCJhdWQiOiJodHRwczovL3d3dy50dGFvY2ZjbG91ZC5vcmciLCJpYXQiOjE2MzA0ODI4MTYsImV4cCI6MTYzMDU2OTIxNiwiYXpwIjoieXhGOXJQQ3B0OFRrcVJEbmpYZ1NPa0YxR3dFUVVaYVoiLCJzY29wZSI6InI6ZGV2aWNlaW5mb3JtYXRpb246KiByOnJlc291cmNlczoqIHc6cmVzb3VyY2VzOioifQ.DTdhrd0FyzDIdQpj_IAFWvAmhDc4gwkogYBIRf7_8QJX0aAtqKVwdN6LGipVVLDhdZfaVi6UvGy0Qu2nw-U_kW68iQtP3oQF_ISEWGxRn3vOzLiyD6ppzqV6l5g4dLZXwd9KuEcdQ7rLOEb0Kz3PSd1tU8PUlPDsSm2_NDVl_Hm3PU4xnhMk_ReL11sATOlS3uKo11fUKciHPjbWAXuJEZ3SX6uFUEqFnVomwh592FpBaGpXLAEGm6jgOWwF05YikoeXys9EeyFA6CIcmHUzdAvyTCcRX7hzY9QGWFTc2uaA_L56Sw9sDZBkxExjUh0LgAwFvpUw82iUC-7TPlW5RA]
22:39:46 VERBOSE: CTT HTTP Client <- [response ID=4E07D12C] GET https://c2c-api.ttaocfcloud.org/api/v1/devices/a0253411-a758-4a30-6efc-27b5061bbd58/platform
Code: 200 OK
Headers: [Connection=keep-alive, Content-Length=414, Content-Type=application/json, Date=Wed, 01 Sep 2021 13:39:45 GMT, Via=kong/2.5.0, X-Kong-Proxy-Latency=0, X-Kong-Upstream-Latency=2]
Body: {"if":["oic.if.ll","oic.if.create","oic.if.b","oic.if.baseline"],"links":[{"eps":[],"href":"/switch","if":["oic.if.a","oic.if.baseline"],"ins":1854490588,"p":{"bm":3},"rel":["hosts"],"rt":["oic.r.switch.binary"],"tag-func-desc":"smart","tag-pos-desc":"top","tag-pos-rel":[0.34,0.5,0.8],"x.openconnectivity.name":"platform_switch"}],"rt":["oic.wk.col"],"rts":["oic.r.switch.binary"],"rts-m":["oic.r.switch.binary"]}
22:39:47 ERROR: {'if': ['oic.if.ll', 'oic.if.create', 'oic.if.b', 'oic.if.baseline'], 'links': [{'if': ['oic.if.a', 'oic.if.baseline'], 'ins': 1854490588, 'rt': ['oic.r.switch.binary'], 'x.openconnectivity.name': 'pl...
22:39:47 ERROR: IUT response messages do not follow JSON schema '#/definitions/slinks'
22:39:47 ERROR: CT5.2.2_Check_19: Resource has not all mandatory properties or interfaces or does not comply to schema
22:39:47 ERROR: CT5.2.2_Check_21: Bad type(s) of property 'resource' should be array but is <type 'dict'>. ({'if': ['oic.if.ll', 'oic.if.create', 'oic.if.b', 'oic.if.baseline'], 'links': [{'if': ['oic.if.a', 'oic.if....
22:39:47 ERROR: CT5.2.2_Check_23: Vendor specified properties shall follow the syntax x.<Domain_Name>.<property>. Invalid properties names: links, rts-m, rts
22:39:47 ERROR: CT5.2.2_Check_27: Bad type(s) of property 'resource' should be array but is <type 'dict'>. ({'if': ['oic.if.ll', 'oic.if.create', 'oic.if.b', 'oic.if.baseline'], 'links': [{'if': ['oic.if.a', 'oic.if....

@ondrejtomcik @jkralik
How can I solve this problem? Advise me plz...

from hub.

Danielius1922 avatar Danielius1922 commented on August 25, 2024

@Trishia is this still a problem? All CTT 5.x.x succeed with plgd hub v2.2.3.

from hub.

Trishia avatar Trishia commented on August 25, 2024

@Danielius1922
I don't know exactly because I have never chance to test plgd hub v2.2.3. If you think this issue is solved I will close this issue now.

from hub.

Danielius1922 avatar Danielius1922 commented on August 25, 2024

@Danielius1922 I don't know exactly because I have never chance to test plgd hub v2.2.3. If you think this issue is solved I will close this issue now.

Thanks, I think given that the CTT Target Cloud test cases (5.x.x) work this issue should be fixed. (We can reopen / open a new issue if it proves wrong)

from hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.