-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add hardwareDetailsTests endpoint #831
base: main
Are you sure you want to change the base?
Conversation
1d683cd
to
dbe12ca
Compare
0278c2a
to
5d700f1
Compare
dbe12ca
to
ba6b50c
Compare
ba6b50c
to
1f2e1f5
Compare
@extend_schema( | ||
responses=HardwareDetailsTestsResponse, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@extend_schema( | |
responses=HardwareDetailsTestsResponse, | |
) | |
@extend_schema( | |
responses=HardwareDetailsTestsResponse, | |
request=HardwareDetailsPostBody, | |
methods=["POST"], | |
) |
8d87fc6
to
e70e674
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre approve with a comment
def _process_test(self, record: Dict) -> None: | ||
is_record_boot = is_boot(record["path"]) | ||
if is_record_boot: | ||
self.processed_tests.add(record["id"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to add a non processed tests in this set
e70e674
to
695836f
Compare
695836f
to
ee5bec3
Compare
Adds
/hardware/<hardware_name>/tests
endpointHow to test
This endpoint is not being used by the frontend, but you can compare the responses by opening the network tab on the dashboard website, going to a hardware details with tests data, checking the request body for the post to hardwareDetails endpoint and use that body in a request from the api view. Check if filters and tree selection work normally.
Example: go to localhost:8000/api/hardware/brcm,bcm2711/tests and send the body
in the POST request
Part of #751
Closes #762