diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-07-23 10:49:55 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-07-23 10:50:05 -0500 |
commit | 5b37375d4f4e3764e10b813829881ae7217403f0 (patch) | |
tree | 357e2d11a2c62caf200f1519ad87396608459488 /cadi | |
parent | cf52d77279f8d5a70429d45abad0ef3d1135070c (diff) |
Fix Test Hello
Issue-ID: AAF-381
Change-Id: I038559b22af061ffb3bd23048122d7cf87fbed22
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi')
-rw-r--r-- | cadi/aaf/src/main/java/org/onap/aaf/cadi/olur/OLur.java | 6 | ||||
-rw-r--r-- | cadi/oauth-enduser/src/test/java/org/onap/aaf/cadi/enduser/test/SimpleRestClientExample.java | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/olur/OLur.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/olur/OLur.java index 95dd9a39..73c6c113 100644 --- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/olur/OLur.java +++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/olur/OLur.java @@ -73,8 +73,10 @@ public class OLur extends AbsOTafLur implements Lur { scopeSet.add(tc.defaultScope()); AAFPermission ap; for (Permission p : pond) { - ap = (AAFPermission)p; - scopeSet.add(ap.getNS()); + if(p instanceof AAFPermission) { + ap = (AAFPermission)p; + scopeSet.add(ap.getNS()); + } } String[] scopes = new String[scopeSet.size()]; scopeSet.toArray(scopes); diff --git a/cadi/oauth-enduser/src/test/java/org/onap/aaf/cadi/enduser/test/SimpleRestClientExample.java b/cadi/oauth-enduser/src/test/java/org/onap/aaf/cadi/enduser/test/SimpleRestClientExample.java index 6cabc654..308c7c81 100644 --- a/cadi/oauth-enduser/src/test/java/org/onap/aaf/cadi/enduser/test/SimpleRestClientExample.java +++ b/cadi/oauth-enduser/src/test/java/org/onap/aaf/cadi/enduser/test/SimpleRestClientExample.java @@ -49,7 +49,7 @@ public class SimpleRestClientExample { + "where \"aaf hello machine\" is an aaf Installation you know about."); } else { - SimpleRESTClient restClient = cf.simpleRESTClient(urlString,"org.osaaf.aaf"); + SimpleRESTClient restClient = cf.simpleRESTClient(urlString,"org.osaaf.clamp"); ///////////////////////////////////////////////////////////// // |