aaa.git
4 years agoDo not use toString() with loggers 05/85405/1
Robert Varga [Mon, 28 Oct 2019 12:39:17 +0000 (13:39 +0100)]
Do not use toString() with loggers

Formatting statements which are arguments to debug() is wasteful,
as logging implementation will do the right thing if/when needed.

Change-Id: Ic00eec1a23378f70b272151fc1224e9c13b0ebd8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoCleanup JettyWebServer suppressions 85/85385/1
Robert Varga [Fri, 25 Oct 2019 11:22:48 +0000 (13:22 +0200)]
Cleanup JettyWebServer suppressions

This cleans up exception handling, removing unneeded supressions
and lowering the scope of the checkstyle:IllegalCatch.

Change-Id: I8a385e6508d593a21f9f4dd613345f7afff17c14
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoAggregators should use odlparent-lite 72/85372/1
Robert Varga [Thu, 24 Oct 2019 11:02:50 +0000 (13:02 +0200)]
Aggregators should use odlparent-lite

These are mistakenly using full odlparent, which is not what
we want. Additionally aaa-password-service lists dependencies,
which is also wrong.

Change-Id: I2696f5340554a168650563244e035ba9907e989a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoRemove comons-beanutils overrides 68/85368/1
Robert Varga [Thu, 24 Oct 2019 10:46:52 +0000 (12:46 +0200)]
Remove comons-beanutils overrides

odlparent is propagating the proper definition, do not override
it here.

Change-Id: Ie2ea3ed759d0f6d54a36cb5d23155fcc039295fb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoRemove install/deploy plugin configuration 67/85367/1
Robert Varga [Thu, 24 Oct 2019 10:10:03 +0000 (12:10 +0200)]
Remove install/deploy plugin configuration

Control install/deploy through a simple property rather than
spelling out the complete configuration for install/deploy plugins.

Change-Id: I902c383957d815fd32eb0c35125db9d34d017e11
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoMerge "Ditch dependency on infrautils.testutils"
Robert Varga [Thu, 24 Oct 2019 08:43:04 +0000 (08:43 +0000)]
Merge "Ditch dependency on infrautils.testutils"

4 years agoMerge "Fix Typo in RPC Name"
Robert Varga [Thu, 24 Oct 2019 08:41:36 +0000 (08:41 +0000)]
Merge "Fix Typo in RPC Name"

4 years agoDitch dependency on infrautils.testutils 85/84785/12
Robert Varga [Fri, 27 Sep 2019 13:34:35 +0000 (15:34 +0200)]
Ditch dependency on infrautils.testutils

We are depending on testutils only for WebClient. Java 11 provides
a simple HttpClient, which is way more powerful, use that rather
than a random home-grown thing.

Change-Id: Id406b7a774e54b325a5f05f5b8ca786eab2aa522
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFixup aaa-cert-mdsal pyang warnings 38/85338/1
Robert Varga [Wed, 23 Oct 2019 08:42:41 +0000 (10:42 +0200)]
Fixup aaa-cert-mdsal pyang warnings

This is just a matter of reordering statements, fix that up.

Change-Id: I25cb60842dcdee6bfbb212caa2bda380cfbb69af
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoRemove unneeded checkstyle/spotbugs declaration 80/85280/1
Robert Varga [Mon, 21 Oct 2019 03:56:34 +0000 (05:56 +0200)]
Remove unneeded checkstyle/spotbugs declaration

odlparent is enabling these, remove superfluous configuration.

Change-Id: Ib3b54f3db0a52c52197e47a5adfe7a572b55f56f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFix Typo in RPC Name 62/84762/9
Venkatrangan Govindarajan [Fri, 27 Sep 2019 00:02:06 +0000 (05:32 +0530)]
Fix Typo in RPC Name

This is a simple typo, make sure we have a sane interface.

JIRA: AAA-186
Change-Id: I1ecceff4c860792664b6dbd17c8309b8bb43dbaf
Signed-off-by: Venkatrangan Govindarajan <vgovindarajan@luminanetworks.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoRemove use of jdepend.maven.plugin.version 94/85094/1
Robert Varga [Sun, 13 Oct 2019 08:21:21 +0000 (10:21 +0200)]
Remove use of jdepend.maven.plugin.version

jdepend-maven-plugin is properly declared in odlparent, remove
the property reference.

Change-Id: I576b692dc28041875120e04aa0eba6caad0afbb0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 5.0.3 62/85062/1
Robert Varga [Fri, 11 Oct 2019 14:10:03 +0000 (16:10 +0200)]
Bump mdsal to 5.0.3

This bumps mdsal to 5.0.3 to workaround issues with Blueprint
injection.

Change-Id: I848c9220ce06ec7b4af304ab64948bdc30257dbd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoDisable slf4j SSL link 41/85041/1
Robert Varga [Thu, 10 Oct 2019 18:57:42 +0000 (20:57 +0200)]
Disable slf4j SSL link

slf4j does not provide apidocs over TLS (WTF?!?!?!), link HTTP
site instead.

Change-Id: I2158c043a2d9e810a329587159fc6af9d57d8e56
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 5.0.2 58/83858/14
Robert Varga [Wed, 21 Aug 2019 10:56:39 +0000 (12:56 +0200)]
Bump mdsal to 5.0.2

This bumps mdsal to 5.0.2 as part of Magnesium MRI.

Change-Id: Id9ab45edf28477dca8acf8f7538cfd26f237f6f4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump yangtools to 4.0.1 57/83857/10
Robert Varga [Wed, 21 Aug 2019 10:55:15 +0000 (12:55 +0200)]
Bump yangtools to 4.0.1

This bumps yangtools to 4.0.1 as part of Magnesium MRI.

Change-Id: I6228c73d31721c8427e7f456afd5ab3ff715c88b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent to 6.0.0 56/83856/8
Robert Varga [Wed, 21 Aug 2019 10:56:06 +0000 (12:56 +0200)]
Bump odlparent to 6.0.0

This bumps odlparent to 6.0.0 as part of Magnesium MRI.

Change-Id: Id4623f27c1c34a2dfeb41b610e0b650ba73443d7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoReduce javadoc links 52/84852/1
Robert Varga [Tue, 1 Oct 2019 15:08:30 +0000 (17:08 +0200)]
Reduce javadoc links

There is a bunch of links we do not use -- just remove them.

Change-Id: Ia03e1e048ad0833e3d63fd45dcc931a47076747a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFixup web-api tests 83/84783/2
Robert Varga [Fri, 27 Sep 2019 13:07:30 +0000 (15:07 +0200)]
Fixup web-api tests

This removes @Ignore from the two out of three tests, and fixes them
up to perform correct assertion. Also ditch dependency on infrautils
while we're at it -- while this has *some* duplication, we will ditch
that once we have JUnit 4.13 anyway.

Change-Id: I85a8701a6bb9bfa08aa02a8233e20c9814a82ed6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoAdd modernizer suppressions 55/83855/4
Robert Varga [Wed, 21 Aug 2019 12:38:09 +0000 (14:38 +0200)]
Add modernizer suppressions

We are dealing with Dictionaries, hence we need to suppress
modernization.

Change-Id: Icd25282433fc86fdeba28d45a6bfc476b8c504cf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump mdsal to 4.0.6 19/84419/2
Robert Varga [Sat, 14 Sep 2019 01:36:25 +0000 (03:36 +0200)]
Bump mdsal to 4.0.6

This brings in the latest fixes.

Change-Id: Ib5b6a2cc0fa56b5b7d999d4ec6f74feedd3951ef
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump yangtools to 3.0.5 00/84400/2
Robert Varga [Fri, 13 Sep 2019 14:27:12 +0000 (16:27 +0200)]
Bump yangtools to 3.0.5

This picks up the latest improvements.

Change-Id: Iad3b646f63a274022f004fa9f3d0b2ebdf0cf9db
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent to 5.0.2 49/83849/4
Robert Varga [Wed, 21 Aug 2019 10:39:34 +0000 (12:39 +0200)]
Bump odlparent to 5.0.2

This bumps odlparent to pick up latest references.

Change-Id: I42508f1a80a959766ec5223d31ac255ebd16e9f2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoMerge "Update docs header to Magnesium in the master"
Robert Varga [Sat, 7 Sep 2019 06:20:50 +0000 (06:20 +0000)]
Merge "Update docs header to Magnesium in the master"

4 years agoApply code modernizations 54/83854/1
Robert Varga [Wed, 21 Aug 2019 12:29:30 +0000 (14:29 +0200)]
Apply code modernizations

This migrates off of methods pointed out by modernizer plugin.

Change-Id: Idc4411bab70ce946551da618ba7f6257c4902098
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoMigrate Vector to ArrayList 53/83853/1
Robert Varga [Wed, 21 Aug 2019 12:10:20 +0000 (14:10 +0200)]
Migrate Vector to ArrayList

As pointed out by modernizer, we should be using ArrayList instead
of Vector.

Change-Id: I184d63b2f124ba8fae169d61234493eeb4fe935e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoMigrate deprecated newInstance() 52/83852/1
Robert Varga [Wed, 21 Aug 2019 11:02:51 +0000 (13:02 +0200)]
Migrate deprecated newInstance()

Class.newInstance() is deprecated since Java 9, remove its use.

Change-Id: Iae15923310b8001ed1b58e22a28dd5c36f3a00d8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFix checkstyle 51/83851/1
Robert Varga [Wed, 21 Aug 2019 12:15:35 +0000 (14:15 +0200)]
Fix checkstyle

This fixes up checkstyle warnings reported by updated version.

Change-Id: I91fd55a8817630c36e673adc3b8569a82aa315f6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoRemove unneeded assert 50/83850/1
Robert Varga [Wed, 21 Aug 2019 11:02:26 +0000 (13:02 +0200)]
Remove unneeded assert

This assertion is always true, remove it.

Change-Id: I8e24a6bfb3c662dfc4e96df77d1df79d81a2380b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoUpdate docs header to Magnesium in the master 05/83805/1
Anushka Bhandari [Tue, 20 Aug 2019 16:52:27 +0000 (22:22 +0530)]
Update docs header to Magnesium in the master

Should be Magnesium on master and Sodium on stable/sodium.

Signed-off-by: Anushka Bhandari <anushka16134@iiitd.ac.in>
Change-Id: I3e4db5d8431ebac5b55cdb00ccd6f3de9831f440

4 years agoBump mdsal to 4.0.4 28/83728/1
Robert Varga [Thu, 15 Aug 2019 08:28:19 +0000 (10:28 +0200)]
Bump mdsal to 4.0.4

This brings in latest fixes.

Change-Id: I59f89ef4fe76ef16fcdc9b59f8d9b50aa0849847
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump versions by x.y.(z+1) 41/83541/1
jenkins-releng [Mon, 12 Aug 2019 16:14:11 +0000 (16:14 +0000)]
Bump versions by x.y.(z+1)

Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Change-Id: I10ceb0ab12c777b0cb034a4e28054bb441973428

4 years agoupdate dev-guide.rst 92/83492/3
nullop [Tue, 6 Aug 2019 16:12:47 +0000 (12:12 -0400)]
update dev-guide.rst

update the instructions for servlet support

Issue-ID: AAA-185
Change-Id: Ibc8537f33893d82f3bb5fc924a5d714c7d428267
Signed-off-by: nullop <ks6305@att.com>
4 years agoBump mdsal to 4.0.3 98/83098/5
Robert Varga [Thu, 18 Jul 2019 10:32:21 +0000 (12:32 +0200)]
Bump mdsal to 4.0.3

This bumps mdsal to 4.0.3, bringing in latest fixes and improvements.

Change-Id: Ie8e03aab1f31edf80bc9f1d7896c334c9d83be8d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump yangtools to 3.0.4 97/83097/4
Robert Varga [Thu, 18 Jul 2019 10:31:44 +0000 (12:31 +0200)]
Bump yangtools to 3.0.4

This picks up latest fixes and improvements.

Change-Id: I03201927d23762acf641c1ab0ff3419ba8b94969
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoBump odlparent to 5.0.1 96/83096/1
Robert Varga [Thu, 18 Jul 2019 10:31:21 +0000 (12:31 +0200)]
Bump odlparent to 5.0.1

This picks up the latest upgrades.

Change-Id: If6006a94197839a9718cd5eae16b0a025913af93
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoFix JDK11/docs compilation 41/82941/1
Robert Varga [Mon, 8 Jul 2019 08:17:01 +0000 (10:17 +0200)]
Fix JDK11/docs compilation

JDK11 is more picky about errors, this fixes them up.

Change-Id: I89d2179bdc07572edeb7d5158ede398078e618b0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
4 years agoAdd aaa-docs 03/82903/1
Robert Varga [Tue, 28 May 2019 09:15:36 +0000 (11:15 +0200)]
Add aaa-docs

This adds documentation aggregator, which produces a aaa-docs.jar,
containing all AAA documentation we have in-tree.

Change-Id: I73e900e655ce2153ec0ab53cde4f90e9f15880ed
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoInitialize MDSALDynamicAuthorizationFilter lazily 69/82569/2
Robert Varga [Wed, 19 Jun 2019 13:13:28 +0000 (15:13 +0200)]
Initialize MDSALDynamicAuthorizationFilter lazily

Filters should not initialize in their constructor, but rather
when instructed to do so by the container. This patch moves
initialization to onFilterConfigSet(), which is called from
the init() method.

Change-Id: I37c371c94ea3abc8dccd1793bf9dd981bf034b36
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 4.0.2 68/82268/3
Robert Varga [Tue, 28 May 2019 07:19:05 +0000 (09:19 +0200)]
Bump mdsal to 4.0.2

This picks up the latest improvements.

Change-Id: Ic51617c1ef8574c949995d81daad4e6b2ae3db07
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 3.0.1 67/82267/2
Robert Varga [Tue, 28 May 2019 07:18:49 +0000 (09:18 +0200)]
Bump yangtools to 3.0.1

This picks up the latest fixes.

Change-Id: I5aa12ab70664b573710a7648df2bc61b6fbeb013
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 4.0.1 24/81824/3
Robert Varga [Tue, 30 Apr 2019 11:48:24 +0000 (13:48 +0200)]
Bump mdsal to 4.0.1

This bumps mdsal to 4.0.1.

Change-Id: I567bb9d42b8ec0691e515d030699829ea6b1c5a5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAdd web-jetty-impl to artifacts 24/82024/1
Robert Varga [Tue, 14 May 2019 10:31:54 +0000 (12:31 +0200)]
Add web-jetty-impl to artifacts

Failing to publish the proper version is a mistake forcing
downstreams to specify multiple versions. Fix that.

Change-Id: I4fd4409914f64d32f3602e1c7ae36e84033b19db
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 4.0.0 68/81268/8
Robert Varga [Thu, 28 Mar 2019 18:51:06 +0000 (19:51 +0100)]
Bump mdsal to 4.0.0

This bumps mdsal to 4.0.0.

Change-Id: Ie12f7a41e1620fd366f132e4fe7232e2c5d7a89b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 3.0.0 67/81267/7
Robert Varga [Thu, 28 Mar 2019 18:49:55 +0000 (19:49 +0100)]
Bump yangtools to 3.0.0

This bumps yangtools to 3.0.0, with no additional changes required.

Change-Id: I35e75b228308a40edc1d4f4b2c00466cc0b47d86
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump odlparent to 5.0.0 66/81266/5
Robert Varga [Thu, 28 Mar 2019 18:47:54 +0000 (19:47 +0100)]
Bump odlparent to 5.0.0

This bumps odlparent dependencies to 5.0.0, removing references
to javax.annotation.concurrent, as they are not that useful.

Change-Id: I6ceb7d04c41a533ea9f7f7c329a6a59c72fc3e4c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoDo not unregister oauth2 endpoint 88/81488/1
Robert Varga [Tue, 9 Apr 2019 13:13:28 +0000 (15:13 +0200)]
Do not unregister oauth2 endpoint

Since we are not registering the endpoint, we should not be
unregistering it.

Change-Id: I96ed22f6c7e4bff4670650ca83265ef908813b86
JIRA: AAA-173
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix warnings in aaa-filterchain 70/81270/1
Robert Varga [Thu, 28 Mar 2019 19:18:55 +0000 (20:18 +0100)]
Fix warnings in aaa-filterchain

These are simple uses of deprecated methods, missing serialVersion
and unneded suppression.

Change-Id: Ic3d7fc013b0152b62ab6a57ef076c2dbc81a6420
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Remove dependency on features-test"
Tom Pantelis [Fri, 22 Mar 2019 21:52:39 +0000 (21:52 +0000)]
Merge "Remove dependency on features-test"

5 years agoRemove dependency on features-test 13/81113/1
Robert Varga [Fri, 22 Mar 2019 12:52:28 +0000 (13:52 +0100)]
Remove dependency on features-test

This dependency should not be used anywhere, remove it.

Change-Id: I8de63c1fa7dbdf9aa58c8535fde2bb9120dc6b3e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAAA-174 : Don't reuse JDBC connection 08/81108/2
Richard Kosegi [Fri, 22 Mar 2019 08:18:03 +0000 (09:18 +0100)]
AAA-174 : Don't reuse JDBC connection

Multiple threads can obtain same instance of Connection
which is not thread safe. After first thread call #close()
other threads can't use connection further.

Proper solution would be connection pool, but as H2 store
is local, obtaining new connection is cheap.
Local testing doesn't yield measurable performence penality.

Change-Id: Ie326e39da8cb01283cc516ef99363c0f4236698d
Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
5 years agoEliminate AAA OAuth2 Provider 22/72022/14
Ryan Goulding [Tue, 15 May 2018 16:24:38 +0000 (12:24 -0400)]
Eliminate AAA OAuth2 Provider

For the foreseeable past, OpenDaylight AAA development team has
agreed to avoid becoming an IdP.  The simple fact is that there
hundreds (if not more) of IdP solutions that are very secure and
have been proved with time.  The cost of maintaining an IdP is
extremely high, as the code is not always simple, and requires
highly skilled, security minded developers to maintain.

However, one remenant of IdP currently exists as a part of ODL
AAA, namely the OAuth2 Provider Implementation.  The OAuth2
Provider implementation allows users to derive scoped access
tokens in order to access the controller without using plain
credentials.  Part of OAuth2 inherently also provides easy
revocation of tokens.

However, this begs the question, are we an IdP at this point?
The preferred security model would be to delegate to an external,
third-party OAuth2 Provider, since many exist and are readily
available for federation.  This would limit the scope to
client-only for AAA.  This is preferred since AAA should not
be responsible for generation and revocation of tokens.  The
existing implementation utilized Apache OLTU, which has now
been retired to the Attic.

This patch favors removing unmaintained, possibly vulnerable
security code over maintaining OAuth2 backwards compatibility.
The functionality is not being replaced for two reasons:

1) we strive not to act as and IdP
2) most other OAuth2 provider solutions are spring-security based,
and are fairly difficult to use from non-spring contexts.

JIRA: AAA-173
Change-Id: I090014771b2f345cedc0330738b15b18684e1fcf
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemove javax.annotation-api version overrides 48/80948/1
Robert Varga [Mon, 18 Mar 2019 12:29:13 +0000 (13:29 +0100)]
Remove javax.annotation-api version overrides

odlparent-4.0.9 is integrated, hence the override is not needed
anymore.

Change-Id: I535c5b9e93a0d324729a7c741cab178b6cae01a1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoEliminate powermock from aaa-encrypt-service 27/80727/1
Robert Varga [Thu, 7 Mar 2019 16:11:12 +0000 (17:11 +0100)]
Eliminate powermock from aaa-encrypt-service

The single test here is easily reformulated in terms of mockito,
hence remove static mocking and powermock.

Change-Id: I80b6ac652cd985cdd5e3f12244a503ec86e9560c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMigrate to ArgumentMatchers 20/80720/2
Robert Varga [Thu, 7 Mar 2019 14:15:14 +0000 (15:15 +0100)]
Migrate to ArgumentMatchers

This fixes warnings in aaa-cert around use of deprecated mockito
methods.

Change-Id: Iadb9adbcc409d10dd85b12aa97204178df18faa5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemove powermock from KeyStoresDataUtilsTest 19/80719/2
Robert Varga [Thu, 7 Mar 2019 14:12:58 +0000 (15:12 +0100)]
Remove powermock from KeyStoresDataUtilsTest

This test uses static method mocking, but that can be easily
fixed by injecting proper DataBroker behavior.

Remove static mocking, eliminating the need for powermockito
in aaa-cert.

Change-Id: I507eadf7ac789c0aae3a057dc8440d425b90a90a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemove powermock from AaaCertProviderTest 18/80718/2
Robert Varga [Thu, 7 Mar 2019 13:59:54 +0000 (14:59 +0100)]
Remove powermock from AaaCertProviderTest

This test does not require powermock, use plain mockito instead.

Change-Id: Icbb330547fb1fe771b340e3db00600b5e7363e98
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agomake JettyWebServer accept WebContext path without slash (and test it) 06/80206/1
Michael Vorburger [Thu, 7 Feb 2019 13:23:30 +0000 (14:23 +0100)]
make JettyWebServer accept WebContext path without slash (and test it)

because that is, apparently, what the "real" (Jetty through Pax Web)
implementation in the Karaf run-time does.  This has come up in the
review of change I614a48bcc425db8faa1a79ebd6236236bcd09e73, where I
added a slash to a context to get a test to pass - with this, that is no
longer needed.

Change-Id: I3c632adbb4c4a9d9ac7bed4557bcaaece47dd0cf
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoBump versions by x.y.(z+1) 81/80081/1
jenkins-releng [Fri, 1 Feb 2019 13:06:28 +0000 (13:06 +0000)]
Bump versions by x.y.(z+1)

Change-Id: Ie79426eab5edd155329862d04fe9ce44c7d0c656
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
5 years agoFix idmtool print error in case of using python3 39/79939/1
Yi Yang [Mon, 28 Jan 2019 02:50:35 +0000 (21:50 -0500)]
Fix idmtool print error in case of using python3

In Ubuntu 16.04, python3 is default python version, but idmtool
is still using non-strict print syntax, so it won't work if we
use python3, here is error information.

vagrant@odl:~$ python3 ./idmtool.py.orig
File "./idmtool.py.orig", line 143
print ''
^
SyntaxError: Missing parentheses in call to 'print'

In python3, print must use parentheses to embrace all the arguments.

Change-Id: Icec4c9c0225cae4c62e2189af9702789906d5e4f
JIRA: AAA-183
Signed-off-by: Yi Yang <yangyi01@inspur.com>
5 years agoMove BP xml files to standard OSGI-INF/blueprint 57/79857/1
Tom Pantelis [Wed, 23 Jan 2019 17:02:01 +0000 (12:02 -0500)]
Move BP xml files to standard OSGI-INF/blueprint

Change-Id: I79b9abc3e972fdea31eb5df4e53b05bc3565d35e
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
5 years agoBump powermock to version 2.0.0 29/79829/1
Robert Varga [Tue, 22 Jan 2019 22:52:44 +0000 (23:52 +0100)]
Bump powermock to version 2.0.0

This bumps from RC.4 to proper release.

Change-Id: I9533df7def94c361d3c3f3f3892ba980de744277
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to mdsal 3.0.6 05/79805/1
Stephen Kitt [Tue, 22 Jan 2019 08:49:41 +0000 (09:49 +0100)]
Bump to mdsal 3.0.6

Change-Id: I6432535435acbd096791d324cfa00903c986a469
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoBump mdsal to 3.0.5 45/79745/4
Robert Varga [Sat, 19 Jan 2019 20:37:02 +0000 (21:37 +0100)]
Bump mdsal to 3.0.5

This aligns with odlparent-4.0.9 and yangtools-2.1.8.

Change-Id: If0c311f1c31cf0a99964ec14bde6ccc86527a382
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 2.1.8 44/79744/2
Robert Varga [Sat, 19 Jan 2019 20:37:37 +0000 (21:37 +0100)]
Bump yangtools to 2.1.8

This align with odlparent-4.0.9.

Change-Id: I555b1b04676c3f37ee7c67cb971f91ea4aea4fb5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to odlparent 4.0.9 61/79661/1
Stephen Kitt [Fri, 18 Jan 2019 15:31:56 +0000 (16:31 +0100)]
Bump to odlparent 4.0.9

Change-Id: Ibf8eb27fcf75562498547adcbbc7a15833550c7a
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoMerge "introduce aaa.web.testutils with WebTestModule & TestWebClient"
Tom Pantelis [Wed, 16 Jan 2019 14:25:00 +0000 (14:25 +0000)]
Merge "introduce aaa.web.testutils with WebTestModule & TestWebClient"

5 years agointroduce aaa.web.testutils with WebTestModule & TestWebClient 84/79384/2
Michael Vorburger [Wed, 9 Jan 2019 23:08:42 +0000 (00:08 +0100)]
introduce aaa.web.testutils with WebTestModule & TestWebClient

Change-Id: Ib8570f3998ee99d84d3742529379990a29fbe013
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoBump mdsal to 3.0.4 27/79427/1
Robert Varga [Thu, 10 Jan 2019 15:39:21 +0000 (16:39 +0100)]
Bump mdsal to 3.0.4

This realigns odlparent/yangtools/mdsal and brings in the latest
improvements.

Change-Id: I45bfb98de61cd780d50fa8c6c9d42744815e1a07
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 2.1.7 21/79421/1
Robert Varga [Thu, 10 Jan 2019 15:26:27 +0000 (16:26 +0100)]
Bump yangtools to 2.1.7

This realigns odlparent/yangtools and brings in a few minor
improvements.

Change-Id: Ia158bcda7a39c48505369933f00c5a3be989c22e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to odlparent 4.0.8 56/79356/1
Stephen Kitt [Wed, 9 Jan 2019 14:54:46 +0000 (15:54 +0100)]
Bump to odlparent 4.0.8

Change-Id: Id8eaf6ac9a9b00e57aef34171566dc4c5aee0eba
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoDrop javax.annotation-api scope 12/79212/1
Robert Varga [Thu, 3 Jan 2019 18:28:35 +0000 (19:28 +0100)]
Drop javax.annotation-api scope

scope=provided does not seem to be necessary, remove it.

Change-Id: I185d18287dc02269cd33fa157e288e666cf4dce2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAdd javax.annotation dependencies 97/79197/2
Robert Varga [Thu, 3 Jan 2019 18:28:35 +0000 (19:28 +0100)]
Add javax.annotation dependencies

Java 11 does not ship with javax.annotation package, hence
we need to declare our dependency on them.

Change-Id: Iffec742af6f9375f62cb34b72ee5a0c4505aaadd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix compilation with JDK11 07/79107/7
Robert Varga [Tue, 1 Jan 2019 22:59:08 +0000 (23:59 +0100)]
Fix compilation with JDK11

PowerMock-1.7.4 just does not work with JDK11, update it to version
2.0.0.RC-4, which mostly works, and add javax.xml exclusions to
work around the remaining issue.

Change-Id: I947bd4f721a0cfaad5e0bc02ec5f87665eb0bddd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUse scope=provided for karaf console 96/79196/1
Robert Varga [Thu, 3 Jan 2019 18:08:04 +0000 (19:08 +0100)]
Use scope=provided for karaf console

We expect karaf shell to be provided by the base distribution,
hence we should not use scope=compile here.

Change-Id: I1b71bb68014dfd629d56ab63810a3988a16105c6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump odlparent to 4.0.7 00/79100/5
Robert Varga [Tue, 1 Jan 2019 21:17:56 +0000 (22:17 +0100)]
Bump odlparent to 4.0.7

This fixes SFT compatibility with JDK11.

Change-Id: I17087d0966d3070bc504338767b6e52f61bee457
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoSwitch to using spotbugs 41/79141/2
Robert Varga [Wed, 2 Jan 2019 14:38:31 +0000 (15:38 +0100)]
Switch to using spotbugs

findbugs throws ugly warnings and generally does not work with
JDK9+. Switch to spotbugs, which works fine.

Change-Id: I07809138b06a664cda825612658685e31d348aae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoLower aaa-cli dependency on shell 32/79132/1
Robert Varga [Wed, 2 Jan 2019 12:17:14 +0000 (13:17 +0100)]
Lower aaa-cli dependency on shell

karaf.shell.core is providing all the interfaces required for
this artifact, make sure we depend only on that.

Change-Id: Ia24ca6fb9339d8fc43b2003e498c3df5dc25ab39
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoEliminate unneeded jaxb-api version/exclusion 06/79106/2
Robert Varga [Tue, 1 Jan 2019 22:21:49 +0000 (23:21 +0100)]
Eliminate unneeded jaxb-api version/exclusion

odlparent is declaring the correct dependency, reuse it from there.

Change-Id: I227235ad69c786dacb6bdc83edb0cce21b9eab77
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUse odl-jersey-2 35/79035/2
Robert Varga [Mon, 24 Dec 2018 20:46:09 +0000 (21:46 +0100)]
Use odl-jersey-2

odlparent is packaging a global version of Jersey, make sure we
use that feature instead of rolling our own.

Change-Id: I4e8444669a3ae487b2f9d7b8d11107fa60242921
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoTrim odl-aaa-api bundles 34/79034/2
Robert Varga [Mon, 24 Dec 2018 20:37:50 +0000 (21:37 +0100)]
Trim odl-aaa-api bundles

odlparent bundles servlet and JAX-RS APIs, use those features
instead of packaging artifacts ourselves.

Change-Id: Ic47199e2980bd7f2ebb32894968ff3ecf259a9eb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemove unneeded sshd-core dependency 33/79033/2
Robert Varga [Mon, 24 Dec 2018 20:32:42 +0000 (21:32 +0100)]
Remove unneeded sshd-core dependency

This dependency was missed in
I6d96764f36c8d60944c68361e63d613120098946, remove it now as
it's completely defunct.

Change-Id: I1068d51805a3541d724c0e14aef4bffe98f6c84d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUse odl-apache-commons-codec 32/79032/2
Robert Varga [Mon, 24 Dec 2018 20:22:33 +0000 (21:22 +0100)]
Use odl-apache-commons-codec

odlparent is packaging commons-codec in a feature, use that rather
than packaging it ourselves.

Change-Id: Ic8162e2c9e7bd8767d5e8985b8d6f37fc66dbf01
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemove unneeded commons-codec dependency 31/79031/2
Robert Varga [Mon, 24 Dec 2018 20:10:32 +0000 (21:10 +0100)]
Remove unneeded commons-codec dependency

This dependency is not used in the feature, drop it.

Change-Id: I107a5f141ccc8f7fbce7ba1d7df0500716caa85f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 3.0.3 11/79011/1
Robert Varga [Sun, 23 Dec 2018 10:29:00 +0000 (11:29 +0100)]
Bump mdsal to 3.0.3

This brings in latest fixes and alignes with odlparent-4.0.5.

Change-Id: I63451fb8aba600c7bdb71367478c6ee30576888e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to yangtools-2.1.6 02/79002/1
Robert Varga [Sun, 23 Dec 2018 07:01:12 +0000 (08:01 +0100)]
Bump to yangtools-2.1.6

This brings in latest fixes and odlparent-4.0.5 alignment.

Change-Id: I02eb190591a1e86fdcbd36bb4bdd7f073c7e1d12
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to odlparent 4.0.5 57/78957/1
Stephen Kitt [Fri, 21 Dec 2018 09:09:23 +0000 (10:09 +0100)]
Bump to odlparent 4.0.5

Change-Id: Ib338b90ed38c1359a3327187d8a58e8e51ef7bb6
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoDo not override odlparent versions 10/78410/1
Robert Varga [Tue, 4 Dec 2018 08:51:54 +0000 (09:51 +0100)]
Do not override odlparent versions

odlparent is specifying 2.25.1 in dependencyManagement, there is
no need to override.

Change-Id: I24ad7f0a43eb9898f8b84ebcebfed2ce55ebd862
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRequire jaxb-api 37/78337/1
Robert Varga [Sat, 1 Dec 2018 23:02:40 +0000 (00:02 +0100)]
Require jaxb-api

Java 9+ does not contain jaxb-api classes, hence we need to add
an explicit dependency. Since karaf is providing it in runtime,
we also need corresponding feature exclusions -- which will be
rendered unnecessary with odlparent-4.0.3.

Change-Id: I199a642dba59b94047676384d99a740037731df5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUpdate mockito references 36/78336/1
Robert Varga [Sat, 1 Dec 2018 23:21:03 +0000 (00:21 +0100)]
Update mockito references

This updates use of Mockito method to their non-deprecated
equivalents.

Change-Id: I14fdf09abb675762cdd51f68bc27f475e894b165
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Bump to yangtools-2.1.4 and mdsal-3.0.2"
Anil Belur [Sat, 1 Dec 2018 04:42:57 +0000 (04:42 +0000)]
Merge "Bump to yangtools-2.1.4 and mdsal-3.0.2"

5 years agoSimplify install/deploy skip 36/78236/2
Robert Varga [Tue, 27 Nov 2018 23:31:58 +0000 (00:31 +0100)]
Simplify install/deploy skip

odlparent-lite handles magic properties, without the need for
plugin boiler-plate.

Change-Id: I9af8d638f410ec5f74e3bf8030cd518a6326a21f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAdd aggragate coverage support 35/78235/2
Robert Varga [Tue, 27 Nov 2018 23:31:08 +0000 (00:31 +0100)]
Add aggragate coverage support

This adds the build-system-side of aggragating jacoco reports
for sonar.

Change-Id: Ia81dbc428e62c530de0cc5cc0ffdeb77d6dee1eb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to yangtools-2.1.4 and mdsal-3.0.2 42/78142/2
Robert Varga [Mon, 26 Nov 2018 09:22:08 +0000 (10:22 +0100)]
Bump to yangtools-2.1.4 and mdsal-3.0.2

This bumps the dependencies to 2.1.4 and 3.0.2, respectively.

Change-Id: I1de2b3d9f09d726477605fde0df54d82aea6648f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoadd support for automatically choosing free port to JettyWebServer 03/77903/1
Michael Vorburger [Fri, 16 Nov 2018 17:39:40 +0000 (18:39 +0100)]
add support for automatically choosing free port to JettyWebServer

This is useful for tests.  It could allow parallel running of web tests.

Change-Id: I75de07bf6a6575e840432c9c96e4cde744122455
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoMigrate aaa-cli to JDT annotations 47/77547/4
Robert Varga [Tue, 6 Nov 2018 14:38:16 +0000 (15:38 +0100)]
Migrate aaa-cli to JDT annotations

This eliminates a reference to javax.annotation from aaa-cli,
favoring JDT annotations instead.

Change-Id: I0b61ef01e4514681feba2938b67e319b7d65c1bd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMigrate aaa-filterchain to JDT annotations 46/77546/4
Robert Varga [Tue, 6 Nov 2018 14:35:56 +0000 (15:35 +0100)]
Migrate aaa-filterchain to JDT annotations

Remove more dependencies on javax.annotation, favoring JDT
instead.

Change-Id: I8f5c81d1091b38ca2da0693a2d2b0ad89170c8a3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMigrate aaa-cert to JDT annotations 45/77545/4
Robert Varga [Tue, 6 Nov 2018 14:33:23 +0000 (15:33 +0100)]
Migrate aaa-cert to JDT annotations

Remove use of JSR305 annotations in favor of JDT ones.

Change-Id: I4be5568a792a7b78a4636a28d3c20883f01a1f28
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemove unneeded javax.annotations from aaa-shiro 44/77544/3
Robert Varga [Tue, 6 Nov 2018 14:25:27 +0000 (15:25 +0100)]
Remove unneeded javax.annotations from aaa-shiro

These are used only internally, remove them to lower dependencies
on javax.annotation.

Change-Id: I3e271f5d1b4737f5eca7f45e34bf5168ad5af664
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMigrate aaa-shiro to MD-SAL APIs 43/77543/2
Robert Varga [Tue, 6 Nov 2018 14:15:48 +0000 (15:15 +0100)]
Migrate aaa-shiro to MD-SAL APIs

This patch performs the trivial migration to MD-SAL APIs.

Change-Id: Ie534f36e72a1eaf53b57756294e77459f3b2001d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>