1 /*
2 
3                           Firewall Builder
4 
5                  Copyright (C) 2010 NetCitadel, LLC
6 
7   Author:  Roman Bovsunivskiy     a2k0001@gmail.com
8 
9   $Id: instDialogClusterTest.h 2786 2010-04-01 14:05:36Z a2k $
10 
11   This program is free software which we release under the GNU General Public
12   License. You may redistribute and/or modify this program under the terms
13   of that license as published by the Free Software Foundation; either
14   version 2 of the License, or (at your option) any later version.
15 
16   This program is distributed in the hope that it will be useful,
17   but WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   GNU General Public License for more details.
20 
21   To get a copy of the GNU General Public License, write to the Free Software
22   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 
24 */
25 
26 #ifndef INSTDIALOGTEST_H
27 #define INSTDIALOGTEST_H
28 
29 #include <QTest>
30 #include "newClusterDialog.h"
31 #include "upgradePredicate.h"
32 #include "FWBTree.h"
33 #include "fwbuilder/Library.h"
34 #include "instDialog.h"
35 #include "FWWindow.h"
36 #include "ObjectTreeView.h"
37 #include "ObjectTreeViewItem.h"
38 #include "events.h"
39 #include "fwbuilder/Firewall.h"
40 #include "fwbuilder/Policy.h"
41 
42 class instDialogClusterTest : public QObject
43 {
44     Q_OBJECT
45     const char *ssh_auth_sock;
46     void openPolicy(QString fw);
47     void verifyDialog(instDialog *dlg, int items = -1);
48     void openContextMenu(ObjectManipulator *om, ObjectTreeViewItem *item, ObjectTreeView *tree, const QString &actionText);
49     void removeFiles();
50 
51 private slots:
52     void initTestCase();
53 
54     void page1_8();
55     void page1_9();
56     void page1_10();
57     void page1_11();
58 
59 public slots:
60     void closeContextMenu();
61 };
62 
63 #endif // INSTDIALOGTEST_H
64