Skip to content

[Feature]: Add Admin condition-route compatibility tests #3768

Closed

Description

@AsperforMias

What problem would this solve?

The condition-router tests cover parsing and provider selection, but do not tie those checks to the rules and configuration keys written by Dubbo Admin. A valid rule is ineffective if Go listens on a different key, group or path.

We need coverage for Admin's service/application condition routes and its instance disable/enable operation.

Proposed solution (optional)

Use rules produced by the existing Admin condition-route implementation as test fixtures. Cover:

  • Service keys with a non-empty group/version, and application keys where consumer and provider have different application names.
  • The Nacos data ID/group and ZooKeeper path used to load and watch each rule.
  • A rule present before subscription, followed by update, enable/disable and deletion events.
  • Disabling instance A while B remains available, then re-enabling A without removing unrelated conditions. When a forced rule excludes every provider, routing must not fall back to an excluded instance.

Assert which providers are selected through the normal router path. Keep the automated tests self-contained and document a separate RPC reproduction with a real config center. Record the Admin revision used for the fixtures and the results of that run.

Relevant code: Go condition router, existing tests, and Admin instance traffic switches.

The implementation is in #3773, based directly on develop. It can be reviewed independently of the tag-route tests.

Full live acceptance uses the fixes in Admin #1595, #3771 and GOST #155. The Go SDK will also need a GOST version containing the watch fix after it merges. Keep the current application-level discovery model.

Activity

  1. changed the title [-][Feature]: Verify Admin condition routes and instance traffic switches in Go[/-] [+][Feature]: Add Admin condition-route compatibility tests[/+] on Oct 15, 2026
  2. AsperforMias commented on Oct 30, 2026

    @AsperforMias
    ContributorAuthor

    Closed by #3773

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

Metadata

Metadata

Assignees

Labels

3.3.3✏️ Feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions