Skip to content

Test for RC client extra_services field#1470

Merged
robertpi merged 9 commits intomainfrom
robert/asm/rc-extra-services-tests
Sep 7, 2023
Merged

Test for RC client extra_services field#1470
robertpi merged 9 commits intomainfrom
robert/asm/rc-extra-services-tests

Conversation

@robertpi
Copy link
Copy Markdown
Member

@robertpi robertpi commented Aug 8, 2023

Description

Checks that the extra_services tag is correctly populated by the remote config client.

Motivation

This feature will be used to help give any fake services that appear the correct status.

Reviewer checklist

  • Check what scenarios are modified. If needed, add the relevant label (run-parametric-scenario, run-profiling-scenario...). If this PR modifies any system-tests internal, then add the run-all-scenarios label (more info).
  • CI is green
    • Java tests failing because of known issue, should pass after that
  • if any of build-some-image label is present
    1. is the image labl have been updated ?
    2. just before merging, locally build and push the image to hub.docker.com
  • if a scenario is added (or removed), add (or remove) it in system-test-dasboard nightly

interfaces.library.validate_remote_configuration(validator=validate)


@released(cpp="?", dotnet="2.36.0", golang="?", java="?", php_appsec="?", python="?", ruby="?", nodejs="?")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you use new manifest files 🙏

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed 4e5b061

class Test_RemoteConfigurationExtraServices:
"""Tests that extra services are sent in the RC message"""

remote_config_is_sent = False
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not used ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

removed 87a9c93

Comment thread tests/remote_config/test_remote_configuration.py

return True

interfaces.library.wait_for(remote_config_asm_extra_services_available, timeout=30)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

wait_for function must be in the setup. At this point, the weblog container is removed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed in 87a9c93

Comment thread tests/remote_config/test_remote_configuration.py Outdated
@robertpi robertpi force-pushed the robert/asm/rc-extra-services-tests branch from 92c5826 to 87a9c93 Compare August 21, 2023 10:00
@robertpi robertpi force-pushed the robert/asm/rc-extra-services-tests branch 2 times, most recently from c631137 to 8466202 Compare September 5, 2023 14:23
@cbeauchesne
Copy link
Copy Markdown
Collaborator

Don't worry about the conflict, I'll handle it before doing the review

@robertpi robertpi force-pushed the robert/asm/rc-extra-services-tests branch 2 times, most recently from d54f920 to ccf3324 Compare September 5, 2023 15:07
@robertpi
Copy link
Copy Markdown
Member Author

robertpi commented Sep 5, 2023

Don't worry about the conflict, I'll handle it before doing the review

Too late! (Well, needed to do it to get the CI to run).

@robertpi robertpi marked this pull request as ready for review September 6, 2023 11:05
@robertpi robertpi requested a review from a team September 6, 2023 11:05
@robertpi robertpi requested review from a team as code owners September 6, 2023 11:05
@bwoebi bwoebi requested a review from a team September 6, 2023 11:36
@robertpi robertpi force-pushed the robert/asm/rc-extra-services-tests branch from 4268ef8 to c85ee10 Compare September 7, 2023 12:57
@robertpi robertpi force-pushed the robert/asm/rc-extra-services-tests branch from c85ee10 to c733ca0 Compare September 7, 2023 13:25
@robertpi robertpi merged commit 3556698 into main Sep 7, 2023
@robertpi robertpi deleted the robert/asm/rc-extra-services-tests branch September 7, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants