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

Update to 8.5 and 8.1 based shippable #899

Merged
merged 4 commits into from
Apr 27, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM tas-tools-ext-01.ccr.xdmod.org/xdmod-centos7:open8.0.0-v2
FROM tas-tools-ext-01.ccr.xdmod.org/centos7_6-open8.1.0:latest
2 changes: 1 addition & 1 deletion bin/xdmod-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ini_set('memory_limit', -1);
* @var array
*/
$supportedUpgrades = array(
'8.0.0' => '8.1.0',
'8.1.0' => '8.5.0',
);

/**
Expand Down

This file was deleted.

234 changes: 0 additions & 234 deletions classes/OpenXdmod/Migration/Version800To810/DatabasesMigration.php

This file was deleted.

2 changes: 1 addition & 1 deletion configuration/portal_settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contact_page_recipient = ""
tech_support_recipient = ""

; The version number is updated during the upgrade process.
version = "8.1.0"
version = "8.5.0"

debug_mode = "off"
debug_recipient = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ class ReportGenerator {
window: () => `//div[${classContains('x-window')} and .//span[text()="Save Report As"]]`,
fileNameInput: () => this.selectors.saveReportAs.window() + '//input[@name="report_name"]',
saveButton: () => this.selectors.saveReportAs.window() + '//button[text()="Save"]',
closeButton: () => this.selectors.saveReportAs.window() + '//button[text()="Close"]'
closeButton: () => this.selectors.saveReportAs.window() + '//button[text()="Close"]',
fileNameInputInvalid: () => this.selectors.saveReportAs.window() + `//input[@name="report_name" and ${classContains('x-form-invalid')}]`
},
reportBuilt: {
window: () => `//div[${classContains('x-window')} and .//span[text()="Report Built"]]`,
Expand Down Expand Up @@ -1111,7 +1112,13 @@ class ReportGenerator {
browser.click(this.selectors.reportEditor.toolbar.saveAsButton());
this.waitForSaveReportAsWindowVisible();
if (reportName !== undefined) {
/*
* There is a "timing" issue when setting the value of the input box
* and then clicking on save to quickly, this forces it to wait for
* the invalid input to not be present
*/
browser.setValue(this.selectors.saveReportAs.fileNameInput(), reportName);
browser.waitUntilNotExist(this.selectors.saveReportAs.fileNameInputInvalid());
}
}

Expand Down
2 changes: 1 addition & 1 deletion open_xdmod/modules/xdmod/build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xdmod",
"version": "8.1.0",
"version": "8.5.0",
"release": "1.0",
"files": {
"include_paths": [
Expand Down
10 changes: 10 additions & 0 deletions open_xdmod/modules/xdmod/integration_tests/email-subject-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ curl "${host}controllers/mailer.php" --compressed -H 'X-Requested-With: XMLHttpR

sed -i -- 's/subject_prefix = "SEND BEN MONEY"/subject_prefix = ""/' /etc/xdmod/portal_settings.ini

# sometimes it takes a second to send the emails
queueLength=`postqueue -p | tail -n1 | awk '{print $5}'`
count=0
while [[ "$queueLength" != "" && $count < 5 ]]; do
plessbd marked this conversation as resolved.
Show resolved Hide resolved
echo "queue has not been emptied, waiting 1 second."
sleep 1
queueLength=`postqueue -p | tail -n1 | awk '{print $5}'`
((count+=1))
done

emailsubjects=`grep 'SEND BEN MONEY' /var/mail/root -c`

if [ $emailsubjects != 2 ]; then
Expand Down
Loading