Add PNF support to new CDS actor
[policy/models.git] / models-interactions / model-actors / actor.aai / src / test / java / org / onap / policy / controlloop / actor / aai / AaiActorServiceProviderTest.java
index 513f339..97a8491 100644 (file)
@@ -27,8 +27,9 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.stream.Collectors;
 import org.junit.Test;
+import org.onap.policy.controlloop.actor.test.BasicActor;
 
-public class AaiActorServiceProviderTest {
+public class AaiActorServiceProviderTest extends BasicActor {
 
     @Test
     public void testAaiActorServiceProvider() {
@@ -37,12 +38,16 @@ public class AaiActorServiceProviderTest {
         // verify that it has the operators we expect
         List<String> expected = new LinkedList<>();
         expected.add(AaiCustomQueryOperation.NAME);
-        expected.addAll(AaiGetOperation.OPERATIONS);
+        expected.add(AaiGetTenantOperation.NAME);
+        expected.add(AaiGetPnfOperation.NAME);
 
         Collections.sort(expected);
 
         var actual = prov.getOperationNames().stream().sorted().collect(Collectors.toList());
 
         assertEquals(expected.toString(), actual.toString());
+
+        // verify that it all plugs into the ActorService
+        verifyActorService(AaiActorServiceProvider.NAME, "service.yaml");
     }
 }