Fix up e2e test for update demo.
Use the scripts that are in the example directory. Also actually run the update as part of the test.
This commit is contained in:
		
							parent
							
								
									72d646a8a1
								
							
						
					
					
						commit
						354ee3666c
					
				|  | @ -19,6 +19,9 @@ if [ -z "$DOCKER_HUB_USER" ] ; then | ||||||
|   exit 1 |   exit 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | export KUBE_REPO_ROOT=${KUBE_REPO_ROOT-$(dirname $0)/../..} | ||||||
|  | export KUBECFG=${KUBECFG-$KUBE_REPO_ROOT/cluster/kubecfg.sh} | ||||||
|  | 
 | ||||||
| set -x | set -x | ||||||
| 
 | 
 | ||||||
| ../../cluster/kubecfg.sh -p 8080:80 run $DOCKER_HUB_USER/update-demo:nautilus 2 update-demo | $KUBECFG -p 8080:80 run $DOCKER_HUB_USER/update-demo:nautilus 2 update-demo | ||||||
|  |  | ||||||
|  | @ -16,6 +16,9 @@ | ||||||
| 
 | 
 | ||||||
| NEW_SIZE=${1:-4} | NEW_SIZE=${1:-4} | ||||||
| 
 | 
 | ||||||
|  | export KUBE_REPO_ROOT=${KUBE_REPO_ROOT-$(dirname $0)/../..} | ||||||
|  | export KUBECFG=${KUBECFG-$KUBE_REPO_ROOT/cluster/kubecfg.sh} | ||||||
|  | 
 | ||||||
| set -x | set -x | ||||||
| 
 | 
 | ||||||
| ../../cluster/kubecfg.sh resize update-demo $NEW_SIZE | $KUBECFG resize update-demo $NEW_SIZE | ||||||
|  |  | ||||||
|  | @ -20,7 +20,10 @@ if [ -z "$DOCKER_HUB_USER" ] ; then | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| NEW_IMAGE=${1:-kitten} | NEW_IMAGE=${1:-kitten} | ||||||
|  | TIMING=${2:-10s} | ||||||
|  | export KUBE_REPO_ROOT=${KUBE_REPO_ROOT-$(dirname $0)/../..} | ||||||
|  | export KUBECFG=${KUBECFG-$KUBE_REPO_ROOT/cluster/kubecfg.sh} | ||||||
| 
 | 
 | ||||||
| set -x | set -x | ||||||
| 
 | 
 | ||||||
| ../../cluster/kubecfg.sh -image $DOCKER_HUB_USER/update-demo:$NEW_IMAGE -u 10s rollingupdate update-demo | $KUBECFG -image $DOCKER_HUB_USER/update-demo:$NEW_IMAGE -u $TIMING rollingupdate update-demo | ||||||
|  |  | ||||||
|  | @ -14,7 +14,10 @@ | ||||||
| # See the License for the specific language governing permissions and | # See the License for the specific language governing permissions and | ||||||
| # limitations under the License. | # limitations under the License. | ||||||
| 
 | 
 | ||||||
|  | export KUBE_REPO_ROOT=${KUBE_REPO_ROOT-$(dirname $0)/../..} | ||||||
|  | export KUBECFG=${KUBECFG-$KUBE_REPO_ROOT/cluster/kubecfg.sh} | ||||||
|  | 
 | ||||||
| set -x | set -x | ||||||
| 
 | 
 | ||||||
| ../../cluster/kubecfg.sh stop update-demo | $KUBECFG stop update-demo | ||||||
| ../../cluster/kubecfg.sh rm update-demo | $KUBECFG rm update-demo | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue