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

# 103: getindices() with local variable argument, from non-default namespace to the same namespace
#      same as 003.cf but without using a parameter

body common control
{
      inputs => { "../../../default.cf.sub", "103_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;
}

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