aboutsummaryrefslogtreecommitdiffstats
path: root/plans/policy/api/setup.sh
AgeCommit message (Collapse)AuthorFilesLines
2021-03-15policy csit moved to policy repoTaka Cho1-64/+0
removed all files related to policy csit. already moved csit to policy project level Issue-ID: POLICY-2895 Change-Id: I00312533e395a80972cf62da01a2a3723d5c9b8c Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-07Make stand-alone Policy environmentJim Hahn1-18/+6
This is a first cut at making it possible to easily run Policy components within a stand-alone environment. Made the following changes: - enhanced wait_for_port.sh to accept a list of hosts/ports - enhanced wait_for_port.sh to accept an optional command to execute when the wait completes - consolidated all of the yml files into a single file - removed "extra" services from the yml so that a component and its dependents can be brought up in a single invocation - modified the component setup.sh With these changes, a developer can clone the csit repo, run detmVers.sh to set the docker image version env variables, and then bring up a component (and its dependents) using: docker-compose -f scripts/policy/docker-compose-all.yml up --detach <component> Note: this does not preload or deploy any policies; that must be done manually via curl. Modified to use new simulator docker image. Also fixed drools-apps CSIT broken due to disabling frankfurt controller. Also removed operational.Apex policy. The csar file used in policy-distribution test is also updated to reflect this change. Issue-ID: POLICY-2742 Change-Id: I412dbd5db9219ad2cdece9693f0b4b9fe7b2eb69 Signed-off-by: Jim Hahn <jrh3@att.com> Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-09-02Use models-examples in CSITsJim Hahn1-2/+23
Replaced tosca policies found in the test "data" directory with policies from models-examples. Also added the dmaap simulator to the pap CSIT to prevent the error log from filling with dmaap errors while trying to debug the CSIT. Issue-ID: POLICY-2813 Change-Id: I6bccffa41acd0fda0b945fe8e3cd6badde1ac4c1 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-05-05change to tty for docker execTaka Cho1-2/+2
there is no TTY device for Jenkins Job change to tty option for docker exec instead Issue-ID: POLICY-2541 Change-Id: I4b33332e53ff2119e3e2846d96c8b3309a0420d4 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-12-17Updating CSITs to pull required imagesBilal A1-1/+3
LF scripts delete the images that don't have "-latest" at the end. These changes instead of pulling images based on exact pom.xml file version, now pull images with tags: major.minor-SNAPSHOT-latest Issue-ID: POLICY-2286 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: Ieebf0f2587e4b4f26152a1199a29ba4c6e93a298
2019-07-03Pull correct docker images for master branchBilal A1-0/+10
Enables Policy CSITs for API, PAP, Distribution, Drools-applications, Apex-PDP and XACML-PDP to pull correct docker images based on the code branch. -------------- Updating the policy model json in apex-pdp csit Changes were made to read the policy model as proper json instead of json formatted string in APEX-PDP. With this fix in place, the policy tosca json file need to be updated with the proper json. Issue-ID: POLICY-1836 Issue-ID: POLICY-1796 Change-Id: I6b99c8ae9cb78dd8ebddc522bc2a7080ec6e5735 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech> Signed-off-by: Bilal A <bilal@research.att.com>
2019-06-05Run DB script before starting other containersJim Hahn1-18/+9
The other containers were starting before their user names had been added to the DB. Consequently, they were aborting at start-up. Modified the various setup.sh scripts to run the DB-init script before starting the remaing containers. Also add start_all to start the containers and wait for the ports to start listening, eliminating the need for the "curl" tests in the setup.sh scripts. Also removed version numbers from some yml files. Change-Id: Idd9ff81b3ab4a78926b644f22360c9222afe82d5 Issue-ID: POLICY-1829 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-04-15DB Connection Setup for API and PAP for CSITBilal A1-1/+22
1) Adds CSIT Test for API 2) Adds a mariadb container setup and configuration for API. 3) Adds a mariadb container setup and configuration for PAP. Change-Id: I9beea4f2445215bc95962ebceb4ec626dd0d5521 Issue-ID: POLICY-1270 Signed-off-by: Bilal A <bilal@research.att.com>
2019-03-16Fixing typo to comment a lineBilal A1-1/+1
Change-Id: I2453e72995c38476b43749dc800324d1720a2a3b Issue-ID: POLICY-1270 Signed-off-by: Bilal A <bilal@research.att.com>
2019-02-12Change http to https in robot testChenfei Gao1-1/+1
Changed http to https in robot test since https is enabled for policy-api rest service by default. Issue-ID: POLICY-1270 Change-Id: Id108c956f2265db0e90b97b7e08371ee0df483c4 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-02-06Add csit test plans for policy-apiChenfei Gao1-0/+31
Includes: 1) Added setup, teardown scripts and test plan 2) Added test robot including test cases Issue-ID: POLICY-1270 Change-Id: Id4fe5527609d9e13906d02bccc4ae8bc7c364bd9 Signed-off-by: Chenfei Gao <cgao@research.att.com>