Skip to content

Error codes and path checks for use in automation #69

@aceslick911

Description

@aceslick911

For yurl to be super useful as part of automation/testing I'd recommend throwing an error code in the CLI when the deeplinking is presumed to be not working due to a failure condition.

This would mean teams could potentially use yurl commands in CI or automation to detect when problems with deeplinking happen.

Specifics:

  • should not throw error code if CDN AASA is out of date - this would cause CI to not be very useful during PRs before 'releases'
  • we should add code to validate the AASA against spec provided by apple (applinks, details, paths, webcredentials)
  • we could add code to validate url PATHS against the AASA defined paths and/or appid

eg.

> yurl aasa validate "https://MYDOMAIN.com/PATH1/PATH2" "1234AAAA" "com.MYDOMAIN.MYAPP.APP"

< AASA Active validation [pass]
< AASA path: /PATH1/PATH2 [failed: no match for "com.MYDOMAIN.MYAPP.APP"]
< "/PATH1/PATH2" provided does not match any of:
< https://MYDOMAIN.com/PATH3
< https://MYDOMAIN.com/PATH4

exited with error code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions