test/shared/spec_helper.rb
# Check whether given property is set or not
#
# @param pid [String] PID of OSGi config
# @param key [String] name of configuration key/id
# @return [Boolean] true if config is set, false otherwise
Check whether given property is set or not
Check whether given property is set or not
def config_is_set(pid, key)
    require 'json'
    raw_json = `/opt/scripts/CQ-Unix-Toolkit/cqcfg \
     -u admin \
     -p admin \
     -i http://localhost:4502 \
     -j #{pid}`
    JSON.parse(raw_json)['properties'][key]['is_set']
  end
def config_is_set ( pid , key ) require 'json' raw_json = ` /opt/scripts/CQ-Unix-Toolkit/cqcfg  \
      -u admin  \
      -p admin  \
      -i http://localhost:4502  \
      -j  #{ pid } ` JSON . parse ( raw_json ) [ 'properties' ] [ key ] [ 'is_set' ] end
Check whether given property is set or not
Check whether given property is set or not
true if config is set, false otherwise
true if config is set false otherwise
Boolean
pid
PID of OSGi config
PID of OSGi config
key
name of configuration key/id
name of configuration key / id