Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Ldap manual import #5381

Merged
merged 13 commits into from
Jul 4, 2017
Merged

Ldap manual import #5381

merged 13 commits into from
Jul 4, 2017

Conversation

MatthieuMan
Copy link
Contributor

acceptance test ok

Given I am logged in a Centreon server
And a LDAP configuration has been created
And LDAP authentication is enabled
And users auto import is disabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much "And" :
Given I am logged in a Centreon server
And a LDAP configuration has been created
And users auto import is disabled

if ($value != 0) {
throw new Exception('Users auto import enabled');
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)

$this->assertFindLink('openldap')->click();
sleep(5);
$this->assertFindButton('Import users manually')->click();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)

{
sleep(5);
$this->assertFindButton('Search')->click();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)

sleep(5);
$this->assertFind('css', 'input[name="contact_select[select][3]"]')->click();
$this->assertFindButton('submitA')->click();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)


throw new Exception(' contact not created ');
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)

$this->iSearchASpecificUserWhoseAliasContainsASpecialCharacterSuchAsAnAccent();
$this->theLdapSearchResultDisplaysTheExpectedAlias();
$this->iImportTheUser();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)

*/
public function thisUserLoginsToCentreonWeb()
{
$this->iAmLoggedOut();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not the better way to check login

{
$this->page = new LoginPage($this);
$this->page->login($this->alias, 'centreon-ldap4');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful about blank lines (coding style)

$object = $this->page->getEntry('openldap');

if ($object['status'] != 'Enabled') {
throw new Exception(' LDAP authentification is disabled');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fr: authentification
en: authentication

@kduret
Copy link
Contributor

kduret commented Jun 26, 2017

Furthermore, use spin method instead of sleep ;)

@MatthieuMan
Copy link
Contributor Author

changes done

@kduret kduret merged commit 29ede94 into master Jul 4, 2017
@kduret kduret deleted the LDAPManualImport branch July 4, 2017 09:28
kduret pushed a commit that referenced this pull request Jul 4, 2017
* ldapLDAPManualImport config added into behat.yml

* LdapManualImport and LdapManualImportContext.php.feature files for acceptance test added

* feature's background modified

* LdapManualImportContext.php accpetance test ok

* LdapManuelImport acceptance test enhanced

* UtilsContext Class withdrawn

* features's name modified

* improve acceptance test for ldap manual import

* improve ldap manual import acceptance test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants