File tree 2 files changed +4
-3
lines changed
spec/lib/pact_broker/matrix
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ def find_all selectors
59
59
60
60
def look_up_versions_for_tags ( selectors )
61
61
selectors . collect do | selector |
62
- if selector [ :latest_tag ]
63
- version = version_repository . find_by_pacticpant_name_and_latest_tag ( selector [ :pacticipant_name ] , selector [ :latest_tag ] )
62
+ # resource validation currently stops tag being specified without latest=true
63
+ if selector [ :tag ] && selector [ :latest ]
64
+ version = version_repository . find_by_pacticpant_name_and_latest_tag ( selector [ :pacticipant_name ] , selector [ :tag ] )
64
65
# validation in resource should ensure we always have a version
65
66
{
66
67
pacticipant_name : selector [ :pacticipant_name ] ,
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def build_selectors(hash)
235
235
let ( :selectors ) do
236
236
[
237
237
{ pacticipant_name : "A" , pacticipant_version_number : "1.2.3" } ,
238
- { pacticipant_name : "B" , latest_tag : "prod" }
238
+ { pacticipant_name : "B" , latest : true , tag : "prod" }
239
239
]
240
240
end
241
241
You can’t perform that action at this time.
0 commit comments