# Check that getindices() works correctly within and across namespaces

# 002: getindices() with constant argument, from a non-default namespace to default namespace

body common control
{
      inputs => { "../../../default.sub.cf", "002_namespaced_getindices.cf.sub" };
      bundlesequence => { default("$(this.promise_filename)") };
      version => "1.0";
}

bundle common g
{
  vars:
      "array[key]" string => "string";
}

bundle agent init
{
  vars:
}

bundle agent test
{
  methods:
      "test_in_namespace"   usebundle => b:test_in_namespace("default:g.array", "b:variables.array2");
}

bundle agent check
{
  methods:
      "check_in_namespace"  usebundle => b:check_in_namespace("$(this.promise_filename)");
}
