1
0
mirror of https://github.com/altlinux/admc.git synced 2025-02-01 13:47:06 +03:00
admc/tests/admc_test_upn_edit.h

61 lines
1.6 KiB
C
Raw Normal View History

2021-03-26 18:07:00 +04:00
/*
* ADMC - AD Management Center
*
2022-04-06 15:59:32 +04:00
* Copyright (C) 2020-2022 BaseALT Ltd.
* Copyright (C) 2020-2022 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;
void length_limit();
2021-03-26 18:07:00 +04:00
void test_load();
void test_emit_edited();
void apply_unmodified();
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();
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();
void change_suffix_in_edit();
2021-03-26 18:07:00 +04:00
};
#endif /* ADMC_TEST_UPN_EDIT_H */