CPS_CORE_HOST=$LOCAL_IP
CPS_CORE_PORT=8883
CPS_CORE_MANAGEMENT_PORT=8887
-CPS_CORE_USERNAME=cpsuser
-CPS_CORE_PASSWORD=cpsr0cks!
DMI_HOST=$LOCAL_IP
DMI_PORT=8783
private String dmiRegistrationUrl;
@Value("${cps-core.dataSyncEnabledUrl}")
private String dataSyncEnabledUrl;
- @Value("${cps-core.auth.username}")
- private String authUsername;
- @Value("${cps-core.auth.password}")
- private String authPassword;
}
@Getter
baseUrl: http://${CPS_CORE_HOST}:${CPS_CORE_PORT}
dmiRegistrationUrl : /ncmpInventory/v1/ch
dataSyncEnabledUrl: /ncmp/v1/ch/{cmHandleId}/data-sync?dataSyncEnabled=true
- auth:
- username: ${CPS_CORE_USERNAME}
- password: ${CPS_CORE_PASSWORD}
sdnc:
baseUrl: http://${SDNC_HOST}:${SDNC_PORT}
expect: 'CPS properties are set to values in test configuration yaml file'
cpsProperties.baseUrl == 'some url for cps'
cpsProperties.dmiRegistrationUrl == 'some registration url'
- cpsProperties.authUsername == 'some cps core user'
- cpsProperties.authPassword == 'some cps core password'
cpsProperties.dataSyncEnabledUrl == 'some data sync url/{some-cm-handle}?dataSyncFlag=true'
}
baseUrl: some url for cps
dmiRegistrationUrl: some registration url
dataSyncEnabledUrl: some data sync url/{some-cm-handle}?dataSyncFlag=true
- auth:
- username: some cps core user
- password: some cps core password
dmi:
service:
<!--
============LICENSE_START=======================================================
- Copyright (c) 2021 Nordix Foundation.
+ Copyright (c) 2021-2025 OpenInfra Foundation Europe. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Following command starts the application using JAR file:
```bash
-CPS_USERNAME=cpsuser CPS_PASSWORD=cpsr0cks! \
java -jar ncmp-dmi-plugin/target/ncmp-dmi-plugin-x.y.z-SNAPSHOT.jar
```
Here are the steps to run or debug the application from Intellij:
1. Enable the desired maven profile from Maven Tool Window
-2. Run a configuration from `Run -> Edit configurations` with following settings:
- * `Environment variables`: `CPS_USERNAME=cpsuser CPS_PASSWORD=cpsr0cks!`
+2. Run a configuration from `Run -> Edit configurations`
## Accessing services
# ============LICENSE_START=======================================================
-# Copyright (C) 2021-2022 Nordix Foundation
+# Copyright (C) 2021-2025 OpenInfra Foundation Europe. All rights reserved.
# Modifications Copyright (C) 2021 Bell Canada.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
services:
ncmp-dmi-plugin:
container_name: ncmp-dmi-plugin
- image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/ncmp-dmi-plugin:${DMI_VERSION:-latest}
+ image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/ncmp-dmi-plugin:${DMI_VERSION:-1.8.0-SNAPSHOT-latest}
ports:
- ${DMI_PORT:-8783}:8080
environment:
- CPS_USERNAME: ${CPS_CORE_USERNAME:-cpsuser}
- CPS_PASSWORD: ${CPS_CORE_PASSWORD:-cpsr0cks!}
CPS_CORE_HOST: ${CPS_CORE_HOST:-cps}
CPS_CORE_PORT: ${CPS_CORE_PORT:-8080}
- CPS_CORE_USERNAME: ${CPS_CORE_USERNAME:-cpsuser}
- CPS_CORE_PASSWORD: ${CPS_CORE_PASSWORD:-cpsr0cks!}
SDNC_HOST: ${SDNC_HOST:-sdnc}
SDNC_PORT: ${SDNC_PORT:-8181}
SDNC_USERNAME: ${SDNC_USERNAME:-admin}