Branch: refs/heads/master
Home:
https://github.com/rhq-project/rhq
Commit: 69439e8d5014983ed9ab439dad7d72295beda612
https://github.com/rhq-project/rhq/commit/69439e8d5014983ed9ab439dad7d722...
Author: Libor Zoubek <lzoubek(a)redhat.com>
Date: 2014-03-18 (Tue, 18 Mar 2014)
Changed paths:
M
modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/rest/ResourceHandlerBean.java
M
modules/integration-tests/rest-api/src/test/java/org/rhq/modules/integrationTests/restApi/AbstractBase.java
M
modules/integration-tests/rest-api/src/test/java/org/rhq/modules/integrationTests/restApi/ContentTest.java
M
modules/integration-tests/rest-api/src/test/java/org/rhq/modules/integrationTests/restApi/ResourcesTest.java
Log Message:
-----------
[BZ 958922] RFE: support for passing plugin config when creating child
resources
Now we support all 4 possible 'ways' to create a resource on RHQ
1. regular resource (was already implemented) - when REST client create
resources that agent would have discovered. Such resources is not possible
to create via UI or CLI
2. content-based resources (was already implemented)
3. resource children: similar to content-based resources, UI analogy is
"Create Child". Create child history exists. - possible resource duplicities
are handled on agent side.
4. manual resources: Resources that could be only manually Imported from UI,
create child history does not exist for those, and their resource key highly
depends on given pluginConfiguration (although resourceName can be passed).
Duplicates are handled on server side, since underlying API does not report
an error when manually imported resource already exists.
For 3. and 4. there's client can optinaly pass only required plugin/resource
configurations. In rest api code, we retrieve all the defaults from resource
type and then apply passed values on top.
Commit: 2d41838c2531783f628fbb6a3bb533e9d791bacb
https://github.com/rhq-project/rhq/commit/2d41838c2531783f628fbb6a3bb533e...
Author: Heiko W. Rupp <hwr(a)pilhuhn.de>
Date: 2014-03-24 (Mon, 24 Mar 2014)
Changed paths:
M
modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/rest/ResourceHandlerBean.java
M
modules/integration-tests/rest-api/src/test/java/org/rhq/modules/integrationTests/restApi/AbstractBase.java
M
modules/integration-tests/rest-api/src/test/java/org/rhq/modules/integrationTests/restApi/ContentTest.java
M
modules/integration-tests/rest-api/src/test/java/org/rhq/modules/integrationTests/restApi/ResourcesTest.java
Log Message:
-----------
Merge pull request #13 from lzoubek/bugs/958922
[BZ 958922] RFE: support for passing plugin config when creating child
Compare:
https://github.com/rhq-project/rhq/compare/eca4d472c4a9...2d41838c2531