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

Add e2e tests for APM / Kibana association #3154

Closed
barkbay opened this issue May 28, 2020 · 2 comments · Fixed by #3184
Closed

Add e2e tests for APM / Kibana association #3154

barkbay opened this issue May 28, 2020 · 2 comments · Fixed by #3184
Assignees
Labels
>test Related to unit/integration/e2e tests v1.2.0

Comments

@barkbay
Copy link
Contributor

barkbay commented May 28, 2020

Following-up #3043 we should add some end to end tests to validate that an APM Server is correctly associated with Kibana.

@barkbay barkbay added >test Related to unit/integration/e2e tests v1.2.0 labels May 28, 2020
@barkbay barkbay self-assigned this May 28, 2020
@barkbay
Copy link
Contributor Author

barkbay commented May 28, 2020

I think we can implement the following scenario:

  1. Create an agent configuration using the Kibana API, the API is officially documented from 7.7.0 but is available since 7.5.0

    PUT https://x.x.x.x:5601/api/apm/settings/agent-configuration

    The following HTTP body creates the default agent configuration (a.k.a. All) :

    {
        "service": {},
        "settings": {
            "transaction_sample_rate": 1,
            "capture_body": "errors",
            "transaction_max_spans": 100
        }
    }
  2. Fetch the configuration from the APM Server with the Agent configuration API

    GET https://y.y.y.y:8200/config/v1/agents?service.name=All

    Compare the results:

    {
      "capture_body": "errors",
      "transaction_max_spans": "100",
      "transaction_sample_rate": "1"
    }

@pebrc
Copy link
Collaborator

pebrc commented May 28, 2020

Very good idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Related to unit/integration/e2e tests v1.2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants