Skip to content

Commit 338b2e8

Browse files
committed
Revert: restore label_selector (was incorrectly renamed to label_source)
During the selector→source rebrand for route policies, we accidentally renamed 'label_selector' to 'label_source' across the test suite. This was WRONG because: - label_selector is a standard Cloud Controller query parameter for filtering resources by labels/annotations (e.g., ?label_selector=env=prod) - It is used across many endpoints: apps, packages, orgs, buildpacks, etc. - It has nothing to do with route policies or the terminology rebrand - The overly broad sed command caught it by mistake This commit restores label_selector to its correct name, fixing 13+ test failures caused by the regression.
1 parent 83c5b8b commit 338b2e8

34 files changed

Lines changed: 47 additions & 47 deletions

spec/request/apps_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
stacks: 'cf',
608608
include: 'space',
609609
lifecycle_type: 'buildpack',
610-
label_source: 'foo,bar',
610+
label_selector: 'foo,bar',
611611
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
612612
updated_ats: { gt: Time.now.utc.iso8601 }
613613
}

spec/request/buildpacks_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
names: 'foo',
3030
stacks: 'cf',
3131
lifecycle: 'buildpack',
32-
label_source: 'foo,bar',
32+
label_selector: 'foo,bar',
3333
guids: 'foo,bar',
3434
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
3535
updated_ats: { gt: Time.now.utc.iso8601 }

spec/request/builds_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@
410410
guids: '123',
411411
app_guids: '123',
412412
package_guids: '123',
413-
label_source: 'foo,bar',
413+
label_selector: 'foo,bar',
414414
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
415415
updated_ats: { gt: Time.now.utc.iso8601 }
416416
}

spec/request/deployments_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ def json_for_options(deployment)
20772077
status_values: 'foo',
20782078
status_reasons: 'foo',
20792079
app_guids: '123',
2080-
label_source: 'bar',
2080+
label_selector: 'bar',
20812081
guids: 'foo,bar',
20822082
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
20832083
updated_ats: { gt: Time.now.utc.iso8601 }

spec/request/domains_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
names: 'foo,bar',
3232
guids: 'foo,bar',
3333
organization_guids: 'foo,bar',
34-
label_source: 'foo,bar',
34+
label_selector: 'foo,bar',
3535
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
3636
updated_ats: { gt: Time.now.utc.iso8601 }
3737
}

spec/request/droplets_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@
646646
space_guids: 'test',
647647
states: %w[test foo],
648648
organization_guids: 'foo,bar',
649-
label_source: 'foo,bar',
649+
label_selector: 'foo,bar',
650650
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
651651
updated_ats: { gt: Time.now.utc.iso8601 }
652652
}
@@ -674,7 +674,7 @@
674674
current: true,
675675
package_guid: package_model.guid,
676676
states: %w[test foo],
677-
label_source: 'foo,bar',
677+
label_selector: 'foo,bar',
678678
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
679679
updated_ats: { gt: Time.now.utc.iso8601 }
680680
}

spec/request/isolation_segments_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
page: '2',
270270
per_page: '10',
271271
order_by: 'updated_at',
272-
label_source: 'foo,bar',
272+
label_selector: 'foo,bar',
273273
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
274274
updated_ats: { gt: Time.now.utc.iso8601 }
275275
}

spec/request/organizations_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ module VCAP::CloudController
194194
page: '2',
195195
per_page: '10',
196196
order_by: 'updated_at',
197-
label_source: 'foo,bar',
197+
label_selector: 'foo,bar',
198198
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
199199
updated_ats: { gt: Time.now.utc.iso8601 }
200200
}
@@ -1462,7 +1462,7 @@ module VCAP::CloudController
14621462
page: '2',
14631463
per_page: '10',
14641464
order_by: 'updated_at',
1465-
label_source: 'foo,bar',
1465+
label_selector: 'foo,bar',
14661466
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
14671467
updated_ats: { gt: Time.now.utc.iso8601 }
14681468
}
@@ -1488,7 +1488,7 @@ module VCAP::CloudController
14881488
page: '2',
14891489
per_page: '10',
14901490
order_by: 'updated_at',
1491-
label_source: 'foo,bar',
1491+
label_selector: 'foo,bar',
14921492
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
14931493
updated_ats: { gt: Time.now.utc.iso8601 }
14941494
}

spec/request/packages_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@
481481
page: '2',
482482
per_page: '10',
483483
order_by: 'updated_at',
484-
label_source: 'foo,bar',
484+
label_selector: 'foo,bar',
485485
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
486486
updated_ats: { gt: Time.now.utc.iso8601 }
487487
}

spec/request/processes_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
page: '2',
122122
per_page: '10',
123123
order_by: 'updated_at',
124-
label_source: 'foo,bar',
124+
label_selector: 'foo,bar',
125125
created_ats: "#{Time.now.utc.iso8601},#{Time.now.utc.iso8601}",
126126
updated_ats: { gt: Time.now.utc.iso8601 }
127127
}

0 commit comments

Comments
 (0)