Igor api key validation
What does this PR do?
This PR test communication API keys are invalidated during unenrollment
Why is it important?
Checklist
- [x] My code follows the style guidelines of this project
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have made corresponding change to the default configuration files
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have run the Unit tests (
make unit-test), and they are passing locally - [x] I have run the End-2-End tests for the suite I'm working on, and they are passing locally
- [ ] I have noticed new Go dependencies (run
make noticein the proper directory)
Author's Checklist
- [ ]
How to test this PR locally
Related issues
https://github.com/elastic/e2e-testing/issues/1192
This pull request does not have a backport label. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you need to add the backport labels for the needed branches, such as:
-
backport-v./d./d./dis the label to automatically backport to the7./dbranch./dis the digit NOTE:backport-skiphas been added to this pull request.
:broken_heart: Tests Failed
the below badges are clickable and redirect to their specific view in the CI or DOCS
![]()
![]()
![]()
![]()
![]()
Expand to view the summary
Build stats
-
Start Time: 2022-01-20T19:14:05.289+0000
-
Duration: 62 min 18 sec
-
Commit: b60ad262b8522cb74578d81213b3ce70260d0c98
Test stats :test_tube:
| Test | Results |
|---|---|
| Failed | 5 |
| Passed | 219 |
| Skipped | 0 |
| Total | 224 |
Test errors 
Expand to view the tests failures
Initializing / End-To-End Tests / fleet_amd64_fleet_mode_agent / Un-enrolling with revoke agent deactivates the agent – Fleet Mode Agent
- no stacktrace
Expand to view the error details
Step the agent Api key invalidated "true": The agent Api key invalidated is should be: true
Initializing / End-To-End Tests / kubernetes_autodiscover_elastic-agent / [empty] – TEST-x86_64-kubernetes-autodiscover-79e77bf2-2022-01-20-19:34:32.xml
- no error details
Expand to view the stacktrace
Test report file /var/lib/jenkins/workspace/PR-1783-28-6b7ada2c-9a89-4900-a9c1-664d262ec71e/outputs/18.219.45.37/TEST-x86_64-kubernetes-autodiscover-79e77bf2-2022-01-20-19:34:32.xml was length 0
Initializing / End-To-End Tests / fleet_arm64_fleet_mode_agent / Deploying the agent with enroll and then run on rpm and deb – Fleet Mode Agent
- no stacktrace
Expand to view the error details
Step an agent is deployed to Fleet
Initializing / End-To-End Tests / fleet_sles15_fleet_mode_agent / Deploying the agent with enroll and then run on rpm and deb – Fleet Mode Agent
- no stacktrace
Expand to view the error details
Step an agent is deployed to Fleet
Initializing / End-To-End Tests / fleet_amd64_fleet_mode_agent / Deploying the agent with enroll and then run on rpm and deb – Fleet Mode Agent
- no stacktrace
Expand to view the error details
Step an agent is deployed to Fleet
Steps errors 
Expand to view the steps failures
Shell Script
- Took 21 min 12 sec . View more details here
- Description:
ssh -tt -o TCPKeepAlive=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /var/lib/jenkins/workspace/PR-1783-28-301e8c3e-560b-4392-87e5-60b0a23831fc/e2essh [email protected] -- 'sudo bash /home/admin/e2e-testing/.ci/scripts/functional-test.sh "fleet_mode_agent && ~@nightly && ~@skip:amd64" '
Archive the artifacts
- Took 0 min 0 sec . View more details here
- Description:
[2022-01-20T19:54:48.168Z] Archiving artifacts script returned exit code 2
:bug: Flaky test report
:grey_exclamation: There are test failures but not known flaky tests.
Expand to view the summary
Genuine test errors 
:broken_heart: There are test failures but not known flaky tests, most likely a genuine test failure.
-
Name:
Initializing / End-To-End Tests / fleet_amd64_fleet_mode_agent / Un-enrolling with revoke agent deactivates the agent – Fleet Mode Agent -
Name:
Initializing / End-To-End Tests / kubernetes_autodiscover_elastic-agent / [empty] – TEST-x86_64-kubernetes-autodiscover-79e77bf2-2022-01-20-19:34:32.xml -
Name:
Initializing / End-To-End Tests / fleet_arm64_fleet_mode_agent / Deploying the agent with enroll and then run on rpm and deb – Fleet Mode Agent -
Name:
Initializing / End-To-End Tests / fleet_sles15_fleet_mode_agent / Deploying the agent with enroll and then run on rpm and deb – Fleet Mode Agent -
Name:
Initializing / End-To-End Tests / fleet_amd64_fleet_mode_agent / Deploying the agent with enroll and then run on rpm and deb – Fleet Mode Agent
:robot: GitHub comments
To re-run your PR in the CI, just comment with:
-
/test: Re-trigger the build.
Just a note to hold off on merging this until https://github.com/elastic/e2e-testing/pull/1740 is merged as this PR will need some cleanup on the feature file @IgorGuz2000 @mdelapenya
/test
Waiting for the https://github.com/elastic/e2e-testing/pull/1740 to be merged
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/master
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation
This pull request is now in conflict. Could you fix it @IgorGuz2000? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/
git fetch upstream
git checkout -b Igor_API_Key_validation upstream/Igor_API_Key_validation
git merge upstream/main
git push upstream Igor_API_Key_validation