Commit Graph

540 Commits

Author SHA1 Message Date
Markus Rathgeb
223a371628 update Maven project settings (Eclipse IDE)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
223889c6d0 migrate tests for thing.xml
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
fd95b86b36 centralize the bundle identifier construction
The ready marker logic is created to hide the real usage. The ready
marker uses an "identifier" that is not specific or limited to bundles.

Currently the bundle symbolic name is used as bundle identifier.
That "convention" needs to be known at several different places.

There should be one method that created an identifier for a bundle and
"no one" needs to care about the implementation details.

Another point is that the bundle symbolic name that has been used is
optional. It may be null e.g. for bundles that has been installed by the
synthetic bundle installer mechanism etc.

The runtime assigns a bundle ID to an installed bundle that remains the
same for the bundle (see JavaDoc). The bundle ID is present all the
time.

The implementation of the "get identifier for bundle" has been choosen
to use the BSN -- if available -- (as before) but fallback to a custom
one using also the bundle ID (to be unique).
So we can provide always a non null identifier for a bundle.
It should be easily to change the identifier creation now if there is
every any need for.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
92b71f1712 provide a better uninstall method for synthetic bundles
If a bundle misses a BSN the bundle cannot be installed.
We should provide a method to uninstall the bundle that has been created
by the synthetic installer itself.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
d6b0458d5f migrate tests for tranform
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
b88cb6fa4f migrate tests for ui.icon
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
8c4d4e306e migrate tests for ui
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
f731e0ccd6 migrate tests for config.discovery
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:55:59 +01:00
Markus Rathgeb
52aa847239 migrate tests for voice
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:55:59 +01:00
Markus Rathgeb
41b4a7dd1f migreate tests for io.net
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:55:59 +01:00
Markus Rathgeb
23809b0cbd add provided storage capability to test bundle itself
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:55:59 +01:00
Kai Kreuzer
ec088c78a0
improved addons parent pom (#536)
* improved addons parent pom
- removed reference to openhab-core bom
- added required dependencies to core bundles
- removed Artifactory snapshot release

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-06 15:16:55 +01:00
Henning Treu
c4e744bc54 Adopt openHAB Core IDE setup to folder layout & set workspace name (#538)
Signed-off-by: Henning Treu <henning.treu@googlemail.com>
2019-02-06 12:51:11 +00:00
Kai Kreuzer
a6a1d59cb4 corrected namespace of automation tests (#534)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-05 13:09:24 +00:00
Markus Rathgeb
d775bf7a29 add further tests (#533)
* migrate audio tests
* migrate automation.core and automation.event tests

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-05 12:54:04 +01:00
Kai Kreuzer
981a447e99 (Temporarily) removed DS requirements generation to make addon repos compile (#530)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-05 08:57:11 +00:00
Markus Rathgeb
68efabe63c enable nullness checks on Maven build again (#529)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-05 09:33:15 +01:00
Markus Rathgeb
c9a090dbcf add some tests and prepare infrastructure (#531)
This commit move the files to the correct directories and prepare the
whole infrastructure. After that hopefully small changes needs to be
done only to get tests running.

Some tests has been already enabled, too.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-05 09:32:49 +01:00
Markus Rathgeb
034e38d3e1 add test: org.openhab.core.config.core (#516)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-04 17:37:10 +01:00
Florian
b078aab598 Remove pluginRepository repo.reficio.org as it is offline (#525)
Fixes #524

Signed-off-by: Florian <florian.schmidt.welzow@t-online.de>
2019-02-04 14:24:37 +00:00
Markus Rathgeb
e4c8f0b863 check java version range (#523)
The version 1.8.0_25 is know to be incompatible with our code base.
Java > 1.8 should not work with our currently used Xtext version.

Related to: https://github.com/openhab/openhab-core/issues/522

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-04 14:18:50 +01:00
Scott Rushworth
a65efe062d Add registration (#520)
Signed-off-by: Scott Rushworth <openhab@5iver.com>
2019-02-03 18:50:57 +01:00
Markus Rathgeb
19c9a415f0 test: org.openhab.core.thing: relax runrequires (#518)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-03 18:42:25 +01:00
Markus Rathgeb
93ef47c4a7 add test: org.openhab.core.id (#514)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 19:32:39 +01:00
David Gräff
9a2816d33f Update README.md (#498)
Update README.md with build instructions etc. Roughly a copy of ESH README.md, but a good first start, I guess.

Signed-off-by: davidgraeff <david.graeff@web.de>
2019-02-01 16:18:41 +01:00
Markus Rathgeb
b3e3b92456 add itest: org.openhab.core.thing.test (#512)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 16:09:49 +01:00
Markus Rathgeb
c59dd21044 WAR: ignore Eclipse IDE integration of bnd indexer temporary (#511)
Related to: https://github.com/openhab/openhab-core/pull/467#issuecomment-456362798

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 16:08:44 +01:00
Markus Rathgeb
7a1982e785 harden against missing bundle symbolic name (#510)
Fixes: https://github.com/openhab/openhab-core/issues/508

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 14:53:38 +01:00
Markus Rathgeb
68c8db8227 add missing no-arg constructors (#509)
* FirmwareUpdateProgressInfo
* FirmwareStatusInfo
* FirmwareUpdateResultInfo

Fixes: https://github.com/openhab/openhab-core/issues/507

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 14:24:25 +01:00
Markus Rathgeb
c37d2a41e9 use openHAB Core index, simplify itests and demo app (#503)
* use openHAB Core index, simplify itests and demo app

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 11:02:39 +01:00
Markus Rathgeb
9475025cf7 at missing no-arg constructor for Gson deserialization (#505)
Fixes: https://github.com/openhab/openhab-core/issues/504

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 11:01:40 +01:00
Markus Rathgeb
6260f8e8ae fix scope (#502)
* fix scope

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 10:05:25 +01:00
Markus Rathgeb
4c856476a0 attach source artifact of "bundles" (#500)
Fixes: https://github.com/openhab/openhab-core/issues/496

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 09:04:17 +01:00
Kai Kreuzer
9f27727e09 REST API: (Optionally) include hidden widgets in sitemap API response (#499)
Also-by: Danny Baumann <dannybaumann@web.de>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 15:46:25 +00:00
Kai Kreuzer
0d1828f819 Extend usb serial discovery service to contain product ID (#497)
For better differentiation between different USB devices `UsbSerialDiscoveryService` is extended to add `usb_vendor_id` and `usb_product_id` properties to every thing which represents USB device.

Also-by: YordanDZhelev <zhelev.yordan@gmail.com>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 12:45:10 +00:00
Markus Rathgeb
436e1d5ac9 use release version of p2-maven-plugin (#495)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-31 11:29:19 +01:00
Markus Rathgeb
60d51f92c2 add property to enable bnd resolver on Maven run (#494)
The property `withResolver` binds the `resolve` goal of the
`bnd-resolver-maven-plugin` to the `package` phase.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-31 11:28:31 +01:00
Kai Kreuzer
53096ba08f removed Groovy support from tests (#490)
Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 05:15:43 +00:00
Kai Kreuzer
dec4ad997d Export all org.openhab packages (except internal ones) (#492)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 05:12:04 +00:00
Markus Rathgeb
014cc6c708 MapDB storage: fix deserialization bug and add test (#486)
Fixes: https://github.com/eclipse/smarthome/issues/6877

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-30 17:17:23 +01:00
Kai Kreuzer
3b6dfbeddb Keep persisted disabled status when thing is removed (#493)
Also-By: Florian Stolte <fstolte@itemis.de>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-30 11:37:51 +01:00
Kai Kreuzer
5e2e7b1e16 removed bundles from p2 repo that are not needed in the TP and which have special dependencies (#491)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-30 08:30:35 +00:00
Markus Rathgeb
76dd62623f make a first step to split between pure JUnit and integration tests (#488)
* make a first step to split between pure JUnit and integration tests

Related to: https://github.com/openhab/openhab-core/issues/482

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-30 08:57:06 +01:00
Wouter Born
c4f1fc3cfa Remove duplicate import (#487)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2019-01-29 15:42:16 +00:00
Kai Kreuzer
c0ef794924 fixed version check and content-type of archive (#485)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-29 11:04:09 +00:00
Markus Rathgeb
f7eec48c76 fix classpath (ESH-INF have been moved already) (#484)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 11:19:45 +01:00
Markus Rathgeb
fbca7e806f remove project specific JDT settings (#481)
Done per request by @wborn.
Related to: https://github.com/openhab/openhab-core/pull/476#discussion_r251566034

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 10:24:39 +01:00
Markus Rathgeb
64dccd32dd tests: run pure JUnit tests (bugfix), add MapDB tests (migrated to JUnit) (#476)
* tests: run pure JUnit tests (bugfix), add MapDB tests (migrated to JUnit)
* remove project specific JDT settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 10:05:47 +01:00
Kai Kreuzer
db57804dab switched from zip to tar.gz as this is available on Linux by default (#483)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-29 09:02:51 +00:00
Kai Kreuzer
cf06a9e2ab removed some ESH references (#480)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-29 05:48:09 +00:00