-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] move supertestWithoutAuth service to kbn-ftr-common-functional-services #189613
[FTR] move supertestWithoutAuth service to kbn-ftr-common-functional-services #189613
Conversation
/ci |
/ci |
… github.com:dmlemeshko/kibana into ftr/supertestWithoutAuth-to-common-services-package
/ci |
/ci |
.post('/api/console/proxy?method=GET&path=/.kibana/_settings') | ||
.set('kbn-xsrf', 'true') | ||
.set(svlCommonApi.getInternalRequestHeader()) | ||
.set(roleAuthc.apiKeyHeader) | ||
.then((response) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solving Parameter 'response' implicitly has an 'any' type.
Alternatively we can import Response
type from supertest
, but I believe we shouldn't import lib directly in test files. Open for discussion.
supertest: kibanaApiIntegrationServices.supertest, | ||
supertestWithoutAuth: apiIntegrationServices.supertestWithoutAuth, | ||
retry: kibanaApiIntegrationServices.retry, | ||
esArchiver: kibanaFunctionalServices.esArchiver, | ||
kibanaServer: kibanaFunctionalServices.kibanaServer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already loaded as part of commonServices
|
||
export const services = { | ||
...commonServices, | ||
supertestWithoutAuth: apiIntegrationServices.supertestWithoutAuth, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already loaded as part of commonServices
@@ -36,7 +34,6 @@ export const services = { | |||
dataViewApi: DataViewApiProvider, | |||
esSupertestWithoutAuth: EsSupertestWithoutAuthProvider, | |||
infraOpsSourceConfiguration: InfraOpsSourceConfigurationProvider, | |||
supertestWithoutAuth: SupertestWithoutAuthProvider, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already loaded as part of commonServices
/ci |
x-pack/test/spaces_api_integration/common/suites/copy_to_space.ts
Outdated
Show resolved
Hide resolved
… github.com:dmlemeshko/kibana into ftr/supertestWithoutAuth-to-common-services-package
/ci |
/ci |
@@ -22,7 +23,7 @@ export default function createSpacesOnlySuite({ getService }: FtrProviderContext | |||
expectConflictResponse, | |||
expectRbacForbiddenResponse, | |||
expectSolutionSpecifiedResult, | |||
} = createTestSuiteFactory(esArchiver, supertestWithoutAuth); | |||
} = createTestSuiteFactory(esArchiver, supertestWithoutAuth as unknown as SuperTest<any>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to do it to avoid test re-write: SupertestWithoutAuthProviderType
won't allow to call .auth(string,string)
with undefined arguments. I tried to rewrite it, but 2 configs started to fail, so I decide against it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core changes LGTM
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResponseOps changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Data Discovery changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elastic/kibana-management changes lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
While working on #188737 I had to move
supertestWithoutAuth
intokbn-ftr-common-functional-services
package. This change seems to be bigger than initially planned.Moving it to the separate PR with following changes:
SupertestWithoutAuthProvider
service to package