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
db/migrations/20151110215644_rename_buildpack_and_stack_in_droplet_model.rb
Ruby
apache-2.0
203
main
273
Sequel.migration do change do rename_column :v3_droplets, :stack_name, :buildpack_receipt_stack_name rename_column :v3_droplets, :buildpack, :buildpack_receipt_buildpack rename_column :v3_droplets, :buildpack_guid, :buildpack_receipt_buildpack_guid end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20201030105232_create_service_route_bindings_metadata_table.rb
Ruby
apache-2.0
203
main
394
Sequel.migration do change do create_table(:route_binding_labels) do VCAP::Migration.common(self) VCAP::Migration.labels_common(self, :route_binding_labels, :route_bindings) end create_table(:route_binding_annotations) do VCAP::Migration.common(self) VCAP::Migration.annotations_co...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20250318112800_add_user_id_index_to_roles_tables.rb
Ruby
apache-2.0
203
main
1,079
Sequel.migration do roles_tables = %w[ organizations_auditors organizations_billing_managers organizations_managers organizations_users spaces_auditors spaces_developers spaces_managers spaces_supporters ] # adding an index concurrently cannot be done within a transaction no_tra...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20150202222406_revert_accidental_migration_on_service_instances.rb
Ruby
apache-2.0
203
main
231
Sequel.migration do up do alter_table :service_instances do set_column_type :name, String end end down do alter_table :service_instances do set_column_type :name, String, size: 4095 end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20180703233121_set_missing_fields_for_backfilled_web_processes.rb
Ruby
apache-2.0
203
main
1,173
Sequel.migration do up do missing_attributes_query = Sequel.lit( 'memory IS NULL OR disk_quota IS NULL OR file_descriptors is NULL OR enable_ssh is NULL' ) web_processes_missing_attributes = self[:processes].where(missing_attributes_query) web_processes_missing_attributes.each do |process_recor...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20131119225844_move_organization_managers_into_organization.rb
Ruby
apache-2.0
203
main
762
Sequel.migration do up do run <<~SQL.squish INSERT INTO organizations_users SELECT * FROM organizations_managers m WHERE NOT EXISTS (SELECT * FROM organizations_users u WHERE u.user_id = m.user_id AND u.organization_id = m.organization_id) SQL run <<~SQL.squish INSERT INTO organizations...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20191218001010_fill_guid_and_timestamps_for_spaces_managers.rb
Ruby
apache-2.0
203
main
298
Sequel.migration do up do self[:spaces_managers].where(role_guid: nil).update( role_guid: VCAP::Migration.uuid_function(self), updated_at: Sequel::CURRENT_TIMESTAMP ) end down do # Not reversible. Rollback earlier migration to drop the columns filled here. end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20140708223526_drop_tasks.rb
Ruby
apache-2.0
203
main
426
Sequel.migration do up do drop_table :tasks end down do create_table :tasks do VCAP::Migration.common(self) Integer :app_id, null: false String :salt String :secure_token index :app_id foreign_key [:app_id], :apps, name: :fk_tasks_app_id end run 'ALTER TABL...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20190617181421_add_key_prefix_to_isolation_segment_annotations.rb
Ruby
apache-2.0
203
main
241
Sequel.migration do change do unless self[:isolation_segment_annotations].columns.include?(:key_prefix) alter_table(:isolation_segment_annotations) do add_column :key_prefix, String, size: 253 end end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20130603223751_convert_latin1_to_utf8_for_mysql.rb
Ruby
apache-2.0
203
main
231
Sequel.migration do up do if self.class.name.match?(/mysql/i) run 'ALTER DATABASE DEFAULT CHARACTER SET utf8;' tables.each { |table| run "ALTER TABLE `#{table}` CONVERT TO CHARACTER SET utf8;" } end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20200110000101_add_app_guid_index_to_route_mappings.rb
Ruby
apache-2.0
203
main
270
Sequel.migration do up do alter_table :route_mappings do add_index :app_guid, name: :route_mappings_app_guid_index end end down do alter_table :route_mappings do drop_index :app_guid, name: :route_mappings_app_guid_index end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20150323170053_change_service_instance_description_to_text.rb
Ruby
apache-2.0
203
main
209
Sequel.migration do up do set_column_type :service_instance_operations, :description, String, text: true end down do set_column_type :service_instance_operations, :description, String end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20190712210940_backfill_status_for_deployments.rb
Ruby
apache-2.0
203
main
872
Sequel.migration do change do problematic_deployments = self[:deployments].where( Sequel.lit("status_value IS NULL OR TRIM(status_value) = '' OR state = 'FAILING' OR state = 'FAILED'") ) problematic_deployments.each do |deployment| fields_to_update = {} case deployment[:state] whe...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20190116225537_create_deployment_metadata_tables.rb
Ruby
apache-2.0
203
main
376
Sequel.migration do change do create_table(:deployment_annotations) do VCAP::Migration.common(self) VCAP::Migration.annotations_common(self, :deployment_annotations, :deployments) end create_table(:deployment_labels) do VCAP::Migration.common(self) VCAP::Migration.labels_common(se...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20130621222741_allow_null_service_plan_and_add_kind_on_service_instances.rb
Ruby
apache-2.0
203
main
235
Sequel.migration do change do alter_table :service_instances do set_column_allow_null :service_plan_id add_column :kind, String, null: false, default: 'VCAP::CloudController::ManagedServiceInstance' end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20190617181849_add_key_prefix_to_domain_annotations.rb
Ruby
apache-2.0
203
main
219
Sequel.migration do change do unless self[:domain_annotations].columns.include?(:key_prefix) alter_table(:domain_annotations) do add_column :key_prefix, String, size: 253 end end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20190617181730_add_key_prefix_to_service_instance_annotations.rb
Ruby
apache-2.0
203
main
239
Sequel.migration do change do unless self[:service_instance_annotations].columns.include?(:key_prefix) alter_table(:service_instance_annotations) do add_column :key_prefix, String, size: 253 end end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20180424202908_create_deployments_table.rb
Ruby
apache-2.0
203
main
323
Sequel.migration do change do create_table :deployments do VCAP::Migration.common(self) String :state, size: 255 String :app_guid, size: 255 index :app_guid, name: :deployments_app_guid_index foreign_key [:app_guid], :apps, key: :guid, name: :deployments_app_guid_fkey end end e...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20250729143100_bigint_migration_service_usage_events_step1.rb
Ruby
apache-2.0
203
main
1,269
require 'database/bigint_migration' table = :service_usage_events Sequel.migration do up do if database_type == :postgres && !VCAP::BigintMigration.opt_out? if VCAP::BigintMigration.table_empty?(self, table) VCAP::BigintMigration.change_pk_to_bigint(self, table) else VCAP::BigintMigr...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20240222131500_change_delayed_jobs_reserve_index.rb
Ruby
apache-2.0
203
main
911
Sequel.migration do no_transaction # to use the 'concurrently' option up do if database_type == :postgres VCAP::Migration.with_concurrent_timeout(self) do drop_index :delayed_jobs, nil, name: :delayed_jobs_reserve, if_exists: true, concurrently: true add_index :delayed_jobs, %i[queue lock...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20190617181810_add_key_prefix_to_deployment_annotations.rb
Ruby
apache-2.0
203
main
227
Sequel.migration do change do unless self[:deployment_annotations].columns.include?(:key_prefix) alter_table(:deployment_annotations) do add_column :key_prefix, String, size: 253 end end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20160322184040_update_app_port.rb
Ruby
apache-2.0
203
main
559
Sequel.migration do up do run <<~SQL.squish UPDATE apps SET ports = null WHERE docker_image is not null and diego = true and ports = '[8080]' SQL run <<~SQL.squish UPDATE apps_routes SET app_port = null WHERE app_port = '8080' and app_id in ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20250424095500_cnb_system_buildpacks.rb
Ruby
apache-2.0
203
main
301
require 'cloud_controller/diego/lifecycles/lifecycles' Sequel.migration do up do add_column :buildpacks, :lifecycle, String, size: 16, if_not_exists: true, default: VCAP::CloudController::Lifecycles::BUILDPACK end down do drop_column :buildpacks, :lifecycle, if_exists: true end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/migrations/20230822153000_streamline_annotation_key_prefix.rb
Ruby
apache-2.0
203
main
1,486
Sequel.migration do table_base_names = %w[ app build buildpack deployment domain droplet isolation_segment organization package process revision route_binding route service_binding service_broker service_broker_update_request service_instance ser...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/helpers/add_delete_cascade_to_foreign_key.rb
Ruby
apache-2.0
203
main
1,220
ForeignKey = Struct.new(:table, :name, :column, :referenced_table, :referenced_column, :new_constraint) do def initialize(table, name, column, referenced_table, referenced_column, new_constraint: false) super(table, name, column, referenced_table, referenced_column, new_constraint) end end def foreign_key_exis...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
db/helpers/change_primary_key.rb
Ruby
apache-2.0
203
main
708
require 'pry' # has_primary_key # postgres supports `db.primary_key`, mysql doesn't, so fall back to # analyzing the schema. def has_primary_key(db, table, key) return db.primary_key(table) == key.to_s if db.respond_to?(:primary_key) pk_column_info = db.schema(table).find { |column_info| column_info[0] == key } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/rate_limiter.rb
Ruby
apache-2.0
203
main
1,829
require 'base_rate_limiter' module CloudFoundry module Middleware class RateLimiter < BaseRateLimiter EXPIRING_REQUEST_COUNTER = ExpiringRequestCounter.new('rate-limit') def initialize(app, opts) @per_process_general_limit = opts[:per_process_general_limit] @global_general_li...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/vcap_request_context_setter.rb
Ruby
apache-2.0
203
main
1,053
require 'securerandom' require 'active_support/core_ext/string/access' module CloudFoundry module Middleware class VcapRequestContextSetter def initialize(app) @app = app end def call(env) env['cf.request_id'] = external_request_id(env) || internal_request_id ::VCAP::Re...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/block_v3_only_roles.rb
Ruby
apache-2.0
203
main
2,413
require 'mixins/client_ip' module CloudFoundry module Middleware class BlockV3OnlyRoles def initialize(app, opts) @app = app @logger = opts[:logger] end def call(env) if !allowed_path?(env['PATH_INFO']) && v3_only_role? [ ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/new_relic_custom_attributes.rb
Ruby
apache-2.0
203
main
367
require 'newrelic_rpm' module CloudFoundry module Middleware class NewRelicCustomAttributes def initialize(app) @app = app end def call(env) NewRelic::Agent.add_custom_attributes vcap_request_id: env['cf.request_id'] status, headers, body = @app.call(env) [stat...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/security_context_setter.rb
Ruby
apache-2.0
203
main
3,281
module CloudFoundry module Middleware class SecurityContextSetter UUID_REGEX = '[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12}'.freeze UPLOADS_PATH_REGEX = Regexp.union( [ %r{/v3/packages/#{UUID_REGEX}/upload}i, %r{/v3/buildpacks/#{UUID_REGEX}/upload}i, %r{/v3/droplets/#{...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/cef_logs.rb
Ruby
apache-2.0
203
main
2,928
require 'mixins/client_ip' module CloudFoundry module Middleware class CefLogs include CloudFoundry::Middleware::ClientIp CEF_VERSION = 0 SEVERITY = 0 def initialize(app, logger, external_ip) @app = app @logger = logger @external_ip = escape_exten...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/request_logs.rb
Ruby
apache-2.0
203
main
915
module CloudFoundry module Middleware class RequestLogs def initialize(app, request_logs) @request_logs = request_logs @app = app end def call(env) request_id = env['cf.request_id'] @request_logs.start_request(request_id, env) start_timer = timer ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/service_broker_rate_limiter.rb
Ruby
apache-2.0
203
main
5,222
require 'concurrent-ruby' require 'redis' module CloudFoundry module Middleware RateLimitEndpoint = Struct.new(:endpoint_pattern, :request_methods) RATE_LIMITED_ENDPOINTS = [ RateLimitEndpoint.new(%r{\A/v2/(service_instances|service_bindings|service_keys)}, %w[PUT POST DELETE]), RateLimitEndpoin...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/rate_limiter_v2_api.rb
Ruby
apache-2.0
203
main
1,460
require 'base_rate_limiter' module CloudFoundry module Middleware class RateLimiterV2API < BaseRateLimiter EXPIRING_REQUEST_COUNTER = ExpiringRequestCounter.new('v2-rate-limit') def initialize(app, opts) @per_process_general_limit = opts[:per_process_general_limit] @global_general_li...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/zipkin.rb
Ruby
apache-2.0
203
main
1,023
module CloudFoundry module Middleware class Zipkin def initialize(app) @app = app end def call(env) return call_app(env) unless env['HTTP_X_B3_TRACEID'] && env['HTTP_X_B3_SPANID'] env['b3.trace_id'], env['b3.span_id'] = external_b3_ids(env) ::VCAP::Request.b3_t...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/request_metrics.rb
Ruby
apache-2.0
203
main
634
module CloudFoundry module Middleware class RequestMetrics def initialize(app, request_metrics) @request_metrics = request_metrics @app = app end def call(env) ::VCAP::Request.reset_db_query_metrics @request_metrics.start_request status, headers, body = ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/cors.rb
Ruby
apache-2.0
203
main
2,369
module CloudFoundry module Middleware class Cors CORS_VARY_HEADER = ['Origin'.freeze].freeze def initialize(app, allowed_cors_domains=[]) @app = app @allowed_cors_domains = allowed_cors_domains.map do |d| /\A#{Regexp.quote(d).gsub('\*', '.*?')}\z/ en...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/base_rate_limiter.rb
Ruby
apache-2.0
203
main
5,613
require 'mixins/client_ip' require 'mixins/user_reset_interval' require 'redis' module CloudFoundry module Middleware class ExpiringRequestCounter include CloudFoundry::Middleware::UserResetInterval def initialize(key_prefix, redis_connection_pool_size: nil) @key_prefix = key_prefix ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/below_min_cli_warning.rb
Ruby
apache-2.0
203
main
1,911
module CloudFoundry module Middleware class BelowMinCliWarning def initialize(app) @app = app @min_cli_version = Gem::Version.new(VCAP::CloudController::Config.config.get(:info, :min_cli_version)) end def call(env) status, headers, body = @app.call(env) included...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/mixins/user_reset_interval.rb
Ruby
apache-2.0
203
main
379
require 'digest/xxhash' module CloudFoundry module Middleware module UserResetInterval def next_expires_in(user_guid, reset_interval_in_minutes) interval = reset_interval_in_minutes.minutes.to_i offset = Digest::XXH64.idigest(user_guid).remainder(interval) interval - (Time.now.to_i...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
middleware/mixins/client_ip.rb
Ruby
apache-2.0
203
main
395
module CloudFoundry module Middleware module ClientIp # When the request is proxied by another # server like HAProxy or Nginx, the IP address that made the original # request will be put in an X-Forwarded-For header def client_ip(request) request.headers.fetch('HTTP_X_FORWARDED_FOR...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/request_spec_shared_examples.rb
Ruby
apache-2.0
203
main
19,206
GLOBAL_SCOPES = %w[ admin admin_read_only global_auditor ].freeze LOCAL_ROLES = %w[ space_developer space_manager space_auditor space_supporter org_manager org_auditor org_billing_manager no_role ].freeze ALL_PERMISSIONS = (LOCAL_ROLES + GLOBAL_SCOPES).freeze CF_NOT_AUTHORIZED = [ { detail: '...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/spec_helper_helper.rb
Ruby
apache-2.0
203
main
7,012
module SpecHelperHelper @initialized = false def self.init return if @initialized $LOAD_PATH.push(File.expand_path(__dir__)) require File.expand_path('../config/boot', __dir__) if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter '/spec/' add_filter '/...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/field_decorator_spec_shared_examples.rb
Ruby
apache-2.0
203
main
840
RSpec.shared_examples 'field decorator match?' do |resource, keys| keys.each do |key| it "matches hashes containing resource symbol `#{resource}` and value `#{key}`" do expect(described_class.match?({ "#{resource}": [key.to_s], other: ['bar'] })).to be(true) end end it "matches hashes containing re...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/lightweight_spec_helper.rb
Ruby
apache-2.0
203
main
783
$LOAD_PATH.push(File.expand_path(File.join(__dir__, '..', 'app'))) $LOAD_PATH.push(File.expand_path(File.join(__dir__, '..', 'lib'))) require 'active_support/all' require 'pry' # So that specs using this helper don't fail with undefined constant error module VCAP module CloudController end end class StubConfig ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/field_message_spec_shared_examples.rb
Ruby
apache-2.0
203
main
2,599
RSpec.shared_examples 'field query parameter' do |resource, keys| keys_list = keys.split(',') it "accepts the `fields` parameter with fields[#{resource}]=#{keys}" do message = described_class.from_params({ 'fields' => { "#{resource}": keys.to_s } }) expect(message).to be_valid expect(message).to be_re...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/db_spec_helper.rb
Ruby
apache-2.0
203
main
959
unless defined?(SPEC_HELPER_LOADED) require 'lightweight_spec_helper' require 'rspec/collection_matchers' require 'rails' require 'support/bootstrap/spec_bootstrap' require 'support/database_isolation' require 'sequel_plugins/sequel_plugins' require 'machinist/sequel' require 'machinist/object' VC...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/permissions_spec_helper.rb
Ruby
apache-2.0
203
main
1,236
READ_ONLY_PERMS = { 'admin' => 200, 'admin_read_only' => 200, 'global_auditor' => 200, 'space_developer' => 200, 'space_manager' => 200, 'space_auditor' => 200, 'org_manager' => 200, 'org_auditor' => 404, 'org_billing_manager' => 404 }.freeze READ_AND_WRITE_PERMS = { 'admin' => 200, 'admin_read_o...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/summary_api_spec.rb
Ruby
apache-2.0
203
main
9,034
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Apps', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:space) { VCAP::CloudController::Space.make } let(:process) { VCAP::CloudController::ProcessModelFactory.make space: } let(:user) { ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/user_provided_service_instances_api_spec.rb
Ruby
apache-2.0
203
main
4,961
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'User Provided Service Instances', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:service_instance) { VCAP::CloudController::UserProvidedServiceInstance.make } let(:guid) { service_instan...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/feature_flags_api_spec.rb
Ruby
apache-2.0
203
main
15,298
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Feature Flags', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } authenticated_request shared_context 'updatable_fields' do field :enabled, 'The state of the feature flag.', required: true...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/app_bits_api_spec.rb
Ruby
apache-2.0
203
main
7,565
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Apps', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:tmpdir) { Dir.mktmpdir } let(:valid_zip) do zip_name = File.join(tmpdir, 'file.zip') TestZip.create(zip_name, 1, 1024) zi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/shared_domain_api_spec.rb
Ruby
apache-2.0
203
main
2,843
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Shared Domains', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:guid) { VCAP::CloudController::SharedDomain.first.guid } let!(:domains) { 3.times { VCAP::CloudController::SharedDomain.mak...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/stacks_api_spec.rb
Ruby
apache-2.0
203
main
1,791
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Stacks', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } authenticated_request before do set_current_user_as_admin end let(:guid) { VCAP::CloudController::Stack.first.guid } descri...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_usage_events_api_spec.rb
Ruby
apache-2.0
203
main
3,338
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Service Usage Events', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } authenticated_request let(:guid) { VCAP::CloudController::ServiceUsageEvent.first.guid } let!(:event1) { VCAP::CloudCont...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/security_group_running_defaults_api_spec.rb
Ruby
apache-2.0
203
main
1,314
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Security Group Running Defaults', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:sec_group) { VCAP::CloudController::SecurityGroup.make } let!(:running_default_sec_group) { VCAP::CloudCo...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/buildpacks_api_spec.rb
Ruby
apache-2.0
203
main
5,243
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Buildpacks', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:buildpacks) { (1..3).map { |i| VCAP::CloudController::Buildpack.make(name: "name_#{i}", position: i) } } let(:guid) { buildpac...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/domains_api_spec.rb
Ruby
apache-2.0
203
main
2,663
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Domains (deprecated)', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:domain) { VCAP::CloudController::SharedDomain.make } let(:guid) { domain.guid } authenticated_request describe...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/buildpack_cache_api_spec.rb
Ruby
apache-2.0
203
main
1,914
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Blobstores', type: :api do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:request_headers) { { 'AUTHORIZATION' => admin_auth_header } } let(:file) { File.expand_path('../../fixtures/good.zip', File.dirname(__FILE__)...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_instances_api_spec.rb
Ruby
apache-2.0
203
main
13,052
require 'spec_helper' require 'rspec_api_documentation/dsl' require 'uri' RSpec.resource 'Service Instances', type: %i[api legacy_api] do tags = %w[accounting mongodb] let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:service_broker) { VCAP::CloudController::ServiceBroker.make } let(:service...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/security_group_staging_defaults_api_spec.rb
Ruby
apache-2.0
203
main
1,299
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Security Group Staging Defaults', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:sec_group) { VCAP::CloudController::SecurityGroup.make } let!(:staging_default_sec_group) { VCAP::CloudCo...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/space_quota_definitions_api_spec.rb
Ruby
apache-2.0
203
main
4,911
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Space Quota Definitions', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:space_quota_definition) { VCAP::CloudController::SpaceQuotaDefinition.make } let!(:guid) { space_quota_definition....
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_plan_visibilities_api_spec.rb
Ruby
apache-2.0
203
main
2,078
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Service Plan Visibilities', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:service_plan_visibility) { VCAP::CloudController::ServicePlanVisibility.make } let(:guid) { service_plan_visibi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_bindings_api_spec.rb
Ruby
apache-2.0
203
main
2,380
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Service Bindings', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:service_binding) { VCAP::CloudController::ServiceBinding.make } let!(:v2_app) { VCAP::CloudController::ProcessModel.make...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/job_api_spec.rb
Ruby
apache-2.0
203
main
4,543
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Jobs', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } authenticated_request get '/v2/jobs/:guid' do class FakeJob def perform # NOOP end def job_name_in_config...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_brokers_api_spec.rb
Ruby
apache-2.0
203
main
4,794
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Service Brokers', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:service_brokers) { 3.times { VCAP::CloudController::ServiceBroker.make } } let(:service_broker) { VCAP::CloudController::...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_keys_api_spec.rb
Ruby
apache-2.0
203
main
1,381
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Service Keys', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:service_instance) { VCAP::CloudController::ManagedServiceInstance.make } let(:service_key) { VCAP::CloudController::ServiceKe...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/resource_matches_api_spec.rb
Ruby
apache-2.0
203
main
1,088
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Resource Match', type: %i[api legacy_api] do include_context 'resource pool' let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } authenticated_request put '/v2/resource_match' do example 'List all matching resources' ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/users_api_spec.rb
Ruby
apache-2.0
203
main
7,992
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Users', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:user) { VCAP::CloudController::User.make(default_space: space) } let(:guid) { user.guid } let(:space) { VCAP::CloudController::Sp...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/organizations_api_spec.rb
Ruby
apache-2.0
203
main
17,350
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Organizations', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:organization) { VCAP::CloudController::Organization.make } let(:quota_definition) { VCAP::CloudController::QuotaDefinition.m...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/private_domains_api_spec.rb
Ruby
apache-2.0
203
main
2,948
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Private Domains', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:guid) { VCAP::CloudController::PrivateDomain.first.guid } let!(:domains) { 3.times { VCAP::CloudController::PrivateDomain....
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/environment_variable_groups_api_spec.rb
Ruby
apache-2.0
203
main
3,299
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Environment Variable Groups', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:staging_group) { VCAP::CloudController::EnvironmentVariableGroup.staging } let(:running_group) { VCAP::CloudCo...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/apps_api_spec.rb
Ruby
apache-2.0
203
main
15,701
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Apps', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:admin_buildpack) { VCAP::CloudController::Buildpack.make } let!(:processes) { 3.times { VCAP::CloudController::ProcessModelFactory.ma...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/events_api_spec.rb
Ruby
apache-2.0
203
main
45,121
require 'spec_helper' require 'rspec_api_documentation/dsl' require 'cgi' RSpec.resource 'Events', type: %i[api legacy_api] do DOCUMENTED_EVENT_TYPES = %w[ app.crash audit.app.start audit.app.stop audit.app.update audit.app.create audit.app.delete-request audit.app.ssh-authorized audi...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/service_plans_api_spec.rb
Ruby
apache-2.0
203
main
1,835
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Service Plans', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:service_plan) { VCAP::CloudController::ServicePlan.make } let(:guid) { service_plan.guid } authenticated_request descr...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/quota_definitions_api_spec.rb
Ruby
apache-2.0
203
main
4,656
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Organization Quota Definitions', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:guid) { VCAP::CloudController::QuotaDefinition.make.guid } authenticated_request shared_context 'guid_p...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/services_api_spec.rb
Ruby
apache-2.0
203
main
4,900
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Services', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:service_broker) { VCAP::CloudController::ServiceBroker.make } let!(:service) { VCAP::CloudController::Service.make(service_broker...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/spaces_api_spec.rb
Ruby
apache-2.0
203
main
16,833
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Spaces', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let!(:space) { VCAP::CloudController::Space.make } let(:guid) { space.guid } authenticated_request shared_context 'guid_parameter'...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/app_usage_event_api_spec.rb
Ruby
apache-2.0
203
main
6,053
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'App Usage Events', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } authenticated_request let(:guid) { VCAP::CloudController::AppUsageEvent.first.guid } let!(:event1) { VCAP::CloudController:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/routes_api_spec.rb
Ruby
apache-2.0
203
main
7,281
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Routes', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:space_quota) { VCAP::CloudController::SpaceQuotaDefinition.make } let(:space) { VCAP::CloudController::Space.make(organization: spa...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/info_api_spec.rb
Ruby
apache-2.0
203
main
225
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Info', type: %i[api legacy_api] do get '/v2/info' do example 'Get Info' do do_request expect(status).to eq(200) end end end
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/security_groups_api_spec.rb
Ruby
apache-2.0
203
main
3,545
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Security Groups', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:security_group) { VCAP::CloudController::SecurityGroup.first } let(:guid) { security_group.guid } before do 3.times ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/documentation/apps_restage_api_spec.rb
Ruby
apache-2.0
203
main
975
require 'spec_helper' require 'rspec_api_documentation/dsl' RSpec.resource 'Apps', type: %i[api legacy_api] do let(:admin_auth_header) { admin_headers['HTTP_AUTHORIZATION'] } let(:space) { VCAP::CloudController::Space.make } let(:process) { VCAP::CloudController::ProcessModelFactory.make space: } let(:user) { ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/api/internal/log_access_api_spec.rb
Ruby
apache-2.0
203
main
693
require 'spec_helper' RSpec.describe 'GET /internal/v4/log_access/:guid', type: [:api] do include RequestSpecHelper context 'when the guid is for a v3 app' do let(:app_model) { VCAP::CloudController::AppModel.make } it 'queries the proper v3 app' do get "/internal/v4/log_access/#{app_model.guid}", ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/models/services/service_credential_binding_view_spec.rb
Ruby
apache-2.0
203
main
5,190
require 'spec_helper' module VCAP::CloudController module ServiceCredentialBinding RSpec.describe View do describe 'Associations' do describe 'service_instance_sti_eager_load' do it 'eager loads successfully' do instance1 = UserProvidedServiceInstance.make instance...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/performance/packages_controller_index_spec.rb
Ruby
apache-2.0
203
main
1,933
require 'spec_helper' require 'rails_helper' RSpec.describe PackagesController, type: :controller do describe '#index' do let(:user) { set_current_user(VCAP::CloudController::User.make) } let(:app_model) { VCAP::CloudController::AppModel.make } let(:space) { app_model.space } let(:space1) { VCAP::Clo...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/managed_service_instance_spec.rb
Ruby
apache-2.0
203
main
4,392
require 'spec_helper' module VCAP::CloudController RSpec.describe 'managed service instances spec' do include VCAP::CloudController::BrokerApiHelper context 'when updating a service instance' do let(:space) { Space.make } context 'when service plan is not public and not active' do let(:...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/user_provided_service_instance_spec.rb
Ruby
apache-2.0
203
main
1,890
require 'spec_helper' RSpec.describe 'User Provided Service Instance' do include VCAP::CloudController::BrokerApiHelper before do setup_cc create_app end let(:syslog_drain_url) { 'syslog://example.com:514' } let(:syslog_drain_url2) { 'syslog://example2.com:514' } it 'can be created, bound, unbou...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/async_bindings_spec.rb
Ruby
apache-2.0
203
main
20,170
require 'spec_helper' module VCAP::CloudController RSpec.describe 'async bindings' do include VCAP::CloudController::BrokerApiHelper context 'when the service broker can only perform async operations' do before do stub_request(:delete, %r{/v2/service_instances/[[:alnum:]-]+}). to_ret...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/orphan_mitigation_spec.rb
Ruby
apache-2.0
203
main
2,890
require 'spec_helper' module VCAP::CloudController RSpec.describe 'orphan mitigation' do include VCAP::CloudController::BrokerApiHelper let(:guid_pattern) { '[[:alnum:]-]+' } let(:basic_auth) { %w[username password] } before do setup_cc setup_broker end after { delete_broker } ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/service_broker_spec.rb
Ruby
apache-2.0
203
main
74,273
require 'spec_helper' RSpec.describe 'Service Broker' do include VCAP::CloudController::BrokerApiHelper let(:small_plan) do { id: 'plan-1', name: 'small', description: 'A small shared database with 100mb storage quota and 10 connections', schemas: { service_instance: { ...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.8_spec.rb
Ruby
apache-2.0
203
main
1,839
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.8' do include VCAP::CloudController::BrokerApiHelper let(:route) { VCAP::CloudController::Route.make(space: @space) } let(:catalog) { default_catalog(requires: ['route_forwarding']) } let(:service_broker_bind_reque...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.4_spec.rb
Ruby
apache-2.0
203
main
2,223
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.4' do include VCAP::CloudController::BrokerApiHelper before { setup_cc } let(:broker_url) { stubbed_broker_url } let(:broker_name) { 'broker-name' } let(:broker_auth_username) { stubbed_broker_username } l...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.0_spec.rb
Ruby
apache-2.0
203
main
13,373
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.0' do include VCAP::CloudController::BrokerApiHelper before { setup_cc } let(:space_guid) { @space_guid } let(:org_guid) { @org_guid } let(:api_header) { 'X-Broker-Api-Version' } let(:api_accepted_version...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.13_spec.rb
Ruby
apache-2.0
203
main
21,423
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.13' do include VCAP::CloudController::BrokerApiHelper let(:catalog) { default_catalog } before do setup_cc setup_broker(catalog) @broker = VCAP::CloudController::ServiceBroker.find guid: @broker_guid...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_versions_spec.rb
Ruby
apache-2.0
203
main
2,652
require 'spec_helper' RSpec.describe 'Broker API Versions' do let(:spec_sha) do { 'broker_api_v2.0_spec.rb' => '75687923a86d85bcafe69dc03aad13ff', 'broker_api_v2.1_spec.rb' => 'd2b36b0c028926a6cbf5164714b04545', 'broker_api_v2.2_spec.rb' => '7a34a4d835efeb0d129da559133ba5fe', 'broker_api_...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.5_spec.rb
Ruby
apache-2.0
203
main
2,051
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.5' do include VCAP::CloudController::BrokerApiHelper describe 'Arbitrary Parameters' do let(:catalog) { default_catalog plan_updateable: true } let(:parameters) { { 'foo' => 'bar' } } before do s...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.1_spec.rb
Ruby
apache-2.0
203
main
1,129
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.1' do include VCAP::CloudController::BrokerApiHelper before { setup_cc } describe 'Binding' do let(:space_guid) { @space_guid } let(:app_guid) { @app_guid } let(:service_instance_guid) { @service_ins...
github
cloudfoundry/cloud_controller_ng
https://github.com/cloudfoundry/cloud_controller_ng
spec/acceptance/broker_api_compatibility/broker_api_v2.9_spec.rb
Ruby
apache-2.0
203
main
3,561
require 'spec_helper' RSpec.describe 'Service Broker API integration' do describe 'v2.9' do include VCAP::CloudController::BrokerApiHelper let(:catalog) { default_catalog(plan_updateable: true) } before do setup_cc setup_broker(catalog) @broker = VCAP::CloudController::ServiceBroker.f...