Skip to content

Commit

Permalink
remove list dbs e2e test (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrEmil authored Mar 11, 2020
1 parent cb019a6 commit 8aedf57
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions e2e_tests/integration/multi-db.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,36 +165,6 @@ describe('Multi database', () => {
databaseList().contains('neo4j')
})
}
if (isEnterpriseEdition()) {
it('user with no roles can lists databases with :dbs command but cant run cypher', () => {
cy.executeCommand(':clear')
cy.createUser('noroles', 'pw1', false)
cy.executeCommand(':server disconnect')
cy.executeCommand(':clear')
cy.executeCommand(':server connect')
cy.connect('noroles', 'pw1')

// Try to list dbs, should work
cy.executeCommand(':dbs')
databaseList().should('have.length', 2)
databaseList().contains('system')
databaseList().contains('neo4j')

// Try to run Cypher, shoudl show error
cy.executeCommand('RETURN 1')
const resultFrame = cy
.get('[data-testid="frame"]', { timeout: 10000 })
.first()
resultFrame.should('contain', 'Neo.ClientError.Security.Forbidden')
resultFrame.should('contain', 'List available databases')

// Cleanup
cy.executeCommand(':server disconnect')
cy.executeCommand(':clear')
cy.connect('neo4j', Cypress.config('password'))
cy.dropUser('noroles')
})
}
it('shows error message when trying to set a parameter on system db', () => {
cy.executeCommand(':clear')
cy.executeCommand(':use system')
Expand Down

0 comments on commit 8aedf57

Please sign in to comment.