diff --git a/test/populateContent.sh b/test/populateContent.sh index 2b8e4e1ba..5e2c0bc7a 100644 --- a/test/populateContent.sh +++ b/test/populateContent.sh @@ -144,3 +144,38 @@ curl 'http://localhost:8080/api/admin/config/offlinemessage' \ -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36' \ --data-raw '{"value":"Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. I am offline. This is my message."}' \ --compressed + + +# Chat welcome message + +curl 'https://webv2.owncast.tv/api/admin/config/welcomemessage' \ + -H 'authority: webv2.owncast.tv' \ + -H 'accept: */*' \ + -H 'accept-language: en-US,en;q=0.9' \ + -H 'authorization: Basic YWRtaW46aG05dTl4a2c=' \ + -H 'cache-control: no-cache' \ + -H 'content-type: text/plain;charset=UTF-8' \ + -H 'origin: https://webv2.owncast.tv' \ + -H 'pragma: no-cache' \ + -H 'referer: https://webv2.owncast.tv/admin/config-chat/' \ + -H 'sec-fetch-dest: empty' \ + -H 'sec-fetch-mode: cors' \ + -H 'sec-fetch-site: same-origin' \ + -H 'sec-gpc: 1' \ + -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36' \ + --data-raw '{"value":"This is an example chat welcome message."}' \ + --compressed ; +curl 'https://webv2.owncast.tv/api/admin/status' \ + -H 'authority: webv2.owncast.tv' \ + -H 'accept: */*' \ + -H 'accept-language: en-US,en;q=0.9' \ + -H 'authorization: Basic YWRtaW46aG05dTl4a2c=' \ + -H 'cache-control: no-cache' \ + -H 'pragma: no-cache' \ + -H 'referer: https://webv2.owncast.tv/admin/config-chat/' \ + -H 'sec-fetch-dest: empty' \ + -H 'sec-fetch-mode: cors' \ + -H 'sec-fetch-site: same-origin' \ + -H 'sec-gpc: 1' \ + -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36' \ + --compressed \ No newline at end of file