aboutsummaryrefslogtreecommitdiffstats
path: root/utils/DmaapPublisher/src/test/java/org/openecomp/sdc/dmaap/DmaapPublisherTest.java
blob: 83d7aa9a1299dfccc8cd1ff9d0d216022398f32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.openecomp.sdc.dmaap;

import org.junit.Test;

import java.io.File;

import static org.junit.Assert.*;

public class DmaapPublisherTest {
    @Test
    public void main() throws Exception {
        File resource = new File("src/test/resources");
        String absPath = resource.getAbsolutePath();

        String msg = "{\"operationalEnvironmentId\":\"12345\",\"operationalEnvironmentName\":\"Op_Env_Name\",\"operationalEnvironmentType\":\"ECOMP\",\"tenantContext\":\"Test\",\"workloadContext\":\"VNF_E2E-IST\",\"action\":\"CREATE\"}";
        String cmd = "-cr 5 "+ "-notification=" + msg+ " -path "+absPath+" -yaml catalogMgmtTest.yaml" ;
        DmaapPublisher.main( cmd.split(" ") );
        Thread.sleep(10000);
    }
}