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

swupdate: add API function for validating update payloads #466

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

Danielius1922
Copy link
Member

This commit introduces the oc_swupdate_validate_update global function to the swupdate module. The function is responsible for validating Software Update payloads and triggering a callback function in case of any encountered errors.

@ocf-conformance-test-tool
Copy link

🎉 Thank you for your code contribution! To guarantee the change/addition is conformant to the OCF Specification, we would like to ask you to execute OCF Conformance Testing of your change ☝️ when your work is ready to be reviewed.


ℹ️ To verify your latest change (689f4fa), label this PR with OCF Conformance Testing.

⚠️ Label is removed with every code change.

This commit introduces the oc_swupdate_validate_update global
function to the swupdate module. The function is responsible for
validating Software Update payloads and triggering a callback function
in case of any encountered errors.
@Danielius1922 Danielius1922 force-pushed the adam/feature/swu-validation branch from 689f4fa to a439dc0 Compare June 13, 2023 09:52
@Danielius1922 Danielius1922 marked this pull request as ready for review June 13, 2023 11:56
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

93.7% 93.7% Coverage
0.0% 0.0% Duplication

@Danielius1922 Danielius1922 requested a review from jkralik June 13, 2023 12:03
@Danielius1922
Copy link
Member Author

@Danielius1922 Danielius1922 added the OCF Conformance Testing OCF Conformance Testing required label Jun 13, 2023
@jkralik
Copy link
Member

jkralik commented Jun 13, 2023

Docs: https://github.com/iotivity/iotivity-lite/wiki/Software-Update-Validation

You can mention there where user can call the oc_swupdate_validate_update via configured cbk in oc_set_send_response_callback

@Danielius1922 Danielius1922 merged commit 9ad771b into master Jun 14, 2023
@Danielius1922 Danielius1922 deleted the adam/feature/swu-validation branch June 14, 2023 08:08
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OCF Conformance Testing OCF Conformance Testing required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants