The QE automation makes extensive use of the Hawkular REST API for setup, verification,
etc .... There might be some useful code examples in the test suite here
https://github.com/ManageIQ/wrapanapi/blob/master/mgmtsystem/hawkular.py
Michael
----- Original Message -----
From: "Austin Kuo" <auszon3(a)gmail.com>
To: "Discussions around Hawkular development"
<hawkular-dev(a)lists.jboss.org>
Sent: Wednesday, July 27, 2016 11:37:04 AM
Subject: Re: [Hawkular-dev] Inventory API question
THANKS!
On Wed, Jul 27, 2016 at 10:44 PM Jiri Kremser < jkremser(a)redhat.com > wrote:
Or is there any other way that I can exploit the latest inventory?
There is.
build the inventory:
git clone
https://github.com/hawkular/hawkular-inventory.git
cd hawkular-inventory
mvn clean install -DskipTests
..and then build the services that will use the inventory snapshot version
git clone
https://github.com/hawkular/hawkular-services.git
cd hawkular-services
sed -i
"s/\(<version.org.hawkular.inventory>\)[^<]*/\10.18.0.Final-SNAPSHOT/g"
./pom.xml
mvn clean install -Pdev -DskipTests
./dist/target/hawkular-*/bin/standalone.sh -Dhawkular.log.cassandra=WARN
-Dhawkular.log.inventory.rest.requests=DEBUG -Dhawkular.rest.user=jdoe
-Dhawkular.rest.password=password -Dhawkular.agent.enabled=true'
jk
On Wed, Jul 27, 2016 at 4:11 AM, Austin Kuo < auszon3(a)gmail.com > wrote:
<blockquote>
When is the next inventory release because I'm waiting for the fix? Or is there any
other way that I can exploit the latest inventory?
Thanks!
Austin Kuo < auszon3(a)gmail.com >於 2016年7月21日 週四,18:34寫道:
<blockquote>
Sure.
https://issues.jboss.org/browse/HAWKULAR-1099
On Thu, Jul 21, 2016 at 6:23 PM Lukas Krejci < lkrejci(a)redhat.com > wrote:
<blockquote>
On čtvrtek 21. července 2016 10:16:27 CEST Austin Kuo wrote:
Oops, it's 0.17.2.Final. I just saw it from the browser.
Ok, then this is a bug... Would you be able to write up a JIRA for it with
repro steps so that I can take a look at it?
On Thu, Jul 21, 2016 at 6:15 PM Austin Kuo < auszon3(a)gmail.com
> wrote:
> Not sure about the version since i'm using the docker image provide by
> pilhuhn.
> I'm try to run it directly, but how to make it run at the host 0.0.0.0
> such that I can access it from remote ?
>
> On Thu, Jul 21, 2016 at 5:31 PM Lukas Krejci < lkrejci(a)redhat.com > wrote:
>> That's definitely a bug. What version of inventory are you using?
>>
>> I think I've fixed a problem like this in 0.17.2.Final. But of course,
>> this
>> could be a different instantiation of it.
>>
>> On čtvrtek 21. července 2016 8:42:03 CEST Austin Kuo wrote:
>> > I was creating 2 different resource types with the same http client at
>>
>> the
>>
>> > same time.
>> > But one succeed, the other failed with the response 400 and body:
>> > {
>> >
>> > "errorMsg" : "The transaction has already been closed"
>> >
>> > }
>> >
>> > Is it not allowed to do so?
>> >
>> > Austin.
>>
>> --
>> Lukas Krejci
>>
>> _______________________________________________
>> hawkular-dev mailing list
>> hawkular-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/hawkular-dev
--
Lukas Krejci
</blockquote>
_______________________________________________
hawkular-dev mailing list
hawkular-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev
</blockquote>
_______________________________________________
hawkular-dev mailing list
hawkular-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev
</blockquote>
_______________________________________________
hawkular-dev mailing list
hawkular-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev