The media_type function is designed to test the following RPC interfaces with the master server: RPC LIST show_media_type add_media_type delete_media_type ASSUMPTIONS The database table is clean or can be cleaned. STRUCTURE LIST struct media_tagtype { struct media_tagtype *next; char *tag; char *description; long eof_marker; longlong_t capacity; }; STEPS 1) ensure that the database table is empty 2) an empty show_media_type 3) add a tag with out a description 4) add a tag 5) add a tag len 1 description len 1 6) add a tag TAG_MAX -1 STRING_MAX -1 7) add a tag TAG_MAX STRING_MAX 8) add a tag TAG_MAX +1 STRING_MAX +1 9) add a tag len 1 string MAX+1 10 add a null tag 11) delete a null tag 12) delete a tag of len 1 13) delete a nonexistant tag 14) delete a tag of len TAG_MAX-1 15) delete a tag of len TAG_MAX 16) delete a tag of len TAG_MAX+1 17) eof 0 18) eof MAXINT-1 19) eof MAXINT 20) eof MAXINT+1 21) eof -20 22) capacity -20 23) capacity LONGLONG-1 24) capacity LONGLONG 25) capacity LONGLONG+1 26) capacity 0 26) pad out the rest of the table 18) valid show_media_type Function/return matrix RETURNS function show_media_type ABS_NO_MATCH(2) add_media_type INVALID(3,10)/SUCCESS(4,5,6,7)/RPC ERROR(8,9) delete_media_type INVALID(11)/SUCCESS(12,14,15)/NO_MATCH(13)/RPC ERROR(16)