# File test/metacat_test.rb, line 7
  def setup
    # This test case is setup for use against the ucsb/msi metacat server
    # You need a valid login to run the test case as well as an squery, eml-docid,
    # and datatable docid that will all return documents
    @username = 'uid=cburt,o=PISCO,dc=ecoinformatics,dc=org'
    @password = '7lobster'
    @metacat = Metacat.new("http://data.piscoweb.org/catalog/metacat")
    #must return at least one eml document
    @squery = '<?xml version="1.0"?>
                 <pathquery version="1.2">
                   <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
                   <returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
                   <returnfield>dataset/title</returnfield>
                   <returnfield>dataTable/entityName</returnfield>
                   <returnfield>creator/individualName/surName</returnfield>
                   <returnfield>creator/organizationName</returnfield>
                   <returnfield>dataTable/physical/distribution/online/url</returnfield>
                   <querygroup operator="INTERSECT">
                     <queryterm casesensitive="false" searchmode="starts-with">
                       <value>PISCO:</value>
                       <pathexpr>title</pathexpr>
                     </queryterm>
                     <querygroup operator="INTERSECT">
                       <queryterm casesensitive="true" searchmode="equals">
                         <value>Subtidal Community Survey Data</value>
                         <pathexpr>keywordSet/keyword</pathexpr>
                       </queryterm>
                       <queryterm casesensitive="true" searchmode="equals">
                         <value>PISCO Categories</value>
                         <pathexpr>keywordSet/keywordThesaurus</pathexpr>
                       </queryterm>
                     </querygroup>
                   </querygroup>
                 </pathquery>'
    @data_table_docid = 'HMS001_020ADCP019R00_20060612.40.1'
    @eml_docid = 'HMS001_020ADCP019R00_20060612.50.1'
    # Not accessable to user Public
    @locked_docid = 'chad.1.1'
  end