-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Synthetics] migrate first set of tests #198950
[Synthetics] migrate first set of tests #198950
Conversation
/ci |
…ynthetics-deployment-agnostic
const { apiKey, isValid } = await getAPIKeyForSyntheticsService({ server: this.server }); | ||
if (!isValid) { | ||
// do not check for api key validity if inspecting | ||
if (!isValid && !inspect) { |
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 noticed when I was adjusting the inspect tests, that they would sometime fail on api key not valid. No need to check api key when doing an inspect.
x-pack/test/api_integration/apis/synthetics/add_monitor_private_location.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/synthetics/add_monitor_private_location.ts
Outdated
Show resolved
Hide resolved
import { getFixtureJson } from './helpers/get_fixture_json'; | ||
import { SyntheticsMonitorTestService } from '../../../services/synthetics_monitor'; | ||
|
||
// adjust the type of samlAuth |
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 realized I left this as a comment for myself because samlAuth is set to any
here. Didn't get to fixing 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.
I like to preface comments like this with TODO
to signify that the PR has new tech debt to resolve before merging.
It's a nice reminder to the author themselves and it gives a much stronger indicator to reviewers that something is unfinished.
/ci |
…iniqueclarke/kibana into chore/synthetics-deployment-agnostic
/ci |
/ci |
...st/api_integration/deployment_agnostic/apis/observability/synthetics/create_update_params.ts
Outdated
Show resolved
Hide resolved
…lity/synthetics/create_update_params.ts
/ci |
/ci |
…iniqueclarke/kibana into chore/synthetics-deployment-agnostic
/ci |
import { DeploymentAgnosticFtrProviderContext } from '../../../ftr_provider_context'; | ||
|
||
export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { | ||
describe('Synthetics', () => { |
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.
describe('Synthetics', () => { | |
describe('SyntheticsAPITests', () => { |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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 !!
this.supertest = getService('supertestWithoutAuth'); | ||
this.samlAuth = getService('samlAuth'); | ||
this.getService = getService; | ||
this.supertestWithoutAuth = getService('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.
First time I've seen supertestWithoutAuth imported twice.
What's the deal?
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.
No deal. It's a mistake. Thanks for the catch!
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.
Looks like it's still imported twice?
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.
It looks like you're on an older commit. Here's the most recent file https://github.com/elastic/kibana/pull/198950/files#diff-f57bbeb09d4030043e0c47cac150f6d4458b2ea7d139bb99784da40b1f7488ecR26
import { KibanaSupertestProvider } from '@kbn/ftr-common-functional-services'; | ||
import { DeploymentAgnosticFtrProviderContext } from '../ftr_provider_context'; | ||
|
||
// fix saml auth type |
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 thought I fixed this. I'll have to adjust.
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.
Do you want this comment here?
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.
This is also outdated. I believe you're looking at an odd commit.
…iniqueclarke/kibana into chore/synthetics-deployment-agnostic
@dominiqueclarke I gave this a run against a real serverless project in MKI and I see many test failures: https://buildkite.com/elastic/appex-qa-serverless-kibana-ftr-tests/builds/3519. |
…iniqueclarke/kibana into chore/synthetics-deployment-agnostic
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
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.
Left a question.
this.supertest = getService('supertestWithoutAuth'); | ||
this.samlAuth = getService('samlAuth'); | ||
this.getService = getService; | ||
this.supertestWithoutAuth = getService('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.
Looks like it's still imported twice?
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.
CR only, LGTM
Starting backport for target branches: 8.17, 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Relates to elastic#196229 Migrates Synthetics tests to deployment agnostic --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Shahzad <[email protected]> (cherry picked from commit b74b935) # Conflicts: # .github/CODEOWNERS # x-pack/test/api_integration/deployment_agnostic/default_configs/serverless.config.base.ts
Summary
Relates to #196229
Migrates Synthetics tests to deployment agnostic