[jbosstools-issues] [JBoss JIRA] (JBIDE-22173) write validation tests to ensure published content has been correctly published
Nick Boldt (JIRA)
issues at jboss.org
Wed Apr 13 12:28:00 EDT 2016
Nick Boldt created JBIDE-22173:
----------------------------------
Summary: write validation tests to ensure published content has been correctly published
Key: JBIDE-22173
URL: https://issues.jboss.org/browse/JBIDE-22173
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: build, install-tests
Affects Versions: 4.3.1.CR1
Reporter: Nick Boldt
Once we're done running stage.sh, we need a way to automatically review the content has been correctly published.
Today, we do this:
{code}
versionWithRespin=4.3.1.CR1b # a, b, c...
tmpfile=/tmp/jbosstools-staging__verify.txt
for site in site coretests-site central-site earlyaccess-site discovery.central discovery.earlyaccess; do
if [[ ${site} == "site" ]]; then sitename="core"; else sitename=${site/-site/}; fi
echo "http://download.jboss.org/jbosstools/mars/staging/builds/jbosstools-${versionWithRespin}-build-${sitename}/ " >> $tmpfile
echo "http://download.jboss.org/jbosstools/mars/staging/updates/${sitename}/${versionWithRespin}/ " >> $tmpfile
done
for site in browsersim-standalone; do
if [[ ${site} == "site" ]]; then sitename="core"; else sitename=${site/-site/}; fi
echo "http://download.jboss.org/jbosstools/mars/staging/builds/jbosstools-${versionWithRespin}-build-${sitename}/ " >> $tmpfile
done
echo "" >> $tmpfile
cat $tmpfile
firefox `cat $tmpfile`
rm -fr $tmpfile
# verify changes
echo "Check 6 URLs:"
firefox \
http://download.jboss.org/jbosstools/mars/staging/updates/discovery.central/${versionWithRespin}/compositeContent.xml \
http://download.jboss.org/jbosstools/mars/staging/updates/discovery.earlyaccess/${versionWithRespin}/compositeContent.xml \
http://download.jboss.org/jbosstools/mars/staging/updates/compositeContent.xml \
http://download.jboss.org/jbosstools/mars/staging/updates/core/compositeContent.xml \
http://download.jboss.org/jbosstools/mars/staging/updates/core/ \
http://download.jboss.org/jbosstools/mars/staging/updates/
{code}
or
{code}
versionWithRespin=9.1.0.CR1b # a, b, c...
tmpfile=/tmp/jbosstools-staging__verify.txt
for site in central earlyaccess discovery.central discovery.earlyaccess; do
if [[ ${site} == "site" ]]; then sitename="core"; else sitename=${site/-site/}; fi
echo "https://devstudio.redhat.com/9.0/staging/builds/devstudio-${versionWithRespin}-build-${sitename}/ " >> $tmpfile
echo "https://devstudio.redhat.com/9.0/staging/updates/${sitename}/${versionWithRespin}/ " >> $tmpfile
done
echo "https://devstudio.redhat.com/9.0/staging/builds/devstudio-${versionWithRespin}-build-product/ " >> $tmpfile
echo "http://www.qa.jboss.com/binaries/RHDS/9.0/staging/builds/devstudio-${versionWithRespin}-build-product/ " >> $tmpfile
echo "https://devstudio.redhat.com/9.0/staging/builds/#_____(5_folders_w/_${versionWithRespin}) " >> $tmpfile
echo "https://devstudio.redhat.com/9.0/staging/updates/core/#_____(6_zips,_6_sums,_1_folder_w/_${versionWithRespin}) " >> $tmpfile
echo "" >> $tmpfile
cat $tmpfile
firefox `cat $tmpfile`
popd >/dev/null
rm -fr $tmpfile
# verify changes
echo "Check 4 URLs:"
firefox \
https://devstudio.redhat.com/9.0/staging/updates/discovery.central/${versionWithRespin}/compositeContent.xml \
https://devstudio.redhat.com/9.0/staging/updates/discovery.earlyaccess/${versionWithRespin}/compositeContent.xml \
https://devstudio.redhat.com/9.0/staging/updates/compositeContent.xml \
https://devstudio.redhat.com/9.0/staging/updates/
{code}
But ideally we could fetch those pages via curl and sed to check if the content we expect has been correctly published.
Need to pseudocode the rules to verify, then figure out how to sed/grep the html to ensure what we need is present.
May also need to forgive gently -- try again 3 times at 2 min intervals before raising an alarm.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list