AMBARI-3180. Helper script for HDP upgrade (update to script and unit test).