File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ set -e -x
44source ${TEST_SRCDIR} /_main/cvdr/common_utils.sh
55validate_components
66
7+ SERVICE=$( cvdr get_config user_default_service || cvdr get_config system_default_service)
8+ SERVICE_URL=$( cvdr get_config " services[\" $SERVICE \" ].service_url" )
9+
710HOSTNAME=$( cvdr host create)
811cleanup () {
912 cvdr host delete ${HOSTNAME}
@@ -19,13 +22,13 @@ cvdr create \
1922# TODO(b/448209030): cvdr list should print proper ADB connection status.
2023ACTUAL_OUTPUT=$( cvdr list --host ${HOSTNAME} )
2124EXPECTED_OUTPUT=" Host: ${HOSTNAME}
22- WebUI: http://localhost:8080 /v1/zones/local/hosts/${HOSTNAME} /
25+ WebUI: $SERVICE_URL /v1/zones/local/hosts/${HOSTNAME} /
2326 Group: cvd
2427 Instance: 1
2528 Status: Running
2629 ADB: not connected
2730 Displays: [720 x 1280 ( 320 )]
28- Logs: http://localhost:8080 /v1/zones/local/hosts/${HOSTNAME} /cvds/cvd/1/logs/"
31+ Logs: $SERVICE_URL /v1/zones/local/hosts/${HOSTNAME} /cvds/cvd/1/logs/"
2932diff <( echo ${EXPECTED_OUTPUT} ) <( echo ${ACTUAL_OUTPUT} )
3033
3134# Check ADB connection
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ if [ ! -f "${IMAGE_ZIP}" ]; then
1515 exit 1
1616fi
1717
18+ SERVICE=$( cvdr get_config user_default_service || cvdr get_config system_default_service)
19+ SERVICE_URL=$( cvdr get_config " services[\" $SERVICE \" ].service_url" )
20+
1821HOSTNAME=$( cvdr host create)
1922cleanup () {
2023 cvdr host delete ${HOSTNAME}
@@ -30,13 +33,13 @@ cvdr create \
3033# TODO(b/448209030): cvdr list should print proper ADB connection status.
3134ACTUAL_OUTPUT=$( cvdr list --host ${HOSTNAME} )
3235EXPECTED_OUTPUT=" Host: ${HOSTNAME}
33- WebUI: http://localhost:8080 /v1/zones/local/hosts/${HOSTNAME} /
36+ WebUI: $SERVICE_URL /v1/zones/local/hosts/${HOSTNAME} /
3437 Group: cvd_1
3538 Instance: 1
3639 Status: Running
3740 ADB: not connected
3841 Displays: [720 x 1280 ( 320 )]
39- Logs: http://localhost:8080 /v1/zones/local/hosts/${HOSTNAME} /cvds/cvd_1/1/logs/"
42+ Logs: $SERVICE_URL /v1/zones/local/hosts/${HOSTNAME} /cvds/cvd_1/1/logs/"
4043diff <( echo ${EXPECTED_OUTPUT} ) <( echo ${ACTUAL_OUTPUT} )
4144
4245# Check ADB connection
You can’t perform that action at this time.
0 commit comments