Skip to content

Add validation to CredentialSpec configs#2817

Merged
dperny merged 1 commit intomoby:masterfrom
dperny:add-credpsec-validation
Mar 20, 2019
Merged

Add validation to CredentialSpec configs#2817
dperny merged 1 commit intomoby:masterfrom
dperny:add-credpsec-validation

Conversation

@dperny
Copy link
Copy Markdown
Collaborator

@dperny dperny commented Feb 7, 2019

- What I did

Adds validation assuring that if a service uses a Config as a CredentialSpec, then the Config is included in the ConfigRefs with a RuntimeTarget.

- How to test it

Includes a test case, which I verified fails before this change and passes after.

Adds validation assuring that if a service uses a Config as a
CredentialSpec, then the Config is included in the ConfigRefs with a
RuntimeTarget.

Signed-off-by: Drew Erny <drew.erny@docker.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2019

Codecov Report

Merging #2817 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2817      +/-   ##
==========================================
+ Coverage   61.95%   62.02%   +0.06%     
==========================================
  Files         137      137              
  Lines       22107    22123      +16     
==========================================
+ Hits        13696    13721      +25     
+ Misses       6938     6930       -8     
+ Partials     1473     1472       -1

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.

1 participant