blob: 01e783fed598ec479a85c0b372d3b38e4f43f3e7 [file] [log] [blame]
# Input file for DIAL client
# List the applications defined.
# Valid applications that should exist on your DIAL server implementation
addApplication=Netflix
addApplication=YouTube
# Error applications that should not exist on your DIAL server implementation
addErrorApplication=netflix
addErrorApplication=Netflix1
# Launch the Netflix application
# HTTP response should be 201
# HTTP response header should contain a Location header
launch=Netflix httpresponse=201 httpresponse=Created httpresponseheader=Location
sleep=6000
# Get the status of the application, it should be running
status=Netflix httpresponse=200 resultbody=state resultbody=running
# Stop the Netflix application, wait for 1 second while it shuts down.
stop=Netflix
sleep=1000
# Call stop again and ensure the implementation returns the proper response
stop=Netflix httpresponse=404
# Get the status of the Netflix application and ensure it returns stopped
status=Netflix httpresponse=200 resultbody=state resultbody=stopped
sleep=2000
# Launch the application with a parameter
# NOTE: This test can not ensure that the parameter was taken properly
launch=Netflix param="NETFLIX&WAS+HERE" httpresponse=201 httpresponse=Created httpresponseheader=Location
sleep=6000
# Ensure the application is running
status=Netflix httpresponse=200 resultbody=state resultbody=running
# This will launch Netflix with the same parameter. *Netflix should not relaunch*
launch=Netflix param="NETFLIX&WAS*HERE" httpresponse=201 httpresponse=Created httpresponseheader=Location
sleep=6000
# Ensure the application is running
status=Netflix httpresponse=200 resultbody=state resultbody=running
# This will launch Netflix with a different parameter. *Netflix should not relaunch*
launch=Netflix param="&&&%%%ThisShouldRelaunch%%%" httpresponse=201 httpresponse=Created httpresponseheader=Location
sleep=6000
# Ensure the application is running
status=Netflix httpresponse=200 resultbody=state resultbody=running
# Stop Netflix
stop=Netflix
sleep=1500
# Make sure netflix is reported as stopped
status=Netflix httpresponse=200 resultbody=state resultbody=stopped
# Test a parameter with over 4096 bytes and ensure 413 is returned.
launch=Netflix param="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" httpresponse=413
# Test for case sensitivity
launch=netflix httpresponse=404
sleep=200
# Ensure the server is checking the full application name
launch=Netflix1 httpresponse=404
sleep=200
# This executes correctly, but fails the XML
status=Netflix1 httpresponse=404
sleep=200
# Currently can't run this test, the code won't execute a stop without a stop URL.
#stop=Netflix1 httpresponse=404
# Test ALL valid applications
status=ALL httpresponse=200 resultbody=state resultbody=stopped