Skip to content

ValidatePortSpec should allow duplicate children#133

Merged
AkihiroSuda merged 1 commit intorootless-containers:masterfrom
tylarb:duplicate_children
Mar 30, 2020
Merged

ValidatePortSpec should allow duplicate children#133
AkihiroSuda merged 1 commit intorootless-containers:masterfrom
tylarb:duplicate_children

Conversation

@tylarb
Copy link
Copy Markdown
Contributor

@tylarb tylarb commented Mar 30, 2020

Previously, any duplicate child port would cause a validation failure,
even if the implementation passed. This commit adjusts the port
validation to handle duplicate child ports.

This commit also adds an extensive test to ValidatePortSpec, which has
pretty significant logic.

Adds github.com/stretchr/testify/assert as a direct dependency,
previously it was indirect.

Resolves #132

Authored-by: Tyler Ramer tyaramer@gmail.com

Previously, any duplicate child port would cause a validation failure,
even if the implementation passed. This commit adjusts the port
validation to handle duplicate child ports.

This commit also adds an extensive test to ValidatePortSpec, which has
pretty significant logic.

Adds github.com/stretchr/testify/assert as a direct dependency,
previously it was indirect.

Resolves rootless-containers#132

Authored-by: Tyler Ramer <tyaramer@gmail.com>
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks!

@AkihiroSuda AkihiroSuda merged commit 1b2ddf1 into rootless-containers:master Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValidatePortSpec should allow duplicated children

2 participants