deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Lutterkort <>
Subject Re: [PATCH] CIMI: system and system_template support for mock driver. Just GET for now, no subcollections
Date Mon, 18 Feb 2013 23:02:19 GMT
Hi Dies,

strange, both of these work for me now. I had to do an unholy
combination of deleting directories of the form /var/tmp/*deltacloud* ,
restarting the server and requesting the CEP to get proper responses;
with the two patches I just posted, it should be enough to do 'rake

After that, though, I get proper responses:

        # curl --user mockuser:mockpassword -H 'Accept: application/xml' "http://localhost:3001/cimi/system_templates/template1"
        <SystemTemplate xmlns="" resourceURI="">
          <description>A mock system template</description>
          <created>Fri Feb 08 12:15:15 EET 2013</created>
            <name>my machine</name>
            <description>an inline mock machine template</description>
            <name>my network</name>
            <description>a reference to an existing mock network template</description>
          <operation rel="edit" href="http://localhost:3001/cimi/system_templates/template1"
          <operation rel="delete" href="http://localhost:3001/cimi/system_templates/template1"
        # curl --user mockuser:mockpassword -H 'Accept: application/xml' "http://localhost:3001/cimi/systems/system1"

        <System xmlns="" resourceURI="">
          <description>the first system</description>
          <created>Fri Feb 08 15:25:41 EET 2013</created>
          <operation rel="edit" href="http://localhost:3001/cimi/systems/system1" />
          <operation rel="delete" href="http://localhost:3001/cimi/systems/system1" />
What's missing from your patches though are unit tests ...


View raw message