Skip to content

Commit

Permalink
fix failing tests related to LDAP when running on CI (mattermost#5501)
Browse files Browse the repository at this point in the history
  • Loading branch information
saturninoabril authored May 15, 2020
1 parent 7116e5a commit 6befd92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion e2e/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"webhookBaseUrl": "https://localhost:3000",
"setChromeWebSecurity": true,
"ldapServer": "localhost",
"ldapPort": 389
"ldapPort": 389,
"runLDAPSync": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ describe('Test channel public/private toggle', () => {
});

// # Check and run LDAP Sync job
cy.checkRunLDAPSync();
if (Cypress.env('runLDAPSync')) {
cy.checkRunLDAPSync();
}
});

it('Verify that System Admin can change channel privacy using toggle', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ describe('System Console', () => {
cy.apiUpdateConfig({LdapSettings: {Enable: true}});

// # Check and run LDAP Sync job
cy.checkRunLDAPSync();
if (Cypress.env('runLDAPSync')) {
cy.checkRunLDAPSync();
}
});

it('MM-20058 - System Admin can map roles to teams and channels via group configuration page', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ describe('System Console', () => {
cy.apiUpdateConfig({LdapSettings: {Enable: true}});

// # Check and run LDAP Sync job
cy.checkRunLDAPSync();
if (Cypress.env('runLDAPSync')) {
cy.checkRunLDAPSync();
}
});

it('MM-20059 - System Admin can map roles to groups from Team Configuration screen', () => {
Expand Down

0 comments on commit 6befd92

Please sign in to comment.