Comment 1 for bug 1296424

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'd like to propose that we allow test authors to use this new syntax to refer to arbitrary job identifiers as resource containers:

package = resource("2013.com.canonical.certification::package")
package.name == "checkbox"

The resource identifier would become a implicit / builtin callable that would be picked up by the resource program analyzer and in turn would make the identifier 'package' refer to the job with the full id given as argument.

As an extension to this method, if the argument to resource() is not a fully qualified job identifier, then implicit namespace of the encompassing provider will be automatically used to construct the full identifier. This would match the existing convention of only having to use full job identifiers when spanning namespace boundaries.