* Openbmc-test-automation checking service root URL "/"
@ 2020-05-14 11:32 David Wang (王振宇)
2020-05-14 15:33 ` Joseph Reynolds
0 siblings, 1 reply; 4+ messages in thread
From: David Wang (王振宇) @ 2020-05-14 11:32 UTC (permalink / raw)
To: gkeishin; +Cc: openbmc
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
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?
Thanks
Best Regards,
David
[-- Attachment #2: Type: text/html, Size: 2912 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Openbmc-test-automation checking service root URL "/"
2020-05-14 11:32 Openbmc-test-automation checking service root URL "/" David Wang (王振宇)
@ 2020-05-14 15:33 ` Joseph Reynolds
2020-05-15 2:28 ` 郁雷
0 siblings, 1 reply; 4+ messages in thread
From: Joseph Reynolds @ 2020-05-14 15:33 UTC (permalink / raw)
To: David Wang (王振宇), gkeishin; +Cc: openbmc
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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Openbmc-test-automation checking service root URL "/"
2020-05-14 15:33 ` Joseph Reynolds
@ 2020-05-15 2:28 ` 郁雷
2020-05-15 6:01 ` David Wang (王振宇)
0 siblings, 1 reply; 4+ messages in thread
From: 郁雷 @ 2020-05-15 2:28 UTC (permalink / raw)
To: Joseph Reynolds; +Cc: David Wang (王振宇), gkeishin, openbmc
On Thu, May 14, 2020 at 11:34 PM Joseph Reynolds <jrey@linux.ibm.com> wrote:
>
> 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
Yup, the URI "/" is supposed to be the webui.
By default, it is phosphor-webui's login page, but be noted that it
could be in a compressed format.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Openbmc-test-automation checking service root URL "/"
2020-05-15 2:28 ` 郁雷
@ 2020-05-15 6:01 ` David Wang (王振宇)
0 siblings, 0 replies; 4+ messages in thread
From: David Wang (王振宇) @ 2020-05-15 6:01 UTC (permalink / raw)
To: 郁雷; +Cc: Joseph Reynolds, gkeishin, openbmc
Yes, it works after I install "phosphor-webui" package in my bmc.
And the BMCWEB_ENABLE_STATIC_HOSTING compile flag is enable in default in bmcweb.
Then I can get some binary response by running
curl -k https://${bmc}/ --output
and encoding by
curl -k -H "Accept-Encoding: gzip" https://${bmc}/ --output - | gunzip | more
then see the readable page info.
Thank you for the information, it's very helpful.
David
-----Original Message-----
From: 郁雷 <yulei.sh@bytedance.com>
Sent: Friday, May 15, 2020 10:29 AM
To: Joseph Reynolds <jrey@linux.ibm.com>
Cc: David Wang (王振宇) <DavidWang@quantatw.com>; gkeishin@in.ibm.com; openbmc@lists.ozlabs.org
Subject: Re: Openbmc-test-automation checking service root URL "/"
On Thu, May 14, 2020 at 11:34 PM Joseph Reynolds <jrey@linux.ibm.com> wrote:
>
> 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
Yup, the URI "/" is supposed to be the webui.
By default, it is phosphor-webui's login page, but be noted that it could be in a compressed format.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-15 6:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 11:32 Openbmc-test-automation checking service root URL "/" David Wang (王振宇)
2020-05-14 15:33 ` Joseph Reynolds
2020-05-15 2:28 ` 郁雷
2020-05-15 6:01 ` David Wang (王振宇)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.