spec/liberty_buildpack/services/mongo_spec.rb
#----------------------------------------------------------
# Helper methods to return constants used in checking server.xml contents
#----------------------------------------------------------
Helper methods to return constants used in checking server.xml contents
Helper methods to return constants used in checking server . xml contents
def check_server_xml_update_attribute(root, sm)
        contents = []
        contents << '<server>'
        contents << '<featureManager><feature>jsp-2.2</feature></featureManager>'
        t1 = "<mongo hostNames='noHost' id='#{get_mongo_id}' libraryRef='myLibrary' password='noPassword' ports='1111' user='noUser'/>"
        contents << t1
        contents << "<mongoDB databaseName='noDB' id='#{get_mongodb_id}' jndiName='myJndi' mongoRef='#{get_mongo_id}'/>"
        contents << "<library id='myLibrary'><fileset dir='lib' id='lib-id'/></library>"
        contents << '</server>'
        check_server_xml_update(root, sm, contents)
      end
def check_server_xml_update_attribute ( root , sm ) contents = [ ] contents << '<server>' contents << '<featureManager><feature>jsp-2.2</feature></featureManager>' t1 = "<mongo hostNames='noHost' id='#{get_mongo_id}' libraryRef='myLibrary' password='noPassword' ports='1111' user='noUser'/>" contents << t1 contents << "<mongoDB databaseName='noDB' id='#{get_mongodb_id}' jndiName='myJndi' mongoRef='#{get_mongo_id}'/>" contents << "<library id='myLibrary'><fileset dir='lib' id='lib-id'/></library>" contents << '</server>' check_server_xml_update ( root , sm , contents ) end
Helper methods to return constants used in checking server.xml contents
Helper methods to return constants used in checking server . xml contents
root
sm