test/shared/spec_helper.rb
# Get all instances of given factory OSGi config PID
#
# @param pid [String] factory PID to look for
# @return [Array] a list of all instances of a given OSGi factory
Get all instances of given factory OSGi config PID
Get all instances of given factory OSGi config PID
def factory_instaces(pid)
    regex = pid.gsub(/\./, '\.') + '\.'\
      '[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}'
    config_list.scan(/#{regex}/)
  end
def factory_instaces ( pid ) regex = pid . gsub ( / \. / , '\.' ) + '\.' '[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}' config_list . scan ( / #{ regex } / ) end
Get all instances of given factory OSGi config PID
Get all instances of given factory OSGi config PID
a list of all instances of a given OSGi factory
a list of all instances of a given OSGi factory
Array
pid
factory PID to look for
factory PID to look for