Skip to content

ce-oem-optee/xtest-* tests failed #2491

@nancyc12

Description

@nancyc12

Bug Description

The contrib::ce-oem-optee/xtest-* tests failed with http.client.InvalidURL. It could be related to the changes in #2452.

Cert-blocker Test Case

  • cert-blocker

To Reproduce

  1. Run command sudo checkbox-shiner.checkbox-cli run com.canonical.contrib::ce-oem-optee-automated

Expected Result

The job passed with checkbox20 7.0.0-dev58
https://certification.canonical.com/hardware/202411-36013/submission/467951/

Actual Result

Traceback (most recent call last):
  File "/tmp/nest-hopof8w4.ba8d660e5a7ed8672284c1fc7b998f7dab420a0736f318dce17b6ec67c170968/optee_helper.py", line 207, in <module>
    main()
  File "/tmp/nest-hopof8w4.ba8d660e5a7ed8672284c1fc7b998f7dab420a0736f318dce17b6ec67c170968/optee_helper.py", line 203, in main
    raise SystemExit(launch_xtest(args.test_suite, args.test_id))
  File "/tmp/nest-hopof8w4.ba8d660e5a7ed8672284c1fc7b998f7dab420a0736f318dce17b6ec67c170968/optee_helper.py", line 37, in launch_xtest
    test_utility = look_up_app("xtest", os.environ.get("XTEST"))
  File "/snap/checkbox-shiner/356/providers/checkbox-provider-ce-oem/bin/look_up_xtest.py", line 18, in look_up_app
    apps = ExtendSanpd().list_apps(snap_name)
  File "/snap/checkbox-shiner/356/providers/checkbox-provider-ce-oem/bin/look_up_xtest.py", line 13, in list_apps
    return self._get(self._apps, params={"names": snaps})
  File "/snap/checkbox-shiner/356/checkbox-runtime/lib/python3.8/site-packages/checkbox_ng/support/snap_utils/snapd.py", line 102, in _get
    return self._request("GET", path, params=params, decode=decode)
  File "/snap/checkbox-shiner/356/checkbox-runtime/lib/python3.8/site-packages/checkbox_ng/support/snap_utils/snapd.py", line 92, in _request
    conn.request(method, path, body=data, headers=headers)
  File "/snap/checkbox-shiner/356/checkbox-runtime/usr/lib/python3.8/http/client.py", line 1256, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/snap/checkbox-shiner/356/checkbox-runtime/usr/lib/python3.8/http/client.py", line 1267, in _send_request
    self.putrequest(method, url, **skips)
  File "/snap/checkbox-shiner/356/checkbox-runtime/usr/lib/python3.8/http/client.py", line 1101, in putrequest
    self._validate_path(url)
  File "/snap/checkbox-shiner/356/checkbox-runtime/usr/lib/python3.8/http/client.py", line 1201, in _validate_path
    raise InvalidURL(f"URL can't contain control characters. {url!r} "
http.client.InvalidURL: URL can't contain control characters. "/v2/apps?{'names': None}" (found at least ' ')

https://certification.canonical.com/hardware/202604-38595/submission/484638/test-results/fail/

Environment

  • OS: UC20
  • Snaps
checkbox-ce-oem	1.0-focal	6406
checkbox-shiner	0.2dev	356
checkbox20	7.1.0-dev100

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions