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

FST[Infra] In WorkloadReplicas getComponentByType() should allow one component of a given type #568

Open
Tracked by #144
deepak-swirlds opened this issue Nov 17, 2023 · 0 comments
Labels
Bug A error that causes the feature to behave differently than what was expected based on design docs Pending Triage New issue that needs to be triaged by the team

Comments

@deepak-swirlds
Copy link
Contributor

Bill of Materials or CLI Version

No response

Execution Environment

JUnit Extensions

Slf4j Logging Implementation

None

To Reproduce

na

Describe the bug

In com.hedera.fullstack.infrastructure.api.model.WorkloadReplicas

" return (C) components.stream()
.filter(componentType::isInstance)
.findFirst()
.get();
"

Comment s by @[nathanklick]

Is this behavior correct to only return the first component of the given type even if there are multiple matches? Should we permit multiple components of the same type within a single workload replica?

Describe the expected behavior

multiple components of the same type workload replica should not be permitted

Whole JUnit/CLI Logs

na

Additional Context

No response

@deepak-swirlds deepak-swirlds added Bug A error that causes the feature to behave differently than what was expected based on design docs Pending Triage New issue that needs to be triaged by the team labels Nov 17, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in FST Suite Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A error that causes the feature to behave differently than what was expected based on design docs Pending Triage New issue that needs to be triaged by the team
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant