2020-09-17 Fred Gleason <fredg@paravelsystems.com>

* Added an 'RDUser::feedAuthorized()' method.
	* Added a 'SavePodcast' method to the Web API.
	* Added a 'GetPodcast' method to the Web API.
	* Added a 'DeletePodcast' method to the Web API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-09-17 16:19:26 -04:00
parent 288b7a9826
commit 6516c20ff6
13 changed files with 559 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
##
## Automake.am for rivendell/web/tests
##
## (C) Copyright 2010,2013-2015 Fred Gleason <fredg@paravelsystems.com>
## (C) Copyright 2010-2020 Fred Gleason <fredg@paravelsystems.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License version 2 as
@@ -31,13 +31,14 @@ install-exec-am:
cp createticket.html $(DESTDIR)@libexecdir@
cp delete_audio.html $(DESTDIR)@libexecdir@
cp deletelog.html $(DESTDIR)@libexecdir@
cp deletepodcast.html $(DESTDIR)@libexecdir@
cp editcart.html $(DESTDIR)@libexecdir@
cp editcut.js $(DESTDIR)@libexecdir@
cp editcut.html $(DESTDIR)@libexecdir@
cp editcart.js $(DESTDIR)@libexecdir@
cp export.html $(DESTDIR)@libexecdir@
cp exportpeaks.html $(DESTDIR)@libexecdir@
cp import.html $(DESTDIR)@libexecdir@
cp getpodcast.html $(DESTDIR)@libexecdir@
cp import.html $(DESTDIR)@libexecdir@
cp listcart.html $(DESTDIR)@libexecdir@
cp listcarts.html $(DESTDIR)@libexecdir@
@@ -57,6 +58,7 @@ install-exec-am:
cp removecut.html $(DESTDIR)@libexecdir@
cp savefile.html $(DESTDIR)@libexecdir@
cp savelog.html $(DESTDIR)@libexecdir@
cp savepodcast.html $(DESTDIR)@libexecdir@
cp savestring.html $(DESTDIR)@libexecdir@
cp trimaudio.html $(DESTDIR)@libexecdir@
cp unassignschedcode.html $(DESTDIR)@libexecdir@
@@ -73,12 +75,14 @@ uninstall-local:
rm -f $(DESTDIR)@libexecdir@/createticket.html
rm -f $(DESTDIR)@libexecdir@/delete_audio.html
rm -f $(DESTDIR)@libexecdir@/deletelog.html
rm -f $(DESTDIR)@libexecdir@/deletepodcast.html
rm -f $(DESTDIR)@libexecdir@/editcart.html
rm -f $(DESTDIR)@libexecdir@/editcart.js
rm -f $(DESTDIR)@libexecdir@/editcut.html
rm -f $(DESTDIR)@libexecdir@/editcut.js
rm -f $(DESTDIR)@libexecdir@/export.html
rm -f $(DESTDIR)@libexecdir@/exportpeaks.html
rm -f $(DESTDIR)@libexecdir@/getpodcast.html
rm -f $(DESTDIR)@libexecdir@/import.html
rm -f $(DESTDIR)@libexecdir@/listcart.html
rm -f $(DESTDIR)@libexecdir@/listcarts.html
@@ -98,6 +102,7 @@ uninstall-local:
rm -f $(DESTDIR)@libexecdir@/removecut.html
rm -f $(DESTDIR)@libexecdir@/savefile.html
rm -f $(DESTDIR)@libexecdir@/savelog.html
rm -f $(DESTDIR)@libexecdir@/savepodcast.html
rm -f $(DESTDIR)@libexecdir@/savestring.html
rm -f $(DESTDIR)@libexecdir@/trimaudio.html
rm -f $(DESTDIR)@libexecdir@/unassignschedcode.html
@@ -113,12 +118,14 @@ EXTRA_DIST = addcart.html\
createticket.html\
delete_audio.html\
deletelog.html\
deletepodcast.html\
editcart.html\
editcart.js\
editcut.html\
editcut.js\
export.html\
exportpeaks.html\
getpodcast.html\
import.html\
listcart.html\
listcarts.html\
@@ -138,6 +145,7 @@ EXTRA_DIST = addcart.html\
removecut.html\
savefile.html\
savelog.html\
savepodcast.html\
savestring.html\
trimaudio.html\
unassignschedcode.html\

View File

@@ -0,0 +1,33 @@
<html>
<head>
<title>Rivendell DELETEPODCAST Service Test Harness</title>
<body>
<form action="/rd-bin/rdxport.cgi" method="post" enctype="multipart/form-data">
<input type="hidden" name="COMMAND" value="39">
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<td align="right">LOGIN NAME:</td>
<td><input type="text" name="LOGIN_NAME" size="20" maxlength="255"></td>
</tr>
<tr>
<td align="right">PASSWORD:</td>
<td><input type="password" name="PASSWORD" size="20" maxlength="32"></td>
</tr>
<tr>
<td align="right">TICKET:</td>
<td><input type="text" name="TICKET" size="40" maxlength="40"></td>
</tr>
<tr>
<td align="right">ID:</td>
<td><input type="text" name="ID" size="12" maxlength="12"></td>
</tr>
<tr>
<td colspan="2" align="right">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" value="OK"></td>
</tr>
</table>
</form>
</body>
</html>

33
web/tests/getpodcast.html Normal file
View File

@@ -0,0 +1,33 @@
<html>
<head>
<title>Rivendell GETPODCAST Service Test Harness</title>
<body>
<form action="/rd-bin/rdxport.cgi" method="post" enctype="multipart/form-data">
<input type="hidden" name="COMMAND" value="37">
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<td align="right">LOGIN NAME:</td>
<td><input type="text" name="LOGIN_NAME" size="20" maxlength="255"></td>
</tr>
<tr>
<td align="right">PASSWORD:</td>
<td><input type="password" name="PASSWORD" size="20" maxlength="32"></td>
</tr>
<tr>
<td align="right">TICKET:</td>
<td><input type="text" name="TICKET" size="40" maxlength="40"></td>
</tr>
<tr>
<td align="right">ID:</td>
<td><input type="text" name="ID" size="12" maxlength="12"></td>
</tr>
<tr>
<td colspan="2" align="right">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" value="OK"></td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<html>
<head>
<title>Rivendel SAVEPODCAST Service Test Harness</title>
<body>
<form action="/rd-bin/rdxport.cgi" method="post" enctype="multipart/form-data">
<input type="hidden" name="COMMAND" value="38">
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<td align="right">LOGIN NAME:</td>
<td><input type="text" name="LOGIN_NAME" size="20" maxlength="255"></td>
</tr>
<tr>
<td align="right">PASSWORD:</td>
<td><input type="password" name="PASSWORD" size="20" maxlength="32"></td>
</tr>
<tr>
<td align="right">TICKET:</td>
<td><input type="text" name="TICKET" size="40" maxlength="40"></td>
</tr>
<td align="right">ID:</td>
<td><input type="text" name="ID" size="12" maxlength="12"></td>
</tr>
<tr>
<td align="right">FILENAME:</td>
<td><input type="file" name="FILENAME" size="20" maxlength="64"></td>
</tr>
<tr>
<td colspan="2" align="right">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" value="OK"></td>
</tr>
</table>
</form>
</body>
</html>