-
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
[Fleet] cypress setup #113106
Merged
Merged
[Fleet] cypress setup #113106
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
3cb4113
added cypress setup for fleet
juliaElastic d74478d
Merge branch 'elastic:master' into fleet-cypress
juliaElastic 648bf47
updated readme
juliaElastic 7099dc1
fixed types
juliaElastic bb21e5c
fix unused
juliaElastic 98164cf
starting up fleet server in cypress
juliaElastic 5f28762
added more fleet tests
juliaElastic 4261fde
added package update test
juliaElastic 72fa3f7
updated readme
juliaElastic f47cafd
trying jenkins run
juliaElastic 6c557ef
trying jenkins run
juliaElastic ec6714e
trying jenkins run
juliaElastic 9411f5d
fix types, cypress config
juliaElastic f1e8984
Merge branch 'master' into fleet-cypress
kibanamachine 15ddd5c
example of mocked requests
juliaElastic 8fa29b3
Merge branch 'master' into fleet-cypress
juliaElastic 9464634
Merge branch 'master' into fleet-cypress
kibanamachine a3983bd
added getBySel
juliaElastic f285b11
Merge branch 'master' into fleet-cypress
kibanamachine 2f7bacd
fix test after refactor
juliaElastic a4896df
Merge branch 'master' into fleet-cypress
kibanamachine 10b67ac
Merge branch 'master' into fleet-cypress
kibanamachine a8fdde8
removed duplication
juliaElastic 2f6ccc9
Merge branch 'fleet-cypress' of https://github.com/juliaElastic/kiban…
juliaElastic 2019a5b
fix tests
juliaElastic 0dca80c
Merge branch 'elastic:master' into fleet-cypress
juliaElastic c0daca1
Merge branch 'master' into fleet-cypress
kibanamachine ef7dd15
Merge branch 'master' into fleet-cypress
kibanamachine 6c0c44e
Merge branch 'master' into fleet-cypress
kibanamachine d4f8c62
Merge branch 'master' into fleet-cypress
kibanamachine b47d46c
added to buildkite
juliaElastic 2566117
Merge branch 'master' into fleet-cypress
kibanamachine 5d7b7b1
updated tests
juliaElastic d78ff94
Merge branch 'fleet-cypress' of https://github.com/juliaElastic/kiban…
juliaElastic a0d6e17
Merge branch 'master' into fleet-cypress
kibanamachine 1628a93
starting agent with docker
juliaElastic 71f58a8
Merge branch 'fleet-cypress' of https://github.com/juliaElastic/kiban…
juliaElastic 8e04d5a
trying to fix ip address
juliaElastic 7f21722
ifconfig
juliaElastic 7b796dd
ip address
juliaElastic a9ed685
ip address
juliaElastic bb6e4e9
ip address
juliaElastic 0514434
type fix
juliaElastic 8ba315a
remove extra logging
juliaElastic 7298bc8
fixed test
juliaElastic 6b5a2c8
fix buildkite
juliaElastic fb00562
Merge branch 'master' into fleet-cypress
kibanamachine 8858ed7
Merge branch 'master' into fleet-cypress
kibanamachine 1051cc8
Merge branch 'master' into fleet-cypress
kibanamachine 265020a
cleanup
juliaElastic 8586adf
cleanup
juliaElastic 94ca5e6
using docker for fleet_server
juliaElastic c86ed5a
fix
juliaElastic 893687c
fix
juliaElastic e550286
trying to fix
juliaElastic bd01ccb
Merge branch 'master' of github.com:elastic/kibana into fleet-cypress
patrykkopycinski 4a5d233
update config
patrykkopycinski 9d63e66
test
patrykkopycinski c22af32
test
patrykkopycinski cd83d72
test
patrykkopycinski 66e87ba
test
patrykkopycinski 10d36bf
revert changes
patrykkopycinski 722994a
test
patrykkopycinski 3faaa90
test
patrykkopycinski 6bf2915
Merge branch 'main' into fleet-cypress
kibanamachine ebb8f64
static ip on linux
juliaElastic 2a65c57
docker version
juliaElastic db35a93
try again
juliaElastic c29d688
fixed review comments
juliaElastic 7819abc
fixed types
juliaElastic ce6c85b
Merge branch 'main' into fleet-cypress
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,8 @@ report.asciidoc | |
/bazel | ||
/bazel-* | ||
.bazelrc.user | ||
|
||
elastic-agent-* | ||
fleet-server-* | ||
elastic-agent.yml | ||
fleet-server.yml | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
978 changes: 978 additions & 0 deletions
978
x-pack/plugins/fleet/cypress/fixtures/integrations/agent_policies.json
Large diffs are not rendered by default.
Oops, something went wrong.
644 changes: 644 additions & 0 deletions
644
x-pack/plugins/fleet/cypress/fixtures/integrations/agent_policy.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,059 changes: 1,059 additions & 0 deletions
1,059
x-pack/plugins/fleet/cypress/fixtures/integrations/apache.json
Large diffs are not rendered by default.
Oops, something went wrong.
255 changes: 255 additions & 0 deletions
255
x-pack/plugins/fleet/cypress/fixtures/integrations/create_integration_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,255 @@ | ||
{ | ||
"item": { | ||
"id": "1", | ||
"version": "WzI4NDAsMV0=", | ||
"name": "apache-1", | ||
"description": "", | ||
"namespace": "default", | ||
"policy_id": "9ced27e0-20ff-11ec-b353-dd9d66c6f483", | ||
"enabled": true, | ||
"output_id": "", | ||
"inputs": [ | ||
{ | ||
"type": "logfile", | ||
"policy_template": "apache", | ||
"enabled": true, | ||
"streams": [ | ||
{ | ||
"enabled": true, | ||
"data_stream": { | ||
"type": "logs", | ||
"dataset": "apache.access" | ||
}, | ||
"vars": { | ||
"paths": { | ||
"value": [ | ||
"/var/log/apache2/access.log*", | ||
"/var/log/apache2/other_vhosts_access.log*", | ||
"/var/log/httpd/access_log*" | ||
], | ||
"type": "text" | ||
}, | ||
"tags": { | ||
"value": [ | ||
"apache-access" | ||
], | ||
"type": "text" | ||
}, | ||
"preserve_original_event": { | ||
"value": false, | ||
"type": "bool" | ||
}, | ||
"processors": { | ||
"type": "yaml" | ||
} | ||
}, | ||
"id": "logfile-apache.access-1c588150-010b-448a-b2b8-820d1b33811e", | ||
"compiled_stream": { | ||
"paths": [ | ||
"/var/log/apache2/access.log*", | ||
"/var/log/apache2/other_vhosts_access.log*", | ||
"/var/log/httpd/access_log*" | ||
], | ||
"tags": [ | ||
"apache-access" | ||
], | ||
"exclude_files": [ | ||
".gz$" | ||
] | ||
} | ||
}, | ||
{ | ||
"enabled": true, | ||
"data_stream": { | ||
"type": "logs", | ||
"dataset": "apache.error" | ||
}, | ||
"vars": { | ||
"paths": { | ||
"value": [ | ||
"/var/log/apache2/error.log*", | ||
"/var/log/httpd/error_log*" | ||
], | ||
"type": "text" | ||
}, | ||
"tags": { | ||
"value": [ | ||
"apache-error" | ||
], | ||
"type": "text" | ||
}, | ||
"preserve_original_event": { | ||
"value": false, | ||
"type": "bool" | ||
}, | ||
"processors": { | ||
"type": "yaml" | ||
} | ||
}, | ||
"id": "logfile-apache.error-1c588150-010b-448a-b2b8-820d1b33811e", | ||
"compiled_stream": { | ||
"paths": [ | ||
"/var/log/apache2/error.log*", | ||
"/var/log/httpd/error_log*" | ||
], | ||
"exclude_files": [ | ||
".gz$" | ||
], | ||
"tags": [ | ||
"apache-error" | ||
], | ||
"processors": [ | ||
{ | ||
"add_locale": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "httpjson", | ||
"policy_template": "apache", | ||
"enabled": false, | ||
"streams": [ | ||
{ | ||
"enabled": false, | ||
"data_stream": { | ||
"type": "logs", | ||
"dataset": "apache.access" | ||
}, | ||
"vars": { | ||
"interval": { | ||
"value": "10s", | ||
"type": "text" | ||
}, | ||
"search": { | ||
"value": "search sourcetype=\"access*\"", | ||
"type": "text" | ||
}, | ||
"tags": { | ||
"value": [ | ||
"forwarded", | ||
"apache-access" | ||
], | ||
"type": "text" | ||
}, | ||
"preserve_original_event": { | ||
"value": false, | ||
"type": "bool" | ||
}, | ||
"processors": { | ||
"type": "yaml" | ||
} | ||
}, | ||
"id": "httpjson-apache.access-1c588150-010b-448a-b2b8-820d1b33811e" | ||
}, | ||
{ | ||
"enabled": false, | ||
"data_stream": { | ||
"type": "logs", | ||
"dataset": "apache.error" | ||
}, | ||
"vars": { | ||
"interval": { | ||
"value": "10s", | ||
"type": "text" | ||
}, | ||
"search": { | ||
"value": "search sourcetype=apache:error OR sourcetype=apache_error", | ||
"type": "text" | ||
}, | ||
"tags": { | ||
"value": [ | ||
"forwarded", | ||
"apache-error" | ||
], | ||
"type": "text" | ||
}, | ||
"preserve_original_event": { | ||
"value": false, | ||
"type": "bool" | ||
}, | ||
"processors": { | ||
"type": "yaml" | ||
} | ||
}, | ||
"id": "httpjson-apache.error-1c588150-010b-448a-b2b8-820d1b33811e" | ||
} | ||
], | ||
"vars": { | ||
"url": { | ||
"value": "https://server.example.com:8089", | ||
"type": "text" | ||
}, | ||
"username": { | ||
"type": "text" | ||
}, | ||
"password": { | ||
"type": "password" | ||
}, | ||
"token": { | ||
"type": "password" | ||
}, | ||
"ssl": { | ||
"value": "#certificate_authorities:\n# - |\n# -----BEGIN CERTIFICATE-----\n# MIIDCjCCAfKgAwIBAgITJ706Mu2wJlKckpIvkWxEHvEyijANBgkqhkiG9w0BAQsF\n# ADAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwIBcNMTkwNzIyMTkyOTA0WhgPMjExOTA2\n# MjgxOTI5MDRaMBQxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEB\n# BQADggEPADCCAQoCggEBANce58Y/JykI58iyOXpxGfw0/gMvF0hUQAcUrSMxEO6n\n# fZRA49b4OV4SwWmA3395uL2eB2NB8y8qdQ9muXUdPBWE4l9rMZ6gmfu90N5B5uEl\n# 94NcfBfYOKi1fJQ9i7WKhTjlRkMCgBkWPkUokvBZFRt8RtF7zI77BSEorHGQCk9t\n# /D7BS0GJyfVEhftbWcFEAG3VRcoMhF7kUzYwp+qESoriFRYLeDWv68ZOvG7eoWnP\n# PsvZStEVEimjvK5NSESEQa9xWyJOmlOKXhkdymtcUd/nXnx6UTCFgnkgzSdTWV41\n# CI6B6aJ9svCTI2QuoIq2HxX/ix7OvW1huVmcyHVxyUECAwEAAaNTMFEwHQYDVR0O\n# BBYEFPwN1OceFGm9v6ux8G+DZ3TUDYxqMB8GA1UdIwQYMBaAFPwN1OceFGm9v6ux\n# 8G+DZ3TUDYxqMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAG5D\n# 874A4YI7YUwOVsVAdbWtgp1d0zKcPRR+r2OdSbTAV5/gcS3jgBJ3i1BN34JuDVFw\n# 3DeJSYT3nxy2Y56lLnxDeF8CUTUtVQx3CuGkRg1ouGAHpO/6OqOhwLLorEmxi7tA\n# H2O8mtT0poX5AnOAhzVy7QW0D/k4WaoLyckM5hUa6RtvgvLxOwA0U+VGurCDoctu\n# 8F4QOgTAWyh8EZIwaKCliFRSynDpv3JTUwtfZkxo6K6nce1RhCWFAsMvDZL8Dgc0\n# yvgJ38BRsFOtkRuAGSf6ZUwTO8JJRRIFnpUzXflAnGivK9M13D5GEQMmIl6U9Pvk\n# sxSmbIUfc2SGJGCJD4I=\n# -----END CERTIFICATE-----\n", | ||
"type": "yaml" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "apache/metrics", | ||
"policy_template": "apache", | ||
"enabled": true, | ||
"streams": [ | ||
{ | ||
"enabled": true, | ||
"data_stream": { | ||
"type": "metrics", | ||
"dataset": "apache.status" | ||
}, | ||
"vars": { | ||
"period": { | ||
"value": "30s", | ||
"type": "text" | ||
}, | ||
"server_status_path": { | ||
"value": "/server-status", | ||
"type": "text" | ||
} | ||
}, | ||
"id": "apache/metrics-apache.status-1c588150-010b-448a-b2b8-820d1b33811e", | ||
"compiled_stream": { | ||
"metricsets": [ | ||
"status" | ||
], | ||
"hosts": [ | ||
"http://127.0.0.1" | ||
], | ||
"period": "30s", | ||
"server_status_path": "/server-status" | ||
} | ||
} | ||
], | ||
"vars": { | ||
"hosts": { | ||
"value": [ | ||
"http://127.0.0.1" | ||
], | ||
"type": "text" | ||
} | ||
} | ||
} | ||
], | ||
"package": { | ||
"name": "apache", | ||
"title": "Apache", | ||
"version": "1.1.0" | ||
}, | ||
"revision": 1, | ||
"created_at": "2021-09-29T09:12:55.869Z", | ||
"created_by": "elastic", | ||
"updated_at": "2021-09-29T09:12:55.869Z", | ||
"updated_by": "elastic" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: new line