Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ftr] provider a wrapper for supertest with specific role and headers #190228

Closed
Tracked by #190229
dmlemeshko opened this issue Aug 9, 2024 · 1 comment · Fixed by #190279
Closed
Tracked by #190229

[ftr] provider a wrapper for supertest with specific role and headers #190228

dmlemeshko opened this issue Aug 9, 2024 · 1 comment · Fixed by #190279
Labels
Team:QA Team label for QA Team

Comments

@dmlemeshko
Copy link
Member

@azasypkin suggested a nice improvement in test design: getSupertestWithRoleScope('admin', ...options...) that would do all the heavy lifting with custom, internal and security headers internally.

    describe('against an application page', () => {
      it(`uses compression when there isn't a referer`, async () => {
        const response = await getSupertestWithRoleScope('admin', {withInternalHeaders: true})
          .get('/app/kibana')
          .set('accept-encoding', 'gzip')
        expect(response.header).to.have.property('content-encoding', 'gzip');
      });
    });
@dmlemeshko dmlemeshko added the Team:QA Team label for QA Team label Aug 9, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-qa (Team:QA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:QA Team label for QA Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants