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

moduleEnvironment getDynamicGlobalConfiguration ignore OrderedPropertiesConfiguration #13782

Closed
1 task done
JoeCqupt opened this issue Feb 22, 2024 · 0 comments
Closed
1 task done
Labels
type/bug Bugs to being fixed
Milestone

Comments

@JoeCqupt
Copy link
Contributor

JoeCqupt commented Feb 22, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: branch 3.2
  • Operating System version:
$ uname -a
Darwin MacintoshdeMacBook-Pro-2.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64
  • Java version: jdk17

Steps to reproduce this issue

reproduce this issue:

class OrderedPropertiesConfigurationTest {

    @Test
    void testGetPropertyFromOrderedPropertiesConfiguration() {
        FrameworkModel frameworkModel = new FrameworkModel();

        ApplicationModel applicationModel = frameworkModel.newApplication();

        ModuleModel moduleModel = applicationModel.newModule();
        ModuleEnvironment moduleEnvironment = moduleModel.modelEnvironment();

        Configuration configuration = moduleEnvironment.getDynamicGlobalConfiguration();
        // MockOrderedPropertiesProvider2  initProperties
        Assertions.assertEquals("999", configuration.getString("testKey"));
    }
}

Expected Behavior

except get value : 999

Actual Behavior

actual get value : null

@JoeCqupt JoeCqupt added the type/need-triage Need maintainers to triage label Feb 22, 2024
@CrazyHZM CrazyHZM added type/bug Bugs to being fixed and removed type/need-triage Need maintainers to triage labels Feb 29, 2024
@CrazyHZM CrazyHZM added this to the 3.2.12 milestone Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

No branches or pull requests

2 participants