plainbox:providers: make default DummyProvider1 name realistic

The name of each provider should include the namespace component

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:providers: add DummyProvider1.namespace

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:secure:providers: use provider.namespace in WhiteListPlugIn

This patch makes use of the provider namespace when loading provider
whitelists. With this patch, the whitelist loader will now pass the
implicit_namespace argument, thus implicitly binding all of the
whitelist patterns to the namespace of the loaded that owns them.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:secure:providers: make Provider1 pass implicit_namespace=

This patch makes Provider1 pass the implicit_namespace argument to the
whitelist plugin class.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:secure:providers: adjust tests for namespaces

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:providers:stubbox: move stubbox to unique namespace

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:providers:stubbox: drop locale_dir (it is automatic)

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:abc: add IProvider.namespace

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:job: make JobDefinition.id fully qualified

This patch makes the JobDefinition.id field (which is used *everywhere*)
aware of provider namespaces. Each job identifier is now composed of the
provider namespace, a double colon and the job partial identifier.

This breaks everything that uses partial job identifiers before other
patches restore implicit provider namespace lookup.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:job: namespace support for JobDefinition.get_direct_dependencies()

This patch makes the direct dependency code namespace-aware. All of the
dependencies that are using partial job identifiers (without ::) will be
fully qualified by the provider namespace (if available).

This retains backwards compatibility and extends namespace support to
additional areas.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:job: namespace support for JobDefinition.get_resource_program()

With this patch the resource program parser will use the namespace of
the job definition provider to construct non-partial job identifiers.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:provider_manager: adjust tests to namespaces

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:commands:script: adjust tests to namespaces

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:commands:script: fix PEP8 issue

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
plainbox:commands:special: adjust tests after namespaces

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>