Comments (4)
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.
@Trishia is this still a problem? All CTT 5.x.x succeed with plgd hub v2.2.3.
from hub.
@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 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)
- Help with grpc error handling and time to receive device update event HOT 5
- Kubernetes environment where plgd-hub was tested HOT 3
- How to build plgd-hub and bundle HOT 2
- From where Etag shall be retrived on nats events? HOT 3
- Test
- Integration service - Create base service
- Integration service - Design model for storage
- Integration service - Implement rules model
- Integration service - Listen events based on registered condition
- Integration service - Resolve variables for setup destination
- Integration service - HTTP client for rule destination
- Integration service - NATs client for rule destination
- Integration service - Integrate to bundle
- Integration service - Create helm chart
- Integration service - Implement model to mongodb storage
- Integration service - Define grpc protobuf service with http api
- Integration service - Implement grpc handlers
- Integration service - Update helm chart
- Integration service - Update bundle
- Integration service - Documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hub.