Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin password update attempt #4 #15

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ env:
global:
- OPENLDAP_URL=
- OPENLDAP_BRANCH=
- REDMINE_URL=
- REDMINE_BRANCH=
- REDMINE_URL=https://github.com/steve-dev/redmine-docker.git
- REDMINE_BRANCH=develop
- JENKINS_URL=
- JENKINS_BRANCH=
- JENKINS_SLAVE_URL=
Expand All @@ -29,6 +29,7 @@ before_script:
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- "./travis-submodules.sh"
- sudo docker build -t ci/redmine ./img-scripts/redmine-docker
- sudo docker build -t ci/dokuwiki ./img-scripts/dokuwiki-docker
- sudo docker build -t ci/nexus ./img-scripts/nexus-docker
- sudo docker build -t ci/nginx ./img-scripts/nginx-docker
Expand Down
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ LDAP_ACCOUNTBASE=ou=accounts,dc=demo,dc=com

## Gerrit administrator's uid in LDAP
GERRIT_ADMIN_UID=admin
GERRIT_ADMIN_PWD=passwd
GERRIT_ADMIN_PWD=password
GERRIT_ADMIN_EMAIL=admin@demo.com

REDMINE_ADMIN_USER=$GERRIT_ADMIN_UID
Expand Down
2 changes: 1 addition & 1 deletion config.default
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ REDMINE_VOLUME=redmine-volume${SUFFIX}
PG_REDMINE_NAME=pg-redmine${SUFFIX}

## Redmine docker image's name
REDMINE_IMAGE_NAME=${REDMINE_IMAGE_NAME:-sameersbn/redmine}
REDMINE_IMAGE_NAME=${REDMINE_IMAGE_NAME:-ci/redmine}

#PhpLDAP Admin container's name
PHPLDAPADMIN_NAME=phpldapadmin${SUFFIX}
Expand Down
3 changes: 2 additions & 1 deletion createContainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ ${SCRIPT_DIR}/gerrit-docker/createGerrit.sh ${GERRIT_WEBURL} ${LDAP_NAME} ${LDAP
${SCRIPT_DIR}/jenkins-docker/createJenkins.sh ${JENKINS_NAME} ${JENKINS_VOLUME} ${LDAP_NAME} ${GERRIT_NAME} ${JENKINS_IMAGE_NAME} ${JENKINS_OPTS} ${TIMEZONE}

# Create Redmine server container.
${SCRIPT_DIR}/redmine-docker/createRedmine.sh ${PG_REDMINE_NAME} ${POSTGRES_IMAGE_NAME} ${REDMINE_NAME} ${REDMINE_IMAGE_NAME} ${REDMINE_VOLUME} ${GERRIT_VOLUME} ${LDAP_NAME} ${LDAP_ACCOUNTBASE}
${SCRIPT_DIR}/redmine-docker/createRedmine.sh ${PG_REDMINE_NAME} ${POSTGRES_IMAGE_NAME} ${REDMINE_NAME} ${REDMINE_IMAGE_NAME} ${REDMINE_VOLUME} ${GERRIT_VOLUME} ${LDAP_NAME} ${LDAP_ACCOUNTBASE} ${GERRIT_ADMIN_PWD}


# Create DokuWiki server container.
${SCRIPT_DIR}/dokuwiki-docker/createDokuWiki.sh ${DOKUWIKI_NAME} ${DOKUWIKI_VOLUME} ${DOKUWIKI_IMAGE_NAME} ${LDAP_NAME}
Expand Down
2 changes: 1 addition & 1 deletion img-scripts/openldap-docker
2 changes: 1 addition & 1 deletion img-scripts/redmine-docker
4 changes: 2 additions & 2 deletions setupContainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ echo ">>>> Setup Jenkins."
${SCRIPT_DIR}/jenkins-docker/setupJenkins.sh ${GERRIT_ADMIN_UID} ${GERRIT_ADMIN_EMAIL} ${SSH_KEY_PATH} ${LDAP_ACCOUNTBASE} ${JENKINS_NAME} ${GERRIT_NAME} ${GERRIT_SSH_HOST} ${GERRIT_WEBURL} ${JENKINS_WEBURL} ${LDAP_NAME} ${LDAP_VOLUME} ${SLAPD_DOMAIN} ${NEXUS_REPO}

#Integrate Redmine with Openldap and import init data.
echo ">>>> Setup Redmine."
${SCRIPT_DIR}/redmine-docker/setupRedmine.sh
#echo ">>>> Setup Redmine."
#${SCRIPT_DIR}/redmine-docker/setupRedmine.sh

# Add Nexus configuration files and do general Nexus setup
echo ">>>> Setup Nexus."
Expand Down
18 changes: 9 additions & 9 deletions test/integration/test_redmine_backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ def configure_headless_browser():
DRIVER = webdriver.Firefox() # initilize selenium

def log_into_ci():
DRIVER.get("http://admin:passwd@localhost/redmine")
DRIVER.get("http://admin:password@localhost/redmine")

def log_into_redmine():
DRIVER.get("http://localhost/redmine/login")
element = DRIVER.find_element_by_id("username")
element.send_keys("admin")
element = DRIVER.find_element_by_id("password")
element.send_keys("admin")
DRIVER.find_element_by_name("login").click()
#def log_into_redmine():
# DRIVER.get("http://localhost/redmine/login")
# element = DRIVER.find_element_by_id("username")
# element.send_keys("admin")
# element = DRIVER.find_element_by_id("password")
# element.send_keys("admin")
# DRIVER.find_element_by_name("login").click()

def create_redmine_project():
DRIVER.get("http://localhost/redmine/projects")
Expand All @@ -51,7 +51,7 @@ def setup_function(function):

configure_headless_browser()
log_into_ci()
log_into_redmine()
# log_into_redmine()
create_redmine_project()
create_redmine_issue()

Expand Down