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

[Fleet] cypress setup #113106

Merged
merged 71 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
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 Sep 27, 2021
d74478d
Merge branch 'elastic:master' into fleet-cypress
juliaElastic Sep 27, 2021
648bf47
updated readme
juliaElastic Sep 27, 2021
7099dc1
fixed types
juliaElastic Sep 27, 2021
bb21e5c
fix unused
juliaElastic Sep 27, 2021
98164cf
starting up fleet server in cypress
juliaElastic Sep 28, 2021
5f28762
added more fleet tests
juliaElastic Sep 28, 2021
4261fde
added package update test
juliaElastic Sep 29, 2021
72fa3f7
updated readme
juliaElastic Sep 29, 2021
f47cafd
trying jenkins run
juliaElastic Sep 29, 2021
6c557ef
trying jenkins run
juliaElastic Sep 29, 2021
ec6714e
trying jenkins run
juliaElastic Sep 29, 2021
9411f5d
fix types, cypress config
juliaElastic Sep 29, 2021
f1e8984
Merge branch 'master' into fleet-cypress
kibanamachine Sep 29, 2021
15ddd5c
example of mocked requests
juliaElastic Sep 30, 2021
8fa29b3
Merge branch 'master' into fleet-cypress
juliaElastic Sep 30, 2021
9464634
Merge branch 'master' into fleet-cypress
kibanamachine Oct 1, 2021
a3983bd
added getBySel
juliaElastic Oct 1, 2021
f285b11
Merge branch 'master' into fleet-cypress
kibanamachine Oct 4, 2021
2f7bacd
fix test after refactor
juliaElastic Oct 4, 2021
a4896df
Merge branch 'master' into fleet-cypress
kibanamachine Oct 7, 2021
10b67ac
Merge branch 'master' into fleet-cypress
kibanamachine Oct 11, 2021
a8fdde8
removed duplication
juliaElastic Oct 11, 2021
2f6ccc9
Merge branch 'fleet-cypress' of https://github.com/juliaElastic/kiban…
juliaElastic Oct 11, 2021
2019a5b
fix tests
juliaElastic Oct 11, 2021
0dca80c
Merge branch 'elastic:master' into fleet-cypress
juliaElastic Oct 11, 2021
c0daca1
Merge branch 'master' into fleet-cypress
kibanamachine Oct 13, 2021
ef7dd15
Merge branch 'master' into fleet-cypress
kibanamachine Oct 18, 2021
6c0c44e
Merge branch 'master' into fleet-cypress
kibanamachine Oct 20, 2021
d4f8c62
Merge branch 'master' into fleet-cypress
kibanamachine Oct 21, 2021
b47d46c
added to buildkite
juliaElastic Oct 21, 2021
2566117
Merge branch 'master' into fleet-cypress
kibanamachine Oct 21, 2021
5d7b7b1
updated tests
juliaElastic Oct 21, 2021
d78ff94
Merge branch 'fleet-cypress' of https://github.com/juliaElastic/kiban…
juliaElastic Oct 21, 2021
a0d6e17
Merge branch 'master' into fleet-cypress
kibanamachine Oct 24, 2021
1628a93
starting agent with docker
juliaElastic Oct 26, 2021
71f58a8
Merge branch 'fleet-cypress' of https://github.com/juliaElastic/kiban…
juliaElastic Oct 26, 2021
8e04d5a
trying to fix ip address
juliaElastic Oct 26, 2021
7f21722
ifconfig
juliaElastic Oct 26, 2021
7b796dd
ip address
juliaElastic Oct 26, 2021
a9ed685
ip address
juliaElastic Oct 26, 2021
bb6e4e9
ip address
juliaElastic Oct 26, 2021
0514434
type fix
juliaElastic Oct 26, 2021
8ba315a
remove extra logging
juliaElastic Oct 26, 2021
7298bc8
fixed test
juliaElastic Oct 26, 2021
6b5a2c8
fix buildkite
juliaElastic Oct 26, 2021
fb00562
Merge branch 'master' into fleet-cypress
kibanamachine Oct 26, 2021
8858ed7
Merge branch 'master' into fleet-cypress
kibanamachine Oct 27, 2021
1051cc8
Merge branch 'master' into fleet-cypress
kibanamachine Oct 28, 2021
265020a
cleanup
juliaElastic Oct 28, 2021
8586adf
cleanup
juliaElastic Oct 28, 2021
94ca5e6
using docker for fleet_server
juliaElastic Oct 28, 2021
c86ed5a
fix
juliaElastic Oct 28, 2021
893687c
fix
juliaElastic Oct 28, 2021
e550286
trying to fix
juliaElastic Oct 28, 2021
bd01ccb
Merge branch 'master' of github.com:elastic/kibana into fleet-cypress
patrykkopycinski Oct 29, 2021
4a5d233
update config
patrykkopycinski Oct 29, 2021
9d63e66
test
patrykkopycinski Oct 29, 2021
c22af32
test
patrykkopycinski Oct 29, 2021
cd83d72
test
patrykkopycinski Oct 29, 2021
66e87ba
test
patrykkopycinski Oct 29, 2021
10d36bf
revert changes
patrykkopycinski Oct 29, 2021
722994a
test
patrykkopycinski Oct 29, 2021
3faaa90
test
patrykkopycinski Oct 29, 2021
6bf2915
Merge branch 'main' into fleet-cypress
kibanamachine Nov 1, 2021
ebb8f64
static ip on linux
juliaElastic Nov 1, 2021
2a65c57
docker version
juliaElastic Nov 1, 2021
db35a93
try again
juliaElastic Nov 1, 2021
c29d688
fixed review comments
juliaElastic Nov 2, 2021
7819abc
fixed types
juliaElastic Nov 2, 2021
ce6c85b
Merge branch 'main' into fleet-cypress
kibanamachine Nov 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ report.asciidoc
/bazel
/bazel-*
.bazelrc.user

elastic-agent-*
fleet-server-*
elastic-agent.yml
fleet-server.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line

2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/cypress/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"screenshotsFolder": "../../../target/kibana-fleet/cypress/screenshots",
"trashAssetsBeforeRuns": false,
"video": true,
"video": false,
"videosFolder": "../../../target/kibana-fleet/cypress/videos",
"viewportHeight": 900,
"viewportWidth": 1440,
Expand Down
5 changes: 0 additions & 5 deletions x-pack/plugins/fleet/cypress/fixtures/example.json

This file was deleted.

978 changes: 978 additions & 0 deletions x-pack/plugins/fleet/cypress/fixtures/integrations/agent_policies.json

Large diffs are not rendered by default.

644 changes: 644 additions & 0 deletions x-pack/plugins/fleet/cypress/fixtures/integrations/agent_policy.json

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions x-pack/plugins/fleet/cypress/fixtures/integrations/apache.json

Large diffs are not rendered by default.

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"
}
}
Loading