Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=jrey@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49NFtt1K5dzDqkS for ; Fri, 15 May 2020 01:33:41 +1000 (AEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04EFWce0134237; Thu, 14 May 2020 11:33:39 -0400 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 310v92yubk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 May 2020 11:33:39 -0400 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 04EFUx56007333; Thu, 14 May 2020 15:33:39 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma02dal.us.ibm.com with ESMTP id 3100ucbma3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 May 2020 15:33:38 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04EFXbOB40501690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 May 2020 15:33:37 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 11BB0AE060; Thu, 14 May 2020 15:33:37 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BC2AAAE05F; Thu, 14 May 2020 15:33:36 +0000 (GMT) Received: from demeter.roc.mn.charter.com (unknown [9.85.153.254]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 14 May 2020 15:33:36 +0000 (GMT) Subject: Re: Openbmc-test-automation checking service root URL "/" To: =?UTF-8?B?RGF2aWQgV2FuZyAo546L5oyv5a6HKQ==?= , "gkeishin@in.ibm.com" Cc: "openbmc@lists.ozlabs.org" References: From: Joseph Reynolds Message-ID: <9390dab8-9e8a-64e7-572a-52fcbca4b215@linux.ibm.com> Date: Thu, 14 May 2020 10:33:35 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-14_05:2020-05-14, 2020-05-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 cotscore=-2147483648 impostorscore=0 suspectscore=0 phishscore=0 adultscore=0 mlxscore=0 mlxlogscore=916 spamscore=0 clxscore=1011 bulkscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005140133 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2020 15:33:43 -0000 On 5/14/20 6:32 AM, David Wang (王振宇) wrote: > > Hello George: > > I’m trying to test BMC with test_service_root.robot in > openbmc-test-automation. > > However there’s a problem that robot tried to check  “/”,  “/redfish”, >  “/redfish/v1”  URL in redfish, > > but it seems there’s no “/” as a service root node in bmcweb. > > Should it exist? Do you have any suggestion about this? > The Redfish spec (DSP0266, section "Service Root Request") specifies the service root as /redfish/v1. It also specifies the (in the "Protocol version" section) what GET /redfish should return. It does not specify what "/" should return. To see supported URIs, see https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt I understand GET requests for URI "/" to return the web app, if BMCWEB_ENABLE_STATIC_HOSTING is enabled and the web app is present. See https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L49 and https://github.com/openbmc/phosphor-webui - Joseph > Thanks > > Best Regards, > > David >