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/models/services/service_plan_spec.rb
Ruby
apache-2.0
203
main
19,814
require 'spec_helper' module VCAP::CloudController RSpec.describe ServicePlan, type: :model do it { is_expected.to have_timestamp_columns } describe 'Associations' do it { is_expected.to have_associated :service } it { is_expected.to have_associated :service_instances, class: ManagedServiceInsta...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/service_key_operation_spec.rb
Ruby
apache-2.0
203
main
200
require 'spec_helper' require 'support/shared_examples/models/operations' module VCAP::CloudController RSpec.describe ServiceKeyOperation, type: :model do it_behaves_like 'operation' end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/managed_service_instance_spec.rb
Ruby
apache-2.0
203
main
23,324
require 'spec_helper' require_relative 'service_operation_shared' module VCAP::CloudController RSpec.describe ManagedServiceInstance, type: :model do let(:service_instance) { VCAP::CloudController::ManagedServiceInstance.make } let(:email) { Sham.email } let(:guid) { Sham.guid } after { VCAP::Reques...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/service_binding_operation_spec.rb
Ruby
apache-2.0
203
main
204
require 'spec_helper' require 'support/shared_examples/models/operations' module VCAP::CloudController RSpec.describe ServiceBindingOperation, type: :model do it_behaves_like 'operation' end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/route_binding_spec.rb
Ruby
apache-2.0
203
main
5,613
require 'spec_helper' require_relative 'service_operation_shared' module VCAP::CloudController RSpec.describe VCAP::CloudController::RouteBinding, type: :model do let(:binding) { RouteBinding.new } it { is_expected.to have_timestamp_columns } describe '#new' do it 'has a guid when constructed' do...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/service_plan_visibility_spec.rb
Ruby
apache-2.0
203
main
4,423
require 'spec_helper' module VCAP::CloudController RSpec.describe ServicePlanVisibility, type: :model do it { is_expected.to have_timestamp_columns } describe 'Associations' do it { is_expected.to have_associated :service_plan } it { is_expected.to have_associated :organization } end de...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/service_instance_operation_spec.rb
Ruby
apache-2.0
203
main
2,363
require 'spec_helper' module VCAP::CloudController RSpec.describe ServiceInstanceOperation, type: :model do let(:updated_at_time) { Time.now } let(:created_at_time) { Time.now } let(:operation_attributes) do { state: 'in progress', description: '50% all the time', type: 'cre...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/service_operation_shared.rb
Ruby
apache-2.0
203
main
12,449
RSpec.shared_examples 'a model including the ServiceOperationMixin' do |service_class, operation_association, operation_class, service_key| let(:service) { service_class.make } before do @service = service @operation_association = operation_association @operation_class = operation_class @service_ke...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/service_broker_spec.rb
Ruby
apache-2.0
203
main
8,633
require 'spec_helper' module VCAP::CloudController RSpec.describe ServiceBroker, :services, type: :model do let(:name) { Sham.name } let(:broker_url) { 'http://cf-service-broker.example.com' } let(:auth_username) { 'me' } let(:auth_password) { 'abc123' } let(:broker) { ServiceBroker.new(name:, b...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/services/user_provided_service_instance_spec.rb
Ruby
apache-2.0
203
main
7,524
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::UserProvidedServiceInstance, type: :model do let(:service_instance) { VCAP::CloudController::UserProvidedServiceInstance.make } it_behaves_like 'a model with an encrypted attribute' do def new_model VCAP::...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_auditor_spec.rb
Ruby
apache-2.0
203
main
1,493
require 'spec_helper' module VCAP::CloudController RSpec.describe SpaceAuditor, type: :model do let(:space) { Space.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate space_id and user_id combination' do SpaceAuditor.create(space_id: space.id, user_id: user.id)...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_user_spec.rb
Ruby
apache-2.0
203
main
1,570
require 'spec_helper' module VCAP::CloudController RSpec.describe OrganizationUser, type: :model do let(:organization) { Organization.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate organization_id and user_id combination' do OrganizationUser.create(organiza...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/role_spec.rb
Ruby
apache-2.0
203
main
3,247
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::Role, type: :model do it { is_expected.to have_timestamp_columns } context 'when there are roles' do let(:user) { User.make } let(:org) { Organization.make } let(:space) { Space.make } let!(:orga...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_routes_spec.rb
Ruby
apache-2.0
203
main
1,256
require 'spec_helper' RSpec.describe OrganizationRoutes do subject(:organization_routes) { OrganizationRoutes.new(organization) } let(:organization) { VCAP::CloudController::Organization.make } describe '#count' do context 'when there is no spaces' do its(:count) { is_expected.to eq 0 } end ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/asg_latest_update_spec.rb
Ruby
apache-2.0
203
main
1,359
require 'spec_helper' module VCAP::CloudController RSpec.describe AsgLatestUpdate, type: :model do describe 'Renew' do it 'updates asgLatestUpdate to now' do expect(AsgLatestUpdate.last_update).to eq Time.at(0) AsgLatestUpdate.renew expect(AsgLatestUpdate.last_update).to be > 1.minu...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/app_usage_event_spec.rb
Ruby
apache-2.0
203
main
1,333
require 'spec_helper' module VCAP::CloudController RSpec.describe AppUsageEvent, type: :model do describe 'Validations' do it { is_expected.to validate_db_presence :created_at } it { is_expected.to validate_db_presence :state } it { is_expected.to validate_db_presence :memory_in_mb_per_instance...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/app_label_model_spec.rb
Ruby
apache-2.0
203
main
421
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::AppLabelModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do app = AppModel.make(name: 'dora') AppLabelModel.make(resource_guid: app.guid, key_name: 'release', value: 's...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/user_spec.rb
Ruby
apache-2.0
203
main
21,583
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::User, type: :model do it { is_expected.to have_timestamp_columns } describe 'Associations' do it { is_expected.to have_associated :organizations } it { is_expected.to have_associated :default_space, class: S...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/process_model_spec.rb
Ruby
apache-2.0
203
main
71,592
require 'spec_helper' module VCAP::CloudController RSpec.describe ProcessModel, type: :model do let(:org) { Organization.make } let(:space) { Space.make(organization: org) } let(:parent_app) { AppModel.make(space:) } let(:domain) { PrivateDomain.make(owning_organization: org) } let(:route) { Rou...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/feature_flag_spec.rb
Ruby
apache-2.0
203
main
12,584
require 'spec_helper' module VCAP::CloudController RSpec.describe FeatureFlag, type: :model do let(:feature_flag) { FeatureFlag.make } it { is_expected.to have_timestamp_columns } describe 'uniqueness' do it 'enforces uniqueness of name' do existing_flag = FeatureFlag.make expect ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_reserved_route_ports_spec.rb
Ruby
apache-2.0
203
main
2,021
require 'spec_helper' module VCAP::CloudController RSpec.describe OrganizationReservedRoutePorts do let(:organization) { Organization.make } subject(:organization_routes) { OrganizationReservedRoutePorts.new(organization) } before do TestConfig.override(kubernetes: nil) end describe '#co...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/custom_buildpack_spec.rb
Ruby
apache-2.0
203
main
622
require 'spec_helper' module VCAP::CloudController RSpec.describe CustomBuildpack do subject(:buildpack) { CustomBuildpack.new(url) } let(:url) { 'http://foo_bar/baz' } its(:url) { is_expected.to eq(url) } its(:to_json) { is_expected.to eq('"http://foo_bar/baz"') } it 'has the correct staging ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/droplet_model_spec.rb
Ruby
apache-2.0
203
main
14,467
require 'spec_helper' module VCAP::CloudController RSpec.describe DropletModel do it { is_expected.to validates_includes DropletModel::DROPLET_STATES, :state, allow_missing: true } describe '#blobstore_key' do let(:droplet) { DropletModel.make(droplet_hash: droplet_hash, app: nil) } context 'wh...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_spec.rb
Ruby
apache-2.0
203
main
38,976
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::Space, type: :model do it { is_expected.to have_timestamp_columns } describe 'uniqueness' do it 'enforces uniqueness of name within an organization' do existing_space = Space.make expect do ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/buildpack_lifecycle_buildpack_model_spec.rb
Ruby
apache-2.0
203
main
4,565
require 'spec_helper' module VCAP::CloudController RSpec.describe BuildpackLifecycleBuildpackModel do subject(:buildpack) { BuildpackLifecycleBuildpackModel.new } let(:buildpack_lifecycle_data) { BuildpackLifecycleDataModel.make(buildpacks: ['ruby']) } before do Buildpack.make(name: 'ruby') ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/buildpack_spec.rb
Ruby
apache-2.0
203
main
11,791
require 'spec_helper' module VCAP::CloudController RSpec.describe Buildpack, type: :model do def ordered_buildpacks Buildpack.order(:position).map { |bp| [bp.name, bp.position] } end it { is_expected.to have_timestamp_columns } describe 'Validations' do describe 'stack' do let(:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/route_spec.rb
Ruby
apache-2.0
203
main
66,010
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::Route, type: :model do it { is_expected.to have_timestamp_columns } describe '#protocol' do let(:routing_api_client) { double('routing_api_client', router_group:) } let(:router_group) { double('router_group'...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_definition_spec.rb
Ruby
apache-2.0
203
main
8,342
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::QuotaDefinition, type: :model do let(:quota_definition) { QuotaDefinition.make } it { is_expected.to have_timestamp_columns } describe 'Associations' do before do allow(SecurityContext).to receive(:ad...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_routes_spec.rb
Ruby
apache-2.0
203
main
654
require 'spec_helper' RSpec.describe SpaceRoutes do subject { SpaceRoutes.new(space) } let(:space) { VCAP::CloudController::Space.make } describe '#count' do context 'when there are no routes' do its(:count) { is_expected.to eq 0 } end context 'when there are multiple routes' do before...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/droplet_label_model_spec.rb
Ruby
apache-2.0
203
main
431
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::DropletLabelModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do droplet = DropletModel.make DropletLabelModel.make(resource_guid: droplet.guid, key_name: 'release', val...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/app_annotation_model_spec.rb
Ruby
apache-2.0
203
main
486
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::AppAnnotationModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do app = AppModel.make(name: 'dora') AppAnnotationModel.make(resource_guid: app.guid, key_prefix: 'somethi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/app_model_spec.rb
Ruby
apache-2.0
203
main
22,415
require 'spec_helper' module VCAP::CloudController RSpec.describe AppModel do let(:app_model) { AppModel.create(space: space, name: 'some-name') } let(:space) { Space.make } describe '#oldest_web_process' do context 'when there are no web processes' do it 'returns nil' do expect(...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/pollable_job_model_spec.rb
Ruby
apache-2.0
203
main
6,936
require 'spec_helper' module VCAP::CloudController RSpec.describe PollableJobModel do describe('.find_by_delayed_job') do let(:delayed_job) { Delayed::Backend::Sequel::Job.create } let!(:pollable_job) { PollableJobModel.create(state: 'PROCESSING', delayed_job_guid: delayed_job.guid) } it 'retu...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/stack_spec.rb
Ruby
apache-2.0
203
main
9,170
require 'spec_helper' module VCAP::CloudController RSpec.describe Stack, type: :model do let(:file) { File.join(Paths::FIXTURES, 'config/stacks.yml') } it { is_expected.to have_timestamp_columns } describe 'Associations' do it 'has apps' do stack = Stack.make process1 = ProcessMod...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_annotation_model_spec.rb
Ruby
apache-2.0
203
main
524
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::OrganizationAnnotationModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do org = Organization.make(name: 'zrob-org') OrganizationAnnotationModel.make(resource_guid: org....
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_manager_spec.rb
Ruby
apache-2.0
203
main
1,493
require 'spec_helper' module VCAP::CloudController RSpec.describe SpaceManager, type: :model do let(:space) { Space.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate space_id and user_id combination' do SpaceManager.create(space_id: space.id, user_id: user.id)...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_billing_manager_spec.rb
Ruby
apache-2.0
203
main
1,651
require 'spec_helper' module VCAP::CloudController RSpec.describe OrganizationBillingManager, type: :model do let(:organization) { Organization.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate organization_id and user_id combination' do OrganizationBillingMan...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/route_mapping_model_spec.rb
Ruby
apache-2.0
203
main
10,163
require 'spec_helper' module VCAP::CloudController RSpec.describe RouteMappingModel do describe '#process' do let(:space) { VCAP::CloudController::Space.make } let(:route) { VCAP::CloudController::Route.make(space:) } let(:app_model) { VCAP::CloudController::AppModel.make(space:) } let!(:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/private_domain_spec.rb
Ruby
apache-2.0
203
main
9,031
require 'spec_helper' module VCAP::CloudController RSpec.describe PrivateDomain, type: :model do let(:private_domain) { PrivateDomain.make name: 'test.example.com' } let(:reserved) { nil } before do TestConfig.override(system_domain: 'customer-app-domain1.com', reserved_private_domains: reserved) ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/security_group_spec.rb
Ruby
apache-2.0
203
main
40,008
require 'spec_helper' module VCAP::CloudController RSpec.describe SecurityGroup, type: :model do def build_transport_rule(attrs={}) { 'protocol' => 'udp', 'ports' => '8080-9090', 'destination' => '198.41.191.47/1' }.merge(attrs) end def build_icmp_rule(attrs={}) ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/task_model_spec.rb
Ruby
apache-2.0
203
main
31,956
require 'spec_helper' module VCAP::CloudController RSpec.describe TaskModel do let(:parent_app) { AppModel.make } describe 'after create' do it 'does not create a TASK_STARTED event' do task = TaskModel.make(app: parent_app, state: TaskModel::PENDING_STATE) event = AppUsageEvent.find(...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/kpack_lifecycle_data_model_spec.rb
Ruby
apache-2.0
203
main
878
require 'spec_helper' module VCAP::CloudController RSpec.describe KpackLifecycleDataModel do subject(:lifecycle_data) { KpackLifecycleDataModel.new } describe '#to_hash' do let(:expected_lifecycle_data) do { buildpacks: buildpacks || [] } end let(:buildpacks) { [buildpack] } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/deployment_model_spec.rb
Ruby
apache-2.0
203
main
17,888
require 'spec_helper' module VCAP::CloudController RSpec.describe DeploymentModel do let(:app) { AppModel.make(name: 'rolling-app') } let(:droplet) { DropletModel.make(app:) } let(:deploying_web_process) { ProcessModel.make(health_check_timeout: 180) } let(:canary_steps) { [{ 'instance_weight' => 20 ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/buildpack_bits_delete_spec.rb
Ruby
apache-2.0
203
main
1,752
require 'spec_helper' module VCAP::CloudController RSpec.describe BuildpackBitsDelete do let(:staging_timeout) { 144 } let(:key) { 'key' } let!(:blobstore) do CloudController::DependencyLocator.instance.buildpack_blobstore end let(:tmpfile) { Tempfile.new('') } before do blobsto...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/revision_model_spec.rb
Ruby
apache-2.0
203
main
2,894
require 'spec_helper' module VCAP::CloudController RSpec.describe RevisionModel do let!(:droplet) do DropletModel.make( process_types: { 'web' => 'droplet_web_command', 'worker' => 'droplet_worker_command', 'droplet_only' => 'droplet_only_command' } ) ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_reserved_route_ports_spec.rb
Ruby
apache-2.0
203
main
1,493
require 'spec_helper' module VCAP::CloudController RSpec.describe SpaceReservedRoutePorts do let(:organization) { Organization.make } let(:space_quota) { SpaceQuotaDefinition.make(organization:) } let(:space) { Space.make(organization: organization, space_quota_definition: space_quota) } subject(:sp...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/user_label_model_spec.rb
Ruby
apache-2.0
203
main
422
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::UserLabelModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do user = User.make(guid: 'dora') UserLabelModel.make(resource_guid: user.guid, key_name: 'release', value: 's...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/environment_variable_group_spec.rb
Ruby
apache-2.0
203
main
4,444
require 'spec_helper' module VCAP::CloudController RSpec.describe EnvironmentVariableGroup, type: :model do subject(:env_group) { EnvironmentVariableGroup.make } it { is_expected.to have_timestamp_columns } it_behaves_like 'a model with an encrypted attribute' do let(:encrypted_attr) { :environme...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_label_model_spec.rb
Ruby
apache-2.0
203
main
456
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::OrganizationLabelModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do org = Organization.make(name: 'dora_org') OrganizationLabelModel.make(resource_guid: org.guid, key_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/isolation_segment_model_spec.rb
Ruby
apache-2.0
203
main
7,706
require 'spec_helper' require 'isolation_segment_assign' require 'isolation_segment_unassign' module VCAP::CloudController RSpec.describe IsolationSegmentModel do let(:isolation_segment_model) { IsolationSegmentModel.make } let(:isolation_segment_model_2) { IsolationSegmentModel.make } let(:assigner) {...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/revision_sidecar_model_spec.rb
Ruby
apache-2.0
203
main
3,272
require 'spec_helper' module VCAP::CloudController RSpec.describe RevisionSidecarModel do let(:revision_sidecar) { RevisionSidecarModel.make } describe '#process_types' do it 'returns the names of associated sidecar_process_types' do RevisionSidecarProcessTypeModel.make(type: 'other worker', r...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_spec.rb
Ruby
apache-2.0
203
main
39,419
require 'spec_helper' require 'isolation_segment_assign' module VCAP::CloudController RSpec.describe Organization, type: :model do it { is_expected.to have_timestamp_columns } describe 'Associations' do it { is_expected.to have_associated :spaces } it { is_expected.to have_associated :private_d...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_manager_spec.rb
Ruby
apache-2.0
203
main
1,594
require 'spec_helper' module VCAP::CloudController RSpec.describe OrganizationManager, type: :model do let(:organization) { Organization.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate organization_id and user_id combination' do OrganizationManager.create(or...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/event_spec.rb
Ruby
apache-2.0
203
main
4,723
require 'spec_helper' module VCAP::CloudController RSpec.describe Event, type: :model do let(:space) { Space.make } let(:event) do Event.make( type: 'audit.movie.premiere', actor: 'ncage', actor_type: 'One True God', actor_name: 'Nicolas Cage', actee: 'jtravolta...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/app_event_spec.rb
Ruby
apache-2.0
203
main
925
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::AppEvent, type: :model do it { is_expected.to have_timestamp_columns } describe 'Associations' do it { is_expected.to have_associated :app, class: ProcessModel } end describe 'Validations' do it { i...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/clock_job_spec.rb
Ruby
apache-2.0
203
main
296
require 'spec_helper' module VCAP::CloudController RSpec.describe ClockJob, type: :model do it 'must have a unique name' do ClockJob.create name: 'Greg' expect do ClockJob.create name: 'Greg' end.to raise_error Sequel::UniqueConstraintViolation end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/build_model_spec.rb
Ruby
apache-2.0
203
main
13,009
require 'spec_helper' module VCAP::CloudController RSpec.describe BuildModel do let(:package) { PackageModel.make(state: PackageModel::READY_STATE) } let(:build_model) { BuildModel.make(package:) } describe 'associations' do let!(:buildpack_lifecycle_data) do BuildpackLifecycleDataModel.ma...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/shared_domain_spec.rb
Ruby
apache-2.0
203
main
12,151
require 'spec_helper' module VCAP::CloudController RSpec.describe SharedDomain, type: :model do subject { SharedDomain.make name: 'test.example.com', router_group_guid: router_group_guid, router_group_type: 'tcp' } let(:router_group_guid) { 'my-router-group-guid' } it { is_expected.to have_timestamp_co...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/domain_spec.rb
Ruby
apache-2.0
203
main
7,886
require 'spec_helper' module VCAP::CloudController RSpec.describe Domain do it { is_expected.to have_timestamp_columns } it 'cannot create top level domains' do expect { Domain.make name: 'com' }.to raise_error(Sequel::ValidationFailed, /name.*alphanumeric characters and hyphens/) end it "can...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/organization_auditor_spec.rb
Ruby
apache-2.0
203
main
1,594
require 'spec_helper' module VCAP::CloudController RSpec.describe OrganizationAuditor, type: :model do let(:organization) { Organization.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate organization_id and user_id combination' do OrganizationAuditor.create(or...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_quota_definition_spec.rb
Ruby
apache-2.0
203
main
8,925
require 'spec_helper' module VCAP::CloudController RSpec.describe SpaceQuotaDefinition, type: :model do let(:space_quota_definition) { SpaceQuotaDefinition.make } it { is_expected.to have_timestamp_columns } describe 'Associations' do it { is_expected.to have_associated :organization, associated_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_label_model_spec.rb
Ruby
apache-2.0
203
main
434
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::SpaceLabelModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do space = Space.make(name: 'dora_space') SpaceLabelModel.make(resource_guid: space.guid, key_name: 'release'...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/droplet_annotation_model_spec.rb
Ruby
apache-2.0
203
main
492
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::DropletAnnotationModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do droplet = DropletModel.make DropletAnnotationModel.make(resource_guid: droplet.guid, key_prefix: 'c...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/user_annotation_model_spec.rb
Ruby
apache-2.0
203
main
487
require 'spec_helper' module VCAP::CloudController RSpec.describe VCAP::CloudController::UserAnnotationModel, type: :model do it { is_expected.to have_timestamp_columns } it 'can be created' do user = User.make(guid: 'dora') UserAnnotationModel.make(resource_guid: user.guid, key_prefix: 'somethi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/buildpack_lifecycle_data_model_spec.rb
Ruby
apache-2.0
203
main
19,573
require 'spec_helper' module VCAP::CloudController RSpec.describe BuildpackLifecycleDataModel do subject(:lifecycle_data) { BuildpackLifecycleDataModel.new } it_behaves_like 'a model with an encrypted attribute' do let(:value_to_encrypt) { 'https://acme-buildpack.com' } let(:encrypted_attr) { :b...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/package_model_spec.rb
Ruby
apache-2.0
203
main
3,513
require 'spec_helper' module VCAP::CloudController RSpec.describe PackageModel do before do allow_any_instance_of(BitsExpiration).to receive(:expire_packages!) end describe 'validations' do it { is_expected.to validates_includes PackageModel::PACKAGE_STATES, :state, allow_missing: true } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/revision_process_command_model_spec.rb
Ruby
apache-2.0
203
main
1,119
require 'spec_helper' module VCAP::CloudController RSpec.describe RevisionProcessCommandModel do describe 'revision_process_command_model #around_save' do let(:revision) { RevisionModel.make } let!(:revision_process_command) { RevisionProcessCommandModel.make(revision_guid: revision.guid, process_typ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/cnb_lifecycle_data_model_spec.rb
Ruby
apache-2.0
203
main
8,970
require 'spec_helper' module VCAP::CloudController RSpec.describe CNBLifecycleDataModel do subject(:lifecycle_data) { CNBLifecycleDataModel.make([]) } describe '#stack' do it 'persists the stack' do lifecycle_data.stack = 'cflinuxfs4' lifecycle_data.save expect(lifecycle_data.r...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_supporter_spec.rb
Ruby
apache-2.0
203
main
927
require 'spec_helper' require 'date' module VCAP::CloudController RSpec.describe SpaceSupporter, type: :model do let(:space) { Space.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate space_id and user_id combination' do SpaceSupporter.create(space_id: space.id...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/space_developer_spec.rb
Ruby
apache-2.0
203
main
1,527
require 'spec_helper' module VCAP::CloudController RSpec.describe SpaceDeveloper, type: :model do let(:space) { Space.make } let(:user) { User.make } describe 'uniqueness' do it 'prevents duplicate space_id and user_id combination' do SpaceDeveloper.create(space_id: space.id, user_id: user...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/sidecar_model_spec.rb
Ruby
apache-2.0
203
main
3,207
require 'spec_helper' module VCAP::CloudController RSpec.describe SidecarModel do let(:sidecar) { SidecarModel.make } describe '#process_types' do it 'returns the names of associated sidecar_process_types' do SidecarProcessTypeModel.make(type: 'web', sidecar: sidecar) SidecarProcessTyp...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/min_disk_quota_policy_spec.rb
Ruby
apache-2.0
203
main
759
require 'spec_helper' RSpec.describe MinDiskQuotaPolicy do subject(:validator) { MinDiskQuotaPolicy.new(process) } let(:process) { VCAP::CloudController::ProcessModelFactory.make } it 'when requested size is negative' do allow(process).to receive(:disk_quota).and_return(-1) expect(validator).to validat...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/docker_policy_spec.rb
Ruby
apache-2.0
203
main
1,504
require 'spec_helper' RSpec.describe DockerPolicy do subject(:validator) { DockerPolicy.new(process) } let(:process) { VCAP::CloudController::ProcessModelFactory.make(:docker, docker_image: 'some-image:latest') } context 'when a buildpack is specified' do before do allow(process).to receive(:buildpac...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/health_check_policy_spec.rb
Ruby
apache-2.0
203
main
7,562
require 'spec_helper' RSpec.describe HealthCheckPolicy do subject(:validator) do HealthCheckPolicy.new(process, health_check_timeout, health_check_invocation_timeout, health_check_type, health_check_http_endpoint, health_check_interval) end let(:process) { VCAP::CloudController::ProcessModelFactory.make } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/sidecar_memory_less_than_process_memory_policy_spec.rb
Ruby
apache-2.0
203
main
2,899
require 'spec_helper' RSpec.describe 'max instance memory policies' do let(:policy_target) { double(instance_memory_limit: 150) } let(:error_name) { :random_memory_error } describe SidecarMemoryLessThanProcessMemoryPolicy do let(:app_model) { VCAP::CloudController::AppModel.make } let(:process) { VCAP::...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/ports_policy_spec.rb
Ruby
apache-2.0
203
main
1,672
require 'spec_helper' RSpec.describe PortsPolicy do let!(:process) { VCAP::CloudController::ProcessModelFactory.make } let(:validator) { PortsPolicy.new(process) } context 'invalid processes request' do it 'registers error a provided port is not an integer' do process.diego = true process.ports ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/max_app_instances_policy_spec.rb
Ruby
apache-2.0
203
main
2,523
require 'spec_helper' RSpec.describe MaxAppInstancesPolicy do subject(:validator) { MaxAppInstancesPolicy.new(process, process.organization, quota_definition, error_name) } let(:max_apps) { 8 } let(:current_org_instances) { 3 } let(:process) { VCAP::CloudController::ProcessModelFactory.make(instances: 1, stat...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/instances_policy_spec.rb
Ruby
apache-2.0
203
main
747
require 'spec_helper' RSpec.describe InstancesPolicy do subject(:validator) { InstancesPolicy.new(process) } let(:process) { VCAP::CloudController::ProcessModelFactory.make } describe 'instances' do it 'registers an error if requested instances is negative' do process.instances = -1 expect(vali...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/max_app_tasks_policy_spec.rb
Ruby
apache-2.0
203
main
1,669
require 'spec_helper' RSpec.describe MaxAppTasksPolicy do subject(:validator) { MaxAppTasksPolicy.new(task, org, error_name) } let(:quota_definition) { VCAP::CloudController::QuotaDefinition.make(app_task_limit: 1) } let(:org) { space.organization } let(:space) { VCAP::CloudController::Space.make } let(:app...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/process_user_policy_spec.rb
Ruby
apache-2.0
203
main
1,562
require 'spec_helper' RSpec.describe ProcessUserPolicy do subject(:validator) { ProcessUserPolicy.new(process, allowed_users) } let(:process) { VCAP::CloudController::ProcessModelFactory.make } let(:process_user) { 'invalid' } let(:allowed_users) { Set.new(%w[vcap ContainerUser]) } before do # need to ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/max_disk_quota_policy_spec.rb
Ruby
apache-2.0
203
main
906
require 'spec_helper' RSpec.describe MaxDiskQuotaPolicy do subject(:validator) { MaxDiskQuotaPolicy.new(process, max_mb) } let(:process) { VCAP::CloudController::ProcessModelFactory.make } let(:max_mb) { 10 } it 'when requested size is larger than the space allocated to the process' do allow(process).to ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/min_log_rate_limit_policy_spec.rb
Ruby
apache-2.0
203
main
915
require 'spec_helper' RSpec.describe MinLogRateLimitPolicy do subject(:validator) { MinLogRateLimitPolicy.new(process) } let(:process) { VCAP::CloudController::ProcessModelFactory.make } it 'when requested size is negative 2' do allow(process).to receive(:log_rate_limit).and_return(-2) expect(validator...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/max_memory_policy_spec.rb
Ruby
apache-2.0
203
main
3,487
require 'spec_helper' RSpec.describe 'max memory policies' do let(:org_or_space) { double(:org_or_space, has_remaining_memory: false) } let(:error_name) { :random_memory_error } describe AppMaxMemoryPolicy do subject(:validator) { AppMaxMemoryPolicy.new(process, org_or_space, error_name) } let(:process...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/readiness_health_check_policy_spec.rb
Ruby
apache-2.0
203
main
3,720
require 'spec_helper' RSpec.describe ReadinessHealthCheckPolicy do subject(:validator) do ReadinessHealthCheckPolicy.new( process, readiness_health_check_invocation_timeout, readiness_health_check_type, readiness_health_check_http_endpoint, readiness_health_check_interval ) en...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/base_health_check_policy_spec.rb
Ruby
apache-2.0
203
main
7,606
require 'spec_helper' RSpec.describe BaseHealthCheckPolicy do subject(:validator) do BaseHealthCheckPolicy.new( process, health_check_timeout, health_check_invocation_timeout, health_check_type, health_check_http_endpoint, health_check_interval ) end let(:process) { V...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/max_instance_memory_policy_spec.rb
Ruby
apache-2.0
203
main
6,151
require 'spec_helper' RSpec.describe 'max instance memory policies' do let(:policy_target) { double(instance_memory_limit: 150) } let(:error_name) { :random_memory_error } describe AppMaxInstanceMemoryPolicy do subject(:validator) { AppMaxInstanceMemoryPolicy.new(process, policy_target, error_name) } c...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/max_log_rate_limit_policy_spec.rb
Ruby
apache-2.0
203
main
6,717
require 'spec_helper' RSpec.describe 'max log_rate_limit policies' do let(:org_or_space) { double(:org_or_space, has_remaining_log_rate_limit: false) } let(:error_name) { :random_log_rate_limit_error } describe AppMaxLogRateLimitPolicy do subject(:validator) { AppMaxLogRateLimitPolicy.new(process, org_or_sp...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/constraints/min_memory_policy_spec.rb
Ruby
apache-2.0
203
main
682
require 'spec_helper' RSpec.describe MinMemoryPolicy do subject(:validator) { MinMemoryPolicy.new(process) } let(:process) { VCAP::CloudController::ProcessModelFactory.make(memory: 64) } it 'registers error when requested memory is 0' do process.memory = 0 expect(validator).to validate_with_error(proce...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/helpers/package_state_calculator_spec.rb
Ruby
apache-2.0
203
main
4,964
require 'spec_helper' require 'models/runtime/helpers/package_state_calculator' module VCAP::CloudController RSpec.describe 'PackageStateCalculator' do describe '#calculate' do let(:parent_app) { AppModel.make } let(:process) { ProcessModel.make(app: parent_app) } subject(:calculator) { Packag...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_constraints/paid_service_instance_policy_spec.rb
Ruby
apache-2.0
203
main
1,811
require 'spec_helper' RSpec.describe PaidServiceInstancePolicy do let(:org) { VCAP::CloudController::Organization.make quota_definition: quota } let(:space) { VCAP::CloudController::Space.make organization: org } let(:basic_service_plan) { VCAP::CloudController::ServicePlan.make(free: true) } let(:paid_service...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_constraints/max_private_domains_policy_spec.rb
Ruby
apache-2.0
203
main
1,179
require 'spec_helper' RSpec.describe MaxPrivateDomainsPolicy do subject { MaxPrivateDomainsPolicy.new(quota_definition, private_domain_counter) } let(:quota_definition) { double(:quota_definition, total_private_domains: 4) } let(:private_domain_counter) { double(:private_domain_counter, count: 0) } describe ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_constraints/max_service_instances_policy_spec.rb
Ruby
apache-2.0
203
main
2,549
require 'spec_helper' RSpec.describe MaxServiceInstancePolicy do let(:org) { VCAP::CloudController::Organization.make quota_definition: quota } let(:space) { VCAP::CloudController::Space.make organization: org } let(:service_instance) do service_plan = VCAP::CloudController::ServicePlan.make VCAP::CloudC...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_constraints/max_routes_policy_spec.rb
Ruby
apache-2.0
203
main
1,039
require 'spec_helper' RSpec.describe MaxRoutesPolicy do subject { MaxRoutesPolicy.new(quota_definition, route_counter) } let(:quota_definition) { double(:quota_definition, total_routes: 4) } let(:route_counter) { double(:route_counter, count: 0) } describe '#allow_more_routes?' do it 'is false when excee...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_constraints/max_service_keys_policy_spec.rb
Ruby
apache-2.0
203
main
2,475
require 'spec_helper' RSpec.describe MaxServiceKeysPolicy do let(:org) { VCAP::CloudController::Organization.make quota_definition: quota } let(:space) { VCAP::CloudController::Space.make organization: org } let(:service_instance) do service_plan = VCAP::CloudController::ServicePlan.make VCAP::CloudContr...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/models/runtime/quota_constraints/max_reserved_route_ports_policy_spec.rb
Ruby
apache-2.0
203
main
3,108
require 'spec_helper' module VCAP::CloudController RSpec.describe MaxReservedRoutePortsPolicy do let(:quota_definition) do instance_double(VCAP::CloudController::QuotaDefinition, total_reserved_route_ports: 4, total_routes: 4) end let(:port_counter) { ins...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/decorators/include_binding_service_instance_decorator_spec.rb
Ruby
apache-2.0
203
main
2,149
require 'db_spec_helper' require 'decorators/include_binding_service_instance_decorator' module VCAP module CloudController def self.can_be_decorated_with_include_binding_service_instance_decorator(klazz) RSpec.describe IncludeBindingServiceInstanceDecorator do subject(:decorator) { described_class...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/decorators/include_binding_app_decorator_spec.rb
Ruby
apache-2.0
203
main
1,983
require 'spec_helper' require 'decorators/include_binding_app_decorator' module VCAP::CloudController RSpec.describe IncludeBindingAppDecorator do subject(:decorator) { IncludeBindingAppDecorator } let(:service_credential_bindings) { ServiceCredentialBinding::View.dataset.all } context 'service bindings...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/decorators/include_route_domain_decorator_spec.rb
Ruby
apache-2.0
203
main
1,667
require 'spec_helper' require 'decorators/include_route_domain_decorator' module VCAP::CloudController RSpec.describe IncludeRouteDomainDecorator do subject(:decorator) { IncludeRouteDomainDecorator } let(:domain1) { SharedDomain.make(name: 'z-first-domain.example.com') } let(:domain2) { SharedDomain.mak...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/decorators/field_service_instance_space_decorator_spec.rb
Ruby
apache-2.0
203
main
7,923
require 'spec_helper' require 'decorators/field_service_instance_space_decorator' require 'field_decorator_spec_shared_examples' module VCAP::CloudController RSpec.describe FieldServiceInstanceSpaceDecorator do describe '.decorate' do let(:org1) { Organization.make } let(:org2) { Organization.make } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/unit/decorators/field_service_instance_offering_decorator_spec.rb
Ruby
apache-2.0
203
main
9,226
require 'spec_helper' require 'decorators/field_service_instance_offering_decorator' module VCAP::CloudController RSpec.describe FieldServiceInstanceOfferingDecorator do describe '.decorate' do let(:offering1) { Service.make(extra: '{"documentationUrl": "https://offering1.com"}', tags: %w[foo bar], created...