chore: add oauth2 server mock logging

pull/5911/head
k3yi0 2022-04-28 19:21:42 +02:00
parent d7fc0569d5
commit 554d3a11e4
2 changed files with 3 additions and 6 deletions

View File

@ -65,7 +65,7 @@ jobs:
- name: OAuth2 Mock Server
run: |
yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock
RUNNER_TRACKING_ID="" && (nohup yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock start&)
RUNNER_TRACKING_ID="" && (nohup yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock start > oauth2-mock.log 2>&1 &)
env:
OAUTH2_HOSTNAME: 172.17.0.1
OAUTH2_PORT: 8087
@ -118,6 +118,7 @@ jobs:
with:
name: results
path: |
oauth2-mock.log
out.log
ui/cypress/videos/*.mp4
ui/cypress/results/results-*.xml

View File

@ -45,11 +45,7 @@ describe('Use Dashboards', () => {
beforeEach(() => {
cy.deleteUser('Reader')
cy.createUser('Reader', 'oauth-mock', 'oauth2')
cy.OAuthLogin('Reader')
cy.OAuthLogout()
cy.OAuthLogout()
cy.OAuthLogout()
cy.visit('/login')
cy.OAuthLoginAsDiffUser('Reader')
})
it('ensure that all elements used to edit Chronograf are not visible', () => {