2021-03-26 18:07:00 +04:00
/*
* ADMC - AD Management Center
*
2021-06-07 11:51:19 +04:00
* Copyright ( C ) 2020 - 2021 BaseALT Ltd .
* Copyright ( C ) 2020 - 2021 Dmitry Degtyarev
2021-03-26 18:07:00 +04:00
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation , either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
# ifndef ADMC_TEST_UPN_EDIT_H
# define ADMC_TEST_UPN_EDIT_H
# include "admc_test.h"
class UpnEdit ;
class QLineEdit ;
class QComboBox ;
class ADMCTestUpnEdit : public ADMCTest {
2021-06-10 16:34:06 +04:00
Q_OBJECT
2021-03-26 18:07:00 +04:00
private slots :
void init ( ) override ;
2022-01-26 11:36:39 +04:00
void length_limit ( ) ;
2021-03-26 18:07:00 +04:00
void test_load ( ) ;
void test_emit_edited ( ) ;
2021-07-14 12:35:00 +04:00
void apply_unmodified ( ) ;
2022-02-01 09:55:19 +04:00
void test_apply_suffix ( ) ;
2021-03-26 18:07:00 +04:00
void test_apply_prefix ( ) ;
void test_apply_prefix_and_suffix ( ) ;
void test_reset ( ) ;
2022-01-25 17:41:56 +04:00
void verify_bad_chars_data ( ) ;
void verify_bad_chars ( ) ;
void verify_conflict ( ) ;
2021-03-26 18:07:00 +04:00
private :
UpnEdit * upn_edit ;
QLineEdit * prefix_edit ;
QComboBox * suffix_edit ;
QString dn ;
QString get_upn ( ) ;
2021-03-29 12:09:03 +04:00
QString get_current_upn ( ) ;
2021-03-26 18:07:00 +04:00
bool edit_state_equals_to_server_state ( ) ;
2022-02-01 09:55:19 +04:00
void change_suffix_in_edit ( ) ;
2021-03-26 18:07:00 +04:00
} ;
# endif /* ADMC_TEST_UPN_EDIT_H */