1Test::Smoke::Poster::BaUssee(r3)Contributed Perl DocumenTteastti:o:nSmoke::Poster::Base(3)
2
3
4

NAME

6       Test::Smoke::Poster::Base - Base class for the posters to CoreSmokeDB.
7

DESCRIPTION

9       Provide general methods for the poster subclasses.
10
11   Test::Smoke::Poster::Base->new(%arguments);
12       Arguments
13
14       Named.
15
16       smokedb_url => $some_url
17       ddir => $smoke_directory
18       jsnfile => $json_file (mktest.jsn)
19       v => $verbosity
20
21       Returns
22
23       An instance of the class.
24
25       Exceptions
26
27       None.
28
29   $poster->agent_string()
30       Class and intstance method.
31
32       Arguments
33
34       None.
35
36       Returns
37
38           sprintf "Test::Smoke/%s (%s)", $Test::Smoke::VERSION, $class;
39
40       Exceptions
41
42       None.
43
44   $poster->get_json()
45       Arguments
46
47       None.
48
49       Returns
50
51       The json string that was stored in "$ddir/$jsnfile".
52
53       Exceptions
54
55       File I/O.
56
57   $poster->json_filename()
58       Returns the the fully qualified file name of the jsonfile.
59
60   $poster->post()
61       Post the JSON report to CoreSmokeDB.
62
63       Arguments
64
65       None.
66
67       Returns
68
69       The id of the CoreSmokeDB report on success.
70
71       Exceptions
72
73       HTTP or Test::Smoke::Gateway-application errors.
74
75   $poster->_post_data()
76       Abstract method that should be implemented by the subclass.
77
78       Arguments
79
80       None.
81
82       Returns
83
84       The body of the response.
85
86   $poster->_process_post_result($response_body)
87       Process the result of the POST action to CoreSmokeDB.
88
89       Arguments
90
91       Positional.
92
93       $response_body (the raw JSON string send by CoreSmokeDB)
94
95       Returns
96
97       The id of the report on success, undef on failure.
98
100       (c) 2002-2013, Abe Timmerman <abeltje@cpan.org> All rights reserved.
101
102       With contributions from Jarkko Hietaniemi, Merijn Brand, Campo
103       Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop,
104       Rich Rauenzahn, David Cantrell.
105
106       This library is free software; you can redistribute it and/or modify it
107       under the same terms as Perl itself.
108
109       See:
110
111       ·   <http://www.perl.com/perl/misc/Artistic.html>
112
113       ·   <http://www.gnu.org/copyleft/gpl.html>
114
115       This program is distributed in the hope that it will be useful, but
116       WITHOUT ANY WARRANTY; without even the implied warranty of
117       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
118
119
120
121perl v5.30.0                      2019-08-19      Test::Smoke::Poster::Base(3)
Impressum