I am trying to create a "headless" SQL developer install in order to run tests against an existing repository and hook into my Jenkins instance.
Following the instructions in Creating a connection using CLI fails , I have created two connections.
sdcli migration -actions=mkconn -connDetails=unit_test_repos_JIRA:oracle:unit_test_repos/password:jira:1521:jira sdcli migration -actions=mkconn -connDetails=hr_JIRA:oracle:hr/password:jira:1521:jira
I execute the tests like this:
sdcli unittest -run -test -name V_CREATE_VIEW_FAILURE -repo unit_test_repos_JIRA -db hr_JIRA -log 1
However, I always get prompted for the passwords when I execute the tests:
[oracle@jira bin]$ sdcli unittest -run -test -name V_CREATE_VIEW_FAILURE -repo unit_test_repos_JIRA -db hr_JIRA -log 1 Oracle SQL Developer Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. Password for unit_test_repos_JIRA? Password for hr_JIRA? UT_SUCCESS Command Completed.
How can I save the passwords along with the connection and remove the prompts?
Thanks in advance for any help.
make sure the passwords are saved - launch the GUI, inspect the connection properties. if the pwd isn't there, add it, and toggle 'save password'. close the GUI
run your test - should be fine