source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/space_user_roles_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,156
require 'spec_helper' require 'fetchers/space_user_roles_fetcher' module VCAP::CloudController RSpec.describe SpaceUserRolesFetcher do describe '#fetch' do let(:org) { Organization.make } let(:space) { Space.make(organization: org) } let(:everything_user) { User.make } let(:manager) { Use...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/app_revisions_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,847
require 'spec_helper' require 'fetchers/app_revisions_list_fetcher' module VCAP::CloudController RSpec.describe AppRevisionsListFetcher do let(:fetcher) { AppRevisionsListFetcher } let!(:app) { AppModel.make } let(:expired_droplet) { DropletModel.make(:droplet, app: app, state: DropletModel::EXPIRED_STA...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/role_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
3,547
require 'spec_helper' require 'fetchers/role_list_fetcher' module VCAP::CloudController RSpec.describe RoleListFetcher do describe '#fetch' do subject { RoleListFetcher.fetch(message, Role.dataset) } let!(:user1) { User.make } let!(:user2) { User.make } let!(:org_1) { Organization.make }...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/organization_user_roles_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,570
require 'spec_helper' require 'fetchers/organization_user_roles_fetcher' module VCAP::CloudController RSpec.describe OrganizationUserRolesFetcher do describe '#fetch' do let(:org) { Organization.make } let(:everything_user) { User.make } let(:manager) { User.make } let(:auditor) { User.ma...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/global_usage_summary_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,814
require 'spec_helper' module VCAP::CloudController RSpec.describe GlobalUsageSummaryFetcher do subject(:fetcher) { GlobalUsageSummaryFetcher } describe '.summary' do before do router_group = double('router_group', type: 'tcp', reservable_ports: [8080]) routing_api_client = double('rout...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/service_binding_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,485
require 'spec_helper' require 'fetchers/service_binding_list_fetcher' module VCAP::CloudController RSpec.describe ServiceBindingListFetcher do let(:fetcher) { ServiceBindingListFetcher } describe '#fetch_service_instance_bindings_in_space' do let(:space) { Space.make } let(:service_instance) { S...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/build_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
8,297
require 'spec_helper' require 'messages/builds_list_message' require 'fetchers/build_list_fetcher' module VCAP::CloudController RSpec.describe BuildListFetcher do let(:space1) { Space.make } let(:space2) { Space.make } let(:space3) { Space.make } let(:org_1_guid) { space1.organization.guid } let(...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/organization_quota_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,704
require 'spec_helper' require 'fetchers/organization_quota_list_fetcher' require 'messages/organization_quotas_list_message' module VCAP::CloudController RSpec.describe OrganizationQuotaListFetcher do let(:default_quota) { VCAP::CloudController::QuotaDefinition.default } let!(:quota1) { QuotaDefinition.make(...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/security_group_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,643
require 'spec_helper' require 'fetchers/security_group_fetcher' module VCAP::CloudController RSpec.describe SecurityGroupFetcher do let(:fetcher) { SecurityGroupFetcher } let!(:security_group_1) { SecurityGroup.make } let!(:security_group_2) { SecurityGroup.make } let(:associated_space) { Space.make ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/process_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
6,328
require 'spec_helper' require 'fetchers/process_list_fetcher' module VCAP::CloudController RSpec.describe ProcessListFetcher do let(:pagination_options) { PaginationOptions.new({}) } let(:message) { ProcessesListMessage.from_params(filters) } let(:eager_loaded_associations) { [] } let(:filters) { {} ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/base_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
12,636
require 'spec_helper' require 'messages/events_list_message' require 'fetchers/event_list_fetcher' module VCAP::CloudController RSpec.describe BaseListFetcher do subject { BaseListFetcher.filter(message, Event.dataset, Event) } let(:pagination_options) { PaginationOptions.new({}) } let(:message) { Events...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/app_builds_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,408
require 'spec_helper' require 'messages/builds_list_message' require 'fetchers/app_builds_list_fetcher' module VCAP::CloudController RSpec.describe AppBuildsListFetcher do let(:subject) { AppBuildsListFetcher.fetch_all(app_guid, message) } let(:space1) { Space.make } let(:space2) { Space.make } let(:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/domain_fetcher_spec.rb
Ruby
apache-2.0
203
main
10,581
require 'spec_helper' require 'messages/domains_list_message' require 'messages/domain_show_message' require 'fetchers/domain_fetcher' module VCAP::CloudController RSpec.describe DomainFetcher do describe '#fetch_all_for_orgs' do before do Domain.dataset.destroy org3.add_private_domain(priv...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/user_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
3,469
require 'spec_helper' require 'fetchers/user_list_fetcher' module VCAP::CloudController RSpec.describe UserListFetcher do describe '#fetch_all' do subject { UserListFetcher.fetch_all(message, User.dataset) } let!(:user1) { User.make } let!(:user2) { User.make } let(:message) { UsersListM...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/isolation_segment_spaces_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,611
require 'spec_helper' require 'fetchers/isolation_segment_spaces_fetcher' module VCAP::CloudController RSpec.describe IsolationSegmentSpacesFetcher do subject(:fetcher) { IsolationSegmentSpacesFetcher.new(isolation_segment_model) } let!(:isolation_segment_model) { VCAP::CloudController::IsolationSegmentMode...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/buildpack_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
3,446
require 'spec_helper' require 'fetchers/buildpack_list_fetcher' module VCAP::CloudController RSpec.describe BuildpackListFetcher do let(:fetcher) { BuildpackListFetcher } describe '#fetch_all' do let!(:stack1) { Stack.make } let!(:stack2) { Stack.make } let!(:stack3) { Stack.make } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/buildpack_lifecycle_fetcher_spec.rb
Ruby
apache-2.0
203
main
3,276
require 'spec_helper' require 'fetchers/buildpack_lifecycle_fetcher' module VCAP::CloudController RSpec.describe BuildpackLifecycleFetcher do let(:fetcher) { BuildpackLifecycleFetcher.new } describe '#fetch' do let!(:stack) { Stack.make } let!(:stack2) { Stack.make } let!(:buildpack) { Bu...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/service_credential_binding_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
10,943
require 'db_spec_helper' require 'fetchers/service_credential_binding_list_fetcher' require 'messages/service_credential_binding_list_message' require 'fetchers/label_selector_query_generator' module VCAP module CloudController RSpec.describe ServiceCredentialBindingListFetcher do let(:params) { {} } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/app_fetcher_spec.rb
Ruby
apache-2.0
203
main
692
require 'spec_helper' require 'fetchers/app_fetcher' module VCAP::CloudController RSpec.describe AppFetcher do describe '#fetch' do let(:app) { AppModel.make } let(:space) { app.space } it 'returns the desired app and space' do returned_app, returned_space = AppFetcher.new.fetch(app.gu...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/event_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,627
require 'spec_helper' require 'messages/events_list_message' require 'fetchers/event_list_fetcher' module VCAP::CloudController RSpec.describe EventListFetcher do subject { EventListFetcher.fetch_all(message, Event.dataset) } let(:pagination_options) { PaginationOptions.new({}) } let(:message) { EventsLi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/security_group_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
4,263
require 'spec_helper' require 'messages/security_group_list_message' require 'models/runtime/security_group' require 'fetchers/security_group_list_fetcher' module VCAP::CloudController RSpec.describe SecurityGroupListFetcher do let(:fetcher) { SecurityGroupListFetcher } let(:message) { SecurityGroupListMessa...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/org_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
8,363
require 'spec_helper' require 'messages/orgs_list_message' require 'fetchers/org_list_fetcher' module VCAP::CloudController RSpec.describe OrgListFetcher do let!(:org1) { Organization.make(name: 'Marmot') } let!(:org2) { Organization.make(name: 'Rat') } let!(:org3) { Organization.make(name: 'Beaver') } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/isolation_segment_organizations_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,559
require 'spec_helper' require 'fetchers/isolation_segment_organizations_fetcher' module VCAP::CloudController RSpec.describe IsolationSegmentOrganizationsFetcher do subject(:fetcher) { IsolationSegmentOrganizationsFetcher.new(isolation_segment_model) } let!(:isolation_segment_model) { VCAP::CloudController:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/log_access_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,816
require 'spec_helper' require 'fetchers/log_access_fetcher' module VCAP::CloudController RSpec.describe LogAccessFetcher do let(:space) { Space.make } let(:process) { AppModel.make(space_guid: space.guid) } let(:sad_process) { AppModel.make } let(:org) { space.organization } let(:fetcher) { LogAc...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/task_fetcher_spec.rb
Ruby
apache-2.0
203
main
1,484
require 'spec_helper' module VCAP::CloudController RSpec.describe TaskFetcher do subject(:fetcher) { TaskFetcher.new } let(:app) { AppModel.make(space_guid: space.guid) } let(:space) { Space.make } let(:task) { TaskModel.make(app_guid: app.guid) } describe '#fetch_for_app' do it 'fetches t...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/service_usage_event_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,443
require 'db_spec_helper' require 'messages/service_usage_events_list_message' require 'fetchers/service_usage_event_list_fetcher' module VCAP::CloudController RSpec.describe ServiceUsageEventListFetcher do subject { ServiceUsageEventListFetcher.fetch_all(message, ServiceUsageEvent.dataset) } let(:message) { ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/null_filter_query_generator_spec.rb
Ruby
apache-2.0
203
main
1,703
require 'spec_helper' module VCAP::CloudController RSpec.describe NullFilterQueryGenerator do subject(:filter_generator) { NullFilterQueryGenerator } describe '.add_filter' do let!(:stack1) { Stack.make } let!(:stack2) { Stack.make } let!(:stack3) { Stack.make } let!(:buildpack_with...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/stack_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
2,278
require 'spec_helper' require 'fetchers/stack_list_fetcher' module VCAP::CloudController RSpec.describe StackListFetcher do let(:stack_config_file) { File.join(Paths::FIXTURES, 'config/stacks.yml') } let(:default_stack_name) { 'default-stack-name' } let(:fetcher) { StackListFetcher } before { VCAP::...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/app_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
9,072
require 'spec_helper' require 'messages/apps_list_message' module VCAP::CloudController RSpec.describe AppListFetcher do subject { AppListFetcher.fetch_all(message) } let!(:stack) { Stack.make } let(:space) { Space.make(guid: 'main-space') } let!(:app) { AppModel.make(space_guid: space.guid, name: 'a...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/droplet_fetcher_spec.rb
Ruby
apache-2.0
203
main
448
require 'spec_helper' require 'fetchers/droplet_fetcher' module VCAP::CloudController RSpec.describe DropletFetcher do describe '#fetch' do let!(:droplet) { DropletModel.make } let(:space) { droplet.space } subject(:droplet_delete_fetcher) { DropletFetcher.new } it 'returns the droplet ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/route_binding_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
7,200
require 'spec_helper' require 'messages/service_route_bindings_list_message' module VCAP module CloudController RSpec.describe RouteBindingListFetcher do let(:fetcher) { described_class } describe 'fetch_all' do let!(:route_bindings) { Array.new(3) { RouteBinding.make } } it 'return...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/space_fetcher_spec.rb
Ruby
apache-2.0
203
main
557
require 'db_spec_helper' require 'fetchers/space_fetcher' module VCAP::CloudController RSpec.describe SpaceFetcher do describe '#fetch' do let(:space) { Space.make } it 'returns the desired space' do returned_space = SpaceFetcher.new.fetch(space.guid) expect(returned_space).to eq(spa...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/service_offering_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
24,346
require 'db_spec_helper' require 'fetchers/service_offering_list_fetcher' require 'messages/service_offerings_list_message' module VCAP::CloudController RSpec.describe ServiceOfferingListFetcher do let(:message) { ServiceOfferingsListMessage.from_params({}) } let(:fetcher) { described_class } describe '...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/droplet_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
12,489
require 'spec_helper' require 'messages/droplets_list_message' require 'fetchers/droplet_list_fetcher' module VCAP::CloudController RSpec.describe DropletListFetcher do subject(:fetcher) { DropletListFetcher } let(:pagination_options) { PaginationOptions.new({}) } let(:message) { DropletsListMessage.from...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/task_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
10,344
require 'spec_helper' module VCAP::CloudController RSpec.describe TaskListFetcher do let(:space1) { Space.make } let(:app_in_space1) { AppModel.make(space_guid: space1.guid) } let(:app2_in_space1) { AppModel.make(space_guid: space1.guid) } let!(:task_in_space1) { TaskModel.make(app_guid: app_in_spac...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/service_broker_list_fetcher_spec.rb
Ruby
apache-2.0
203
main
6,655
require 'db_spec_helper' require 'fetchers/service_broker_list_fetcher' require 'messages/service_brokers_list_message' module VCAP::CloudController RSpec.describe ServiceBrokerListFetcher do describe '#fetch' do let(:broker) { ServiceBroker.make } let(:space_1) { Space.make } let(:space_scope...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/queries/route_mapping_query_spec.rb
Ruby
apache-2.0
203
main
3,627
require 'spec_helper' require 'fetchers/queries/route_mapping_query' module VCAP::RestAPI RSpec.describe RouteMappingQuery do let(:queryable_attributes) { %w[app_guid] } describe 'filtering by app_guid' do context 'equals operation (:)' do it 'works with a single app guid' do app_gui...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/fetchers/queries/app_query_spec.rb
Ruby
apache-2.0
203
main
4,135
require 'spec_helper' require 'fetchers/queries/app_query' module VCAP::RestAPI RSpec.describe AppQuery do let(:queryable_attributes) { %w[organization_guid stack_guid name] } describe 'filtering by organization_guid' do it 'works for equals' do expected_process = VCAP::CloudController::Proces...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/mappers/order_by_mapper_spec.rb
Ruby
apache-2.0
203
main
1,983
require 'spec_helper' require 'mappers/order_by_mapper' module VCAP::CloudController RSpec.describe OrderByMapper do describe '#from-param' do let(:order_by) { 'name' } it 'returns the modifed order_by and order_direction "nil"' do expect(OrderByMapper.from_param(order_by)).to eq(['name', ni...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/tasks/stack_check_spec.rb
Ruby
apache-2.0
203
main
1,870
require 'spec_helper' require 'tasks/rake_config' require 'cloud_controller/check_stacks' RSpec.describe 'stack_check' do let(:stack_file_contents) do { 'default' => 'cflinuxfs4', 'stacks' => [ cflinuxfs4 ], 'deprecated_stacks' => ['cflinuxfs3'] } end let(:cflinuxfs4) { {...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/tasks/db_spec.rb
Ruby
apache-2.0
203
main
2,946
require 'spec_helper' require 'tasks/rake_config' RSpec.describe 'db.rake', type: :migration do let(:db_migrator) { instance_double(DBMigrator) } describe ':migrate' do let(:stdout_sink_enabled) { true } let(:logging_config) do { logging: { stdout_sink_enabled: stdout_sink_enabled,...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/match_requires_with_includes_spec.rb
Ruby
apache-2.0
203
main
2,476
require 'spec_helper' require 'rubocop' require 'rubocop/rspec/cop_helper' require 'rubocop/config' require 'linters/match_requires_with_includes' RSpec.describe RuboCop::Cop::MatchRequiresWithIncludes do include CopHelper subject(:cop) { RuboCop::Cop::MatchRequiresWithIncludes.new(RuboCop::Config.new({})) } l...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/prefer_oj_over_other_json_libraries_spec.rb
Ruby
apache-2.0
203
main
2,423
require 'spec_helper' require 'rubocop' require 'rubocop/rspec/cop_helper' require 'rubocop/config' require 'linters/prefer_oj_over_other_json_libraries' RSpec.describe RuboCop::Cop::PreferOjOverOtherJsonLibraries do include CopHelper subject(:cop) { RuboCop::Cop::PreferOjOverOtherJsonLibraries.new(RuboCop::Confi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/match_requires_with_includes.rb
Ruby
apache-2.0
203
main
1,140
module RuboCop module Cop class MatchRequiresWithIncludes < RuboCop::Cop::Base REQ_FOR_INCLUDES = { 'VCAP::CloudController::Presenters::Mixins::MetadataPresentationHelpers' => 'presenters/mixins/metadata_presentation_helpers', 'SubResource' => 'controllers/v3/mixins/sub_resource' ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/prefer_oj_over_other_json_libraries.rb
Ruby
apache-2.0
203
main
922
module RuboCop module Cop class PreferOjOverOtherJsonLibraries < RuboCop::Cop::Base MSG = 'Avoid using `%s`, prefer `Oj` instead'.freeze def_node_matcher :other_json_lib?, <<-PATTERN (send # send node { $(const nil? {:MultiJs...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/require_primary_key_spec.rb
Ruby
apache-2.0
203
main
1,348
require 'spec_helper' require 'rubocop' require 'rubocop/rspec/cop_helper' require 'rubocop/config' require 'linters/migration/require_primary_key' RSpec.describe RuboCop::Cop::Migration::RequirePrimaryKey do include CopHelper subject(:cop) { RuboCop::Cop::Migration::RequirePrimaryKey.new(RuboCop::Config.new({}))...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/too_many_migration_runs.rb
Ruby
apache-2.0
203
main
4,602
module RuboCop module Cop module Migration class TooManyMigrationRuns < Base def on_new_investigation return unless processed_source.ast definitions = extract_migrator_definitions call_count = count_migrator_calls(definitions) return unless call_count > 4 ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/include_string_size_spec.rb
Ruby
apache-2.0
203
main
4,111
require 'spec_helper' require 'rubocop' require 'rubocop/rspec/cop_helper' require 'rubocop/config' require 'linters/migration/include_string_size' RSpec.describe RuboCop::Cop::Migration::IncludeStringSize do include CopHelper subject(:cop) { RuboCop::Cop::Migration::IncludeStringSize.new(RuboCop::Config.new({}))...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/require_primary_key.rb
Ruby
apache-2.0
203
main
1,192
module RuboCop module Cop module Migration class RequirePrimaryKey < RuboCop::Cop::Base # Require all newly created tables to have a primary key defined TABLE_CREATE_METHODS = %i[ create_table ].freeze PRIMARY_KEY_WARNING = 'Please include a call to primary_key when...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/too_many_migration_runs_spec.rb
Ruby
apache-2.0
203
main
3,638
require 'rubocop' require 'rubocop/rspec/cop_helper' require 'rubocop/config' require 'linters/migration/too_many_migration_runs' RSpec.describe RuboCop::Cop::Migration::TooManyMigrationRuns do include CopHelper subject(:cop) { described_class.new(RuboCop::Config.new({})) } def migration_call(target) "Sequ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/include_string_size.rb
Ruby
apache-2.0
203
main
2,280
module RuboCop module Cop module Migration class IncludeStringSize < RuboCop::Cop::Base # Postgres and MySQL have different size limits on String and TEXT fields # MySQL: `String` is `varchar(255)`, `String, text: true` has a max size of 16_000 for UTF8 encoded DBs # Postgres: `Strin...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/add_constraint_name_spec.rb
Ruby
apache-2.0
203
main
6,544
require 'spec_helper' require 'rubocop' require 'rubocop/rspec/cop_helper' require 'rubocop/config' require 'linters/migration/add_constraint_name' RSpec.describe RuboCop::Cop::Migration::AddConstraintName do include CopHelper subject(:cop) { RuboCop::Cop::Migration::AddConstraintName.new(RuboCop::Config.new({}))...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/linters/migration/add_constraint_name.rb
Ruby
apache-2.0
203
main
3,376
module RuboCop module Cop module Migration class AddConstraintName < RuboCop::Cop::Base # Postgres and MySQL have different naming conventions, so if we need to remove them we cannot predict accurately what the constraint name would be. MSG = 'Please explicitly name your index or constraint....
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/messages/nested_message_validator_spec.rb
Ruby
apache-2.0
203
main
1,842
require 'spec_helper' require_relative '../../app/messages/nested_message_validator' module VCAP::CloudController class IncompleteValidator < NestedMessageValidator end class CompleteValidator < NestedMessageValidator validates :invalid_message, presence: true, allow_nil: false def invalid_message ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/diego/client_spec.rb
Ruby
apache-2.0
203
main
36,814
require 'spec_helper' require 'diego/client' module Diego RSpec.describe Client do let(:bbs_host) { 'bbs.example.com' } let(:bbs_port) { 4443 } let(:bbs_url) { "https://#{bbs_host}:#{bbs_port}" } let(:ca_cert_file) { File.join(Paths::FIXTURES, 'certs/bbs_ca.crt') } let(:client_cert_file) { File.j...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/diego/action_builder_spec.rb
Ruby
apache-2.0
203
main
5,958
require 'spec_helper' require 'diego/action_builder' module Diego RSpec.describe ActionBuilder do describe 'action_type' do it 'knows timeout action' do expect(ActionBuilder.action_type(Bbs::Models::TimeoutAction.new)).to eq(:timeout_action) end it 'knows download action' do ex...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20191218001034_fill_guid_and_timestamps_for_organizations_users_spec.rb
Ruby
apache-2.0
203
main
1,592
require 'spec_helper' RSpec.describe 'fill role_guid and timestamps for organizations_users table', isolation: :truncation, type: :migration do let(:role_table) { :organizations_users } let(:filename) { '20191218001034_fill_guid_and_timestamps_for_organizations_users.rb' } let(:db) { Sequel::Model.db } let(:u...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250603103400_bigint_migration_events_step3a_spec.rb
Ruby
apache-2.0
203
main
746
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - events table - step3a', isolation: :truncation, type: :migration do include_context 'bigint migration step3a' do let(:migration_filename_step1) { '20250327142351_bigint_migration_events_ste...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20241203085500_add_apps_file_based_service_bindings_enabled_column_spec.rb
Ruby
apache-2.0
203
main
1,543
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add file_based_service_bindings_enabled column to apps table', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20241203085500_add_apps_file_based_service...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240529195136_add_task_guid_index_to_app_usage_events_spec.rb
Ruby
apache-2.0
203
main
1,758
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add an index for task_guid on app_usage_events table', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20240529195136_add_task_guid_index_to_app_usage_ev...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20241016118000_drop_unique_constraint_quota_definitions_name_key_spec.rb
Ruby
apache-2.0
203
main
3,338
# rubocop:disable Migration/TooManyMigrationRuns require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add or remove unique constraint on name column in quota_definitions table', isolation: :truncation, type: :migration do include_context 'migration' do let(:mig...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20191218001019_fill_guid_and_timestamps_for_organizations_auditors_spec.rb
Ruby
apache-2.0
203
main
1,604
require 'spec_helper' RSpec.describe 'fill role_guid and timestamps for organizations_auditors table', isolation: :truncation, type: :migration do let(:role_table) { :organizations_auditors } let(:filename) { '20191218001019_fill_guid_and_timestamps_for_organizations_auditors.rb' } let(:db) { Sequel::Model.db }...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250630170610_add_user_to_tasks_spec.rb
Ruby
apache-2.0
203
main
1,436
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add user column to tasks table', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20250630170610_add_user_to_tasks.rb' } end describe 'tasks table' d...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20251016120006_security_groups_spaces_unique_index_spec.rb
Ruby
apache-2.0
203
main
4,057
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'security groups spaces unique index', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20251016120006_security_groups_spaces_unique_index_spec.rb' } end let(:spac...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240102150000_add_annotation_label_uniqueness_spec.rb
Ruby
apache-2.0
203
main
10,407
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add unique constraint to annotation and labels', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20240102150000_add_annotation_label_uniqueness.rb' } en...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250603103500_bigint_migration_events_step3b_spec.rb
Ruby
apache-2.0
203
main
837
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - events table - step3b', isolation: :truncation, type: :migration do include_context 'bigint migration step3b' do let(:migration_filename_step1) { '20250327142351_bigint_migration_events_ste...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/ensure_migrations_are_current_spec.rb
Ruby
apache-2.0
203
main
383
require 'spec_helper' require 'tasks/rake_config' RSpec.describe 'ensure migrations are current', isolation: :truncation, type: :migration do before do allow(RakeConfig).to receive(:config).and_return(TestConfig.config_instance) end it 'runs the rake task successfully' do expect { Rake::Task['db:ensure_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250729143000_bigint_migration_app_usage_events_step1_spec.rb
Ruby
apache-2.0
203
main
830
require 'spec_helper' require 'migrations/helpers/bigint_migration_step1_shared_context' RSpec.describe 'bigint migration - app_usage_events table - step1', isolation: :truncation, type: :migration do include_context 'bigint migration step1' do let(:migration_filename) { '20250729143000_bigint_migration_app_usag...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250930135548_bigint_migration_app_usage_events_step3a_spec.rb
Ruby
apache-2.0
203
main
999
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - app_usage_events table - step3a', isolation: :truncation, type: :migration do include_context 'bigint migration step3a' do let(:migration_filename_step1) { '20250729143000_bigint_migration_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240314131908_add_user_guid_to_jobs_table_spec.rb
Ruby
apache-2.0
203
main
1,991
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add user_guid column to jobs table and add an index for that column', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20240314131908_add_user_guid_to_job...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20251028135214_route_bindings_unique_index_spec.rb
Ruby
apache-2.0
203
main
4,173
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'route bindings unique index', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20251028135214_route_bindings_unique_index.rb' } end let(:space) { VCAP::CloudContr...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250729143100_bigint_migration_service_usage_events_step1_spec.rb
Ruby
apache-2.0
203
main
867
require 'spec_helper' require 'migrations/helpers/bigint_migration_step1_shared_context' RSpec.describe 'bigint migration - service_usage_events table - step1', isolation: :truncation, type: :migration do include_context 'bigint migration step1' do let(:migration_filename) { '20250729143100_bigint_migration_serv...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240115163000_add_delete_cascade_to_foreign_keys_spec.rb
Ruby
apache-2.0
203
main
2,037
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add delete cascade to foreign keys', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20240115163000_add_delete_cascade_to_foreign_keys.rb' } end des...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240820070742_add_jobs_user_guid_state_index_spec.rb
Ruby
apache-2.0
203
main
2,303
require 'spec_helper' require 'migrations/helpers/migration_shared_context' def partial_index_present # partial indexes are not returned in `db.indexes`. That's why we have to query this information manually. partial_indexes = db.fetch("SELECT * FROM pg_indexes WHERE tablename = 'jobs' AND indexname = 'jobs_user_g...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240219113000_add_routes_space_id_index_spec.rb
Ruby
apache-2.0
203
main
446
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add the routes_space_id index', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20240219113000_add_routes_space_id_index.rb' } end it 'succeeds' do ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250116144231_remove_unnecessary_fk_in_job_warnings_spec.rb
Ruby
apache-2.0
203
main
989
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe "migration to remove foreign key constraint on table 'job_warnings' and column 'fk_jobs_id'", isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20250116144231_remove_unn...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250930135451_bigint_migration_delayed_jobs_step3a_spec.rb
Ruby
apache-2.0
203
main
656
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - delayed jobs table - step3a', isolation: :truncation, type: :migration do include_context 'bigint migration step3a' do let(:migration_filename_step1) { '20250729142800_bigint_migration_dela...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20251121174647_add_broker_provided_metadata_to_service_instances_spec.rb
Ruby
apache-2.0
203
main
2,631
# Migration test for adding broker_provided_metadata column to service_instances table # # This test verifies that the migration correctly adds the broker_provided_metadata # column to the service_instances table with the correct properties (text type, nullable). require 'spec_helper' require 'migrations/helpers/migra...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20240222131500_change_delayed_jobs_reserve_index_spec.rb
Ruby
apache-2.0
203
main
462
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to change the delayed_jobs_reserve index', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20240222131500_change_delayed_jobs_reserve_index.rb' } end i...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20251015071027_allow_multiple_service_bindings_spec.rb
Ruby
apache-2.0
203
main
2,878
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to allow multiple service bindings', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20251015071027_allow_multiple_service_bindings.rb' } end describe ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20191218001015_fill_guid_and_timestamps_for_spaces_developers_spec.rb
Ruby
apache-2.0
203
main
1,542
require 'spec_helper' RSpec.describe 'fill role_guid and timestamps for spaces_developers table', isolation: :truncation, type: :migration do let(:role_table) { :spaces_developers } let(:filename) { '20191218001015_fill_guid_and_timestamps_for_spaces_developers.rb' } let(:db) { Sequel::Model.db } let(:user) {...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250729142900_bigint_migration_jobs_step1_spec.rb
Ruby
apache-2.0
203
main
462
require 'spec_helper' require 'migrations/helpers/bigint_migration_step1_shared_context' RSpec.describe 'bigint migration - jobs table - step1', isolation: :truncation, type: :migration do include_context 'bigint migration step1' do let(:migration_filename) { '20250729142900_bigint_migration_jobs_step1.rb' } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20231221123000_rename_annotations_key_column_spec.rb
Ruby
apache-2.0
203
main
1,454
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to streamline changes to annotation_key_prefix', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20231221123000_rename_annotations_key_column.rb' } end ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20191218001006_fill_guid_and_timestamps_for_spaces_auditors_spec.rb
Ruby
apache-2.0
203
main
1,534
require 'spec_helper' RSpec.describe 'fill role_guid and timestamps for spaces_auditors table', isolation: :truncation, type: :migration do let(:role_table) { :spaces_auditors } let(:filename) { '20191218001006_fill_guid_and_timestamps_for_spaces_auditors.rb' } let(:db) { Sequel::Model.db } let(:user) { VCAP:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20251117123719_add_state_to_stacks_spec.rb
Ruby
apache-2.0
203
main
2,250
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add state column to stacks table', isolation: :truncation, type: :migration do subject(:run_migration) { Sequel::Migrator.run(db, migrations_path, target: current_migration_index, allow_missing_migration_files: t...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250930135527_bigint_migration_jobs_step3b_spec.rb
Ruby
apache-2.0
203
main
700
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - jobs table - step3b', isolation: :truncation, type: :migration do include_context 'bigint migration step3b' do let(:migration_filename_step1) { '20250729142900_bigint_migration_jobs_step1.r...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250930135619_bigint_migration_service_usage_events_step3b_spec.rb
Ruby
apache-2.0
203
main
1,155
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - service_usage_events table - step3b', isolation: :truncation, type: :migration do include_context 'bigint migration step3b' do let(:migration_filename_step1) { '20250729143100_bigint_migrat...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20260324120000_add_composite_indexes_to_events_spec.rb
Ruby
apache-2.0
203
main
3,054
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add composite indexes to events table', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20260324120000_add_composite_indexes_to_events.rb' } end des...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250729142800_bigint_migration_delayed_jobs_step1_spec.rb
Ruby
apache-2.0
203
main
494
require 'spec_helper' require 'migrations/helpers/bigint_migration_step1_shared_context' RSpec.describe 'bigint migration - delayed_jobs table - step1', isolation: :truncation, type: :migration do include_context 'bigint migration step1' do let(:migration_filename) { '20250729142800_bigint_migration_delayed_jobs...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20260320141005_add_unique_constraint_to_revision_sidecars_spec.rb
Ruby
apache-2.0
203
main
2,167
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'add unique constraint to revision sidecar types', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20260320141005_add_unique_constraint_to_revision_sidecars.rb' } end...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/migration_logs_spec.rb
Ruby
apache-2.0
203
main
1,235
require 'spec_helper' RSpec.describe 'migration logs', isolation: :truncation, type: :migration do let(:db) { Sequel::Model.db } let(:tmp_migrations_dir) { Dir.mktmpdir } let(:logger) { instance_double(Steno::Logger) } before do long_time_migration = <<-MIGRATION Sequel.migration do up do ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20260323092954_add_unique_constraint_to_sidecars_spec.rb
Ruby
apache-2.0
203
main
1,914
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'add unique constraint to sidecars', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20260323092954_add_unique_constraint_to_sidecars.rb' } end let!(:app) { VCAP::...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250610212414_add_user_to_processes_spec.rb
Ruby
apache-2.0
203
main
1,468
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add user column to processes table', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20250610212414_add_user_to_processes.rb' } end describe 'proces...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250225132929_add_apps_file_based_service_binding_feature_columns_spec.rb
Ruby
apache-2.0
203
main
3,878
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to add file-based service binding feature columns to apps table', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20250225132929_add_apps_file_based_service...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250930135554_bigint_migration_app_usage_events_step3b_spec.rb
Ruby
apache-2.0
203
main
1,100
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - app_usage_events table - step3b', isolation: :truncation, type: :migration do include_context 'bigint migration step3b' do let(:migration_filename_step1) { '20250729143000_bigint_migration_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20231205143526_remove_deployments_with_degenerate_spec.rb
Ruby
apache-2.0
203
main
2,362
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'migration to clean up degenerate records from deployments records', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20231205143526_remove_deployments_with_degenerate....
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20220818142407_add_unique_index_to_service_instance_operations_service_instance_id_spec.rb
Ruby
apache-2.0
203
main
3,353
require 'spec_helper' RSpec.describe 'migration to add unique index on service_instance_id to service_instance_operations', isolation: :truncation, type: :migration do let(:filename) { '20220818142407_add_unique_index_to_service_instance_operations_service_instance_id.rb' } let(:tmp_migrations_dir) { Dir.mktmpdir ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20250729143100_bigint_migration_service_usage_events_step3a_spec.rb
Ruby
apache-2.0
203
main
1,050
require 'spec_helper' require 'migrations/helpers/bigint_migration_step3_shared_context' RSpec.describe 'bigint migration - service_usage_events table - step3a', isolation: :truncation, type: :migration do include_context 'bigint migration step3a' do let(:migration_filename_step1) { '20250729143100_bigint_migrat...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20190712210940_backfill_status_for_deployments_spec.rb
Ruby
apache-2.0
203
main
5,535
require 'spec_helper' RSpec.describe 'backfill status_value for deployments', isolation: :truncation, type: :migration do let(:tmp_migrations_dir) { Dir.mktmpdir } before do FileUtils.cp( File.join(DBMigrator::SEQUEL_MIGRATIONS, '20190712210940_backfill_status_for_deployments.rb'), tmp_migrations_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/migrations/20251030100000_add_unique_constraint_to_sidecar_process_types_spec.rb
Ruby
apache-2.0
203
main
4,903
require 'spec_helper' require 'migrations/helpers/migration_shared_context' RSpec.describe 'add unique constraint to sidecar process types', isolation: :truncation, type: :migration do include_context 'migration' do let(:migration_filename) { '20251030100000_add_unique_constraint_to_sidecar_process_types.rb' } ...