Skip to content

fix: rename ambiguous listener step in load balancer e2e tests#274

Open
qubeena07 wants to merge 1 commit into
oracle:mainfrom
qubeena07:169-fix-ambiguous-step-definition
Open

fix: rename ambiguous listener step in load balancer e2e tests#274
qubeena07 wants to merge 1 commit into
oracle:mainfrom
qubeena07:169-fix-ambiguous-step-definition

Conversation

@qubeena07
Copy link
Copy Markdown

Summary

Fixes #169

The step definition the response should contain a list of listeners in the load balancer step file was too generic. When Behave loads all step files globally before running any scenario, a step with the same or similarly matched text in another server test file would cause an AmbiguousStep error and block the entire test suite from starting.

Renamed the step to the response should contain a list of load balancer listeners to make it specific to the load balancer service. The matching line in the feature file was updated as well to keep things consistent.

The network load balancer step file already uses the response should contain a list of network load balancer listeners so both are now clearly scoped to their respective services.

Changes

Updated tests/e2e/features/steps/oci-load-balancer-mcp-server-steps.py to use the service specific step name.

Updated the commented scenario line in tests/e2e/features/oci-load-balancer-mcp-server.feature to match.

Test plan

  • Confirm Behave step registry loads without raising AmbiguousStep
  • Confirm no other feature files or step files reference the old generic step text

The step definition "the response should contain a list of listeners"
was too generic and could conflict with step definitions in other
server test files. Renamed it to "the response should contain a list
of load balancer listeners" to make it service specific.

The matching commented scenario in the feature file was also updated
to stay consistent with the new step name.

Fixes oracle#169

Signed-off-by: Dipika Ranabhat <dipikaranabhat@Mac.hitronhub.home>
@oracle-contributor-agreement
Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Behave e2e suite fails to start due to duplicate @then("the response should contain a list of listeners") step definition

1 participant