Repository: cyberark/cyberark-conjur-cli (language: python)

Issue:
Flaky appliance deployment in RHEL on password complexity error 
## Summary
The CLI/SDK pipeline is failing on RHEL8  Integration Tests because of a password complexity issue when deploying the appliance. The randomly generated password does not mean the complexity requirement and this should be changed to pull the secret from the ConjurOps server using summon.
<img width="680" alt="Screen Shot 2021-05-24 at 17 26 18" src="https://user-images.githubusercontent.com/19418506/119362229-28877300-bcb5-11eb-8785-28966b5b510a.png">

## Steps to Reproduce
Steps to reproduce the behavior:
1. Go to project's jenkins pipeline
2. Run (re-run) the pipeline
3. You should se the error pictured above. If you don't re-run the pipeline until you do

## Expected Results
A clear and concise description of what you expected to happen.
Pull secret from ConjurOps using summon so we won't see this flakiness

## Actual Results (including error logs, if applicable)
```
error: Admin password The password you have chosen does not meet the complexity requirements. Choose a password that includes: 12-128 characters, 2 uppercase letters, 2 lowercase letters, 1 digit, and 1 special character.
```

## Reproducible
   * [ ] Always 
   * [x] Sometimes
   * [ ] Non-Reproducible
   
## Version/Tag number
-

## Environment setup
RHEL 8

## Additional Information
-


Discussion / hints:

Fix patch:
diff --git a/Jenkinsfile b/Jenkinsfile
index dfc2ed5d..e4a5d235 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -52,7 +52,7 @@ pipeline {
 
     stage('RHEL8 Integration tests') {
       steps {
-        sh './bin/test_integration_rhel8'
+        sh 'summon -e common ./bin/test_integration_rhel8'
       }
 
       post {
diff --git a/secrets.yml b/secrets.yml
index a71d07e9..6b198924 100644
--- a/secrets.yml
+++ b/secrets.yml
@@ -1,3 +1,6 @@
+common:
+  ADMIN_PASSWORD: !var ci/generics/conjur-admin-password
+
 production:
   TWINE_REPOSITORY_URL: !var ecosystems/pypi/users/endpoint
   TWINE_USERNAME: !var ecosystems/pypi/users/conjur/username


Test patch:
diff --git a/bin/test_integration_rhel8 b/bin/test_integration_rhel8
index c291fff0..7f175cb9 100755
--- a/bin/test_integration_rhel8
+++ b/bin/test_integration_rhel8
@@ -25,19 +25,7 @@ docker-compose up openssl
 echo "Starting Conjur..."
 docker-compose up -d conjur-appliance
 
-function _random_password() {
-  { </dev/urandom LC_ALL=C grep -ao '[A-Za-z0-9]' \
-        | head -n$((RANDOM % 12 + 9))
-    echo "@1"   # add a special char and digit.
-  } \
-    | shuf \
-    | tr -d '\n'
-}
-
 echo "Configuring Conjur..."
-set +x
-export ADMIN_PASSWORD=$(_random_password)
-set -x
 export DEBUG=$DEBUG
 export CONJUR_AUTHN_API_KEY=$ADMIN_PASSWORD
 export SERVER_MODE="appliance"