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
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/dns/dns_tests.rb
Ruby
mit
304
master
7,876
Shindo.tests('Fog::DNS[:aws] | DNS requests', ['aws', 'dns']) do @org_zone_count = 0 @zone_id = '' @change_id = '' @new_records = [] @domain_name = generate_unique_domain @elb_connection = Fog::AWS::ELB.new @r53_connection = Fog::DNS[:aws] tests('success') do test('get current zone count') do ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/support/trusted_advisor_check_tests.rb
Ruby
mit
304
master
739
Shindo.tests("AWS::Support | describe_trusted_advisor_checks", ['aws', 'support']) do tests("#describe_trusted_advisor_checks").formats(AWS::Support::Formats::DESCRIBE_TRUSTED_ADVISOR_CHECKS) do Fog::AWS[:support].describe_trusted_advisor_checks.body end # things get weird in the mocked data depending on the...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/support/helper.rb
Ruby
mit
304
master
1,214
class AWS module Support module Formats TRUSTED_ADVISOR_CHECK_FORMAT = { 'id' => String, 'name' => String, 'description' => String, 'metadata' => Array, 'category' => String, } FLAGGED_RESOURCE = { 'isSuppressed' => Fog::Bool...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/region_tests.rb
Ruby
mit
304
master
1,746
Shindo.tests('Fog::Compute[:aws] | region requests', ['aws']) do @regions_format = { 'regionInfo' => [{ 'regionEndpoint' => String, 'regionName' => String }], 'requestId' => String } tests('success') do tests("#describe_regions").formats(@regions_format) do Fog::Compu...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/client_tests.rb
Ruby
mit
304
master
1,076
Shindo.tests('Fog::Compute[:aws] | account tests', ['aws']) do if Fog.mocking? tests('check for vpc') do tests('supports both vpc and ec2 in compatibility mode').succeeds do client = Fog::Compute[:aws] client.enable_ec2_classic data = Fog::Compute[:aws].describe_account_attributes.bo...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/key_pair_tests.rb
Ruby
mit
304
master
2,438
Shindo.tests('Fog::Compute[:aws] | key pair requests', ['aws']) do tests('success') do @keypair_format = { 'keyFingerprint' => String, 'keyName' => String, 'requestId' => String } @keypairs_format = { 'keySet' => [{ 'keyFingerprint' => String, 'key...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/subnet_tests.rb
Ruby
mit
304
master
2,874
Shindo.tests('Fog::Compute[:aws] | subnet requests', ['aws']) do @subnet_format = { 'subnetId' => String, 'state' => String, 'vpcId' => String, 'cidrBlock' => String, 'availableIpAddressCount' => String, 'availabilityZone' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/route_tests.rb
Ruby
mit
304
master
16,937
Shindo.tests('Fog::Compute[:aws] | route table requests', ['aws']) do @route_table_format = { 'routeTable' => [{ 'routeSet' => [{ 'destinationCidrBlock' => String, 'gatewayId' => String, 'state' => String, }], 'tagSet' => Hash...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/vpc_tests.rb
Ruby
mit
304
master
9,187
Shindo.tests('Fog::Compute[:aws] | vpc requests', ['aws']) do @create_vpcs_format = { 'vpcSet' => [{ 'vpcId' => String, 'state' => String, 'cidrBlock' => String, 'dhcpOptionsId' => String, 'tagSet' => Hash }], 'requestId' => String } ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/spot_instance_tests.rb
Ruby
mit
304
master
2,154
Shindo.tests('Fog::Compute[:aws] | spot instance requests', ['aws']) do @spot_instance_requests_format = { 'spotInstanceRequestSet' => [{ 'createTime' => Time, 'instanceId' => Fog::Nullable::String, 'launchedAvailabilityZone' => Fog::Nullable::String, 'launc...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/tag_tests.rb
Ruby
mit
304
master
4,315
Shindo.tests('Fog::Compute[:aws] | tag requests', ['aws']) do Fog::AWS::Compute::Mock.reset if Fog.mocking? @tags_format = { 'tagSet' => [{ 'key' => String, 'resourceId' => String, 'resourceType' => String, 'value' => Fog::Nullable::String }], 'requestId' =>...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/image_tests.rb
Ruby
mit
304
master
7,374
Shindo.tests('Fog::Compute[:aws] | image requests', ['aws']) do @describe_images_format = { 'imagesSet' => [{ 'architecture' => String, 'blockDeviceMapping' => [Fog::Nullable::Hash], 'description' => Fog::Nullable::String, 'hypervisor' => String, 'imageId'...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/availability_zone_tests.rb
Ruby
mit
304
master
702
Shindo.tests('Fog::Compute[:aws] | availability zone requests', ['aws']) do @availability_zones_format = { 'availabilityZoneInfo' => [{ 'messageSet' => [], 'regionName' => String, 'zoneName' => String, 'zoneState' => String }], 'requestId' => String } test...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/instance_attrib_tests.rb
Ruby
mit
304
master
7,682
Shindo.tests('Fog::Compute[:aws] | describe_instance_attribute request', ['aws']) do @instance_attributes = [ 'instanceType', 'kernel', 'ramdisk', 'userData', 'disableApiTermination', 'instanceInitiatedShutdownBehavior', 'rootDeviceName', 'blockDeviceMapping', 'productCodes', '...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/helper.rb
Ruby
mit
304
master
702
class AWS module Compute module Formats BASIC = { 'requestId' => String } DESCRIBE_IMAGES = BASIC.merge({ "imagesSet" => [{ "imageId" => String, "imageLocation" => String, "imageState" => String, "imageOwnerId" => String, "creati...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/internet_gateway_tests.rb
Ruby
mit
304
master
1,830
Shindo.tests('Fog::Compute[:aws] | internet_gateway requests', ['aws']) do @internet_gateways_format = { 'internetGatewaySet' => [{ 'internetGatewayId' => String, 'attachmentSet' => Hash, 'tagSet' => Fog::Nullable::Hash, }], 'requestId' => String } ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/dhcp_options_tests.rb
Ruby
mit
304
master
1,399
Shindo.tests('Fog::Compute[:aws] | dhcp_options requests', ['aws']) do @dhcp_options_format = { 'dhcpOptionsSet' => [{ 'dhcpOptionsId' => String, 'dhcpConfigurationSet' => Hash, 'tagSet' => Fog::Nullable::Hash, }], 'requestId' => String } tests('suc...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/spot_datafeed_subscription_tests.rb
Ruby
mit
304
master
1,753
Shindo.tests('Fog::Compute[:aws] | spot datafeed subscription requests', ['aws']) do @spot_datafeed_subscription_format = { 'spotDatafeedSubscription' => { 'bucket' => String, 'ownerId' => String, 'prefix' => String, 'state' => String }, 'requestId' => String } @directory ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/snapshot_tests.rb
Ruby
mit
304
master
2,585
Shindo.tests('Fog::Compute[:aws] | snapshot requests', ['aws']) do @snapshot_format = { 'description' => Fog::Nullable::String, 'encrypted' => Fog::Boolean, 'ownerId' => String, 'progress' => String, 'snapshotId' => String, 'startTime' => Time, 'status' => String, 'vo...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/network_acl_tests.rb
Ruby
mit
304
master
4,307
Shindo.tests('Fog::Compute[:aws] | network acl requests', ['aws']) do @network_acl_format = { 'networkAclId' => String, 'vpcId' => String, 'default' => Fog::Boolean, 'entrySet' => [{ 'ruleNumber' => Integer, 'protocol' => Integer, 'ruleAction' => Stri...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/security_group_tests.rb
Ruby
mit
304
master
20,644
Shindo.tests('Fog::Compute[:aws] | security group requests', ['aws']) do # See https://github.com/fog/fog/issues/2932hj0 pending @create_security_group_format = { 'requestId' => String, 'groupId' => String, 'return' => Fog::Boolean } @security_groups_format = { 'requestId' => ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/placement_group_tests.rb
Ruby
mit
304
master
1,759
Shindo.tests('Fog::Compute[:aws] | placement group requests', ['aws']) do @placement_group_format = { 'requestId' => String, 'placementGroupSet' => [{ 'groupName' => String, 'state' => String, 'strategy' => String }] } tests('success') do tests("#create_placement_gr...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/network_interface_tests.rb
Ruby
mit
304
master
10,570
Shindo.tests('Fog::Compute[:aws] | network interface requests', ['aws']) do @network_interface_format = { 'networkInterfaceId' => String, 'subnetId' => String, 'vpcId' => String, 'availabilityZone' => String, 'description' => Fog::Nullable::String, 'ownerId' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/volume_tests.rb
Ruby
mit
304
master
10,050
Shindo.tests('Fog::Compute[:aws] | volume requests', ['aws']) do @volume_format = { 'availabilityZone' => String, 'createTime' => Time, 'encrypted' => Fog::Boolean, 'iops' => Fog::Nullable::Integer, 'requestId' => String, 'size' => Integer, 'sna...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/address_tests.rb
Ruby
mit
304
master
5,747
Shindo.tests('Fog::Compute[:aws] | address requests', ['aws']) do compute = Fog::Compute[:aws] @addresses_format = { 'addressesSet' => [{ 'allocationId' => Fog::Nullable::String, 'associationId' => Fog::Nullable::String, 'domain' => String, 'instanceId' => Fog::Nullable::Stri...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/spot_price_history_tests.rb
Ruby
mit
304
master
599
Shindo.tests('Fog::Compute[:aws] | spot price history requests', ['aws']) do @spot_price_history_format = { 'spotPriceHistorySet' => [{ 'availabilityZone' => String, 'instanceType' => String, 'spotPrice' => Float, 'productDescription' => String, 'timestamp' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/instance_tests.rb
Ruby
mit
304
master
12,228
Shindo.tests('Fog::Compute[:aws] | instance requests', ['aws']) do @instance_format = { 'architecture' => String, 'amiLaunchIndex' => Integer, 'associatePublicIP' => Fog::Nullable::Boolean, 'attachmentId' => Fog::Nullable::String, 'blockDeviceMapping' => [Fog::Nullable::Hash...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/compute/assign_private_ip_tests.rb
Ruby
mit
304
master
2,368
Shindo.tests('Fog::Compute[:aws] | internet_gateway requests', ['aws']) do tests('success') do Fog::AWS::Compute::Mock.reset if Fog.mocking? @vpc=Fog::Compute[:aws].vpcs.create('cidr_block' => '10.0.10.0/24') @vpc_id = @vpc.id @subnet=Fog::Compute[:aws].subnets.create('vpc_id' => @vpc_id, 'cidr_blo...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/kms/helper.rb
Ruby
mit
304
master
1,385
class AWS module KMS module Formats BASIC = { 'ResponseMetadata' => { 'RequestId' => String } }.freeze DESCRIBE_KEY = { 'KeyMetadata' => { 'Arn' => String, 'AWSAccountId' => String, 'CreationDate' => Time, 'DeletionDate' => Fog::Nullable::...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/kms/key_tests.rb
Ruby
mit
304
master
4,652
KEY_SPECS = %w[RSA_2048 RSA_3072 RSA_4096 ECC_NIST_P256 ECC_NIST_P384 ECC_NIST_P521 ECC_SECG_P256K1].freeze SIGNING_ALGORITHMS = %w[RSASSA_PSS_SHA_256 RSASSA_PSS_SHA_384 RSASSA_PSS_SHA_512 RSASSA_PKCS1_V1_5_SHA_256 RSASSA_PKCS1_V1_5_SHA_384 RSASSA_PKCS1_V1_5_SHA_512 ECDSA_SHA_256 ECDSA_SHA_384 ECDSA_SHA_512] Shindo.te...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/efs/file_system_tests.rb
Ruby
mit
304
master
6,393
Shindo.tests('AWS::EFS | file systems', ['aws', 'efs']) do suffix = rand(65535).to_s(16) @creation_token = "fogtest#{suffix}" tests('success') do tests("#create_file_system('#{@creation_token}')").formats(AWS::EFS::Formats::FILE_SYSTEM_FORMAT) do result = Fog::AWS[:efs].create_file_system(@creation_to...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/efs/helper.rb
Ruby
mit
304
master
1,296
class AWS module EFS module Formats FILE_SYSTEM_FORMAT = { "CreationTime" => Float, "CreationToken" => String, "FileSystemId" => String, "LifeCycleState" => String, "Name" => Fog::Nullable::String, "NumberOfMountTar...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/kinesis/helper.rb
Ruby
mit
304
master
2,712
class AWS module Kinesis def wait_for(&block) Fog.wait_for do block.call.tap do print '.' end end end def wait_for_status(stream_name, status) wait_for do Fog::AWS[:kinesis].describe_stream("StreamName" => stream_name).body["StreamDescription"]["Stream...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/kinesis/stream_tests.rb
Ruby
mit
304
master
7,006
include AWS::Kinesis Shindo.tests('AWS::Kinesis | stream requests', ['aws', 'kinesis']) do Fog::AWS[:kinesis].reset_data if Fog.mocking? @stream_id = 'fog-test-stream' delete_if_exists(@stream_id) # ensure we start from a clean slate tests("#create_stream").returns("") do Fog::AWS[:kinesis].create_strea...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/cdn/cdn_tests.rb
Ruby
mit
304
master
6,594
Shindo.tests('Fog::CDN[:aws] | CDN requests', ['aws', 'cdn']) do @cf_connection = Fog::CDN[:aws] tests('distributions success') do test('get current distribution list count') do @count= 0 response = @cf_connection.get_distribution_list if response.status == 200 @distributions = res...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elb/policy_tests.rb
Ruby
mit
304
master
6,474
Shindo.tests('AWS::ELB | policy_tests', ['aws', 'elb']) do @load_balancer_id = 'fog-test-policies' tests('success') do listeners = [{'LoadBalancerPort' => 80, 'InstancePort' => 80, 'Protocol' => 'HTTP'}] Fog::AWS[:elb].create_load_balancer(['us-east-1a'], @load_balancer_id, listeners) tests("#describe...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elb/helper.rb
Ruby
mit
304
master
2,995
class AWS module ELB module Formats BASIC = { 'ResponseMetadata' => {'RequestId' => String} } LOAD_BALANCER = { "AvailabilityZones" => Array, "BackendServerDescriptions" => Array, "CanonicalHostedZoneName" => String, "CanonicalHostedZoneNameID" => String,...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elb/listener_tests.rb
Ruby
mit
304
master
3,545
Shindo.tests('AWS::ELB | listener_tests', ['aws', 'elb']) do @load_balancer_id = 'fog-test-listener' @key_name = 'fog-test' tests('success') do Fog::AWS[:elb].create_load_balancer(['us-east-1a'], @load_balancer_id, [{'LoadBalancerPort' => 80, 'InstancePort' => 80, 'Protocol' => 'HTTP'}]) @certificate = F...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elb/load_balancer_tests.rb
Ruby
mit
304
master
3,843
Shindo.tests('AWS::ELB | load_balancer_tests', ['aws', 'elb']) do @load_balancer_id = 'fog-test-elb' @key_name = 'fog-test' tests('success') do if (Fog::AWS[:iam].get_server_certificate(@key_name) rescue nil) Fog::AWS[:iam].delete_server_certificate(@key_name) end @certificate = Fog::AWS[:iam]...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/sqs/message_tests.rb
Ruby
mit
304
master
1,662
Shindo.tests('AWS::SQS | message requests', ['aws']) do tests('success') do @queue_url = Fog::AWS[:sqs].create_queue('fog_message_tests').body['QueueUrl'] send_message_format = AWS::SQS::Formats::BASIC.merge({ 'MessageId' => String, 'MD5OfMessageBody' => String }) tests("#send...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/sqs/queue_tests.rb
Ruby
mit
304
master
1,683
Shindo.tests('AWS::SQS | queue requests', ['aws']) do tests('success') do create_queue_format = AWS::SQS::Formats::BASIC.merge({ 'QueueUrl' => String }) tests("#create_queue('fog_queue_tests')").formats(create_queue_format) do data = Fog::AWS[:sqs].create_queue('fog_queue_tests').body ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/sns/subscription_tests.rb
Ruby
mit
304
master
2,763
Shindo.tests('AWS::SES | topic lifecycle tests', ['aws', 'sns']) do unless Fog.mocking? @topic_arn = Fog::AWS[:sns].create_topic('fog_subscription_tests').body['TopicArn'] @queue_url = Fog::AWS[:sqs].create_queue('fog_subscription_tests').body['QueueUrl'] @queue_arn = Fog::AWS[:sqs].get_queue_attributes(...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/sns/topic_tests.rb
Ruby
mit
304
master
1,905
Shindo.tests('AWS::SNS | topic lifecycle tests', ['aws', 'sns']) do tests('success') do tests("#create_topic('fog_topic_tests')").formats(AWS::SNS::Formats::BASIC.merge('TopicArn' => String)) do body = Fog::AWS[:sns].create_topic('fog_topic_tests').body @topic_arn = body["TopicArn"] body e...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/dynamodb/item_tests.rb
Ruby
mit
304
master
5,049
Shindo.tests('Fog::AWS[:dynamodb] | item requests', ['aws']) do @table_name = "fog_table_#{Time.now.to_f.to_s.gsub('.','')}" unless Fog.mocking? Fog::AWS[:dynamodb].create_table( @table_name, {'HashKeyElement' => {'AttributeName' => 'key', 'AttributeType' => 'S'}}, {'ReadCapacityUnits' => 5,...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/dynamodb/table_tests.rb
Ruby
mit
304
master
3,432
Shindo.tests('Fog::AWS[:dynamodb] | table requests', ['aws']) do @table_format = { 'CreationDateTime' => Float, 'KeySchema' => { 'HashKeyElement' => { 'AttributeName' => String, 'AttributeType' => String } }, 'ProvisionedThroughput' => { 'ReadCapacityUni...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/redshift/cluster_snapshot_tests.rb
Ruby
mit
304
master
3,388
Shindo.tests('Fog::Redshift[:aws] | cluster snapshot requests', ['aws']) do pending if Fog.mocking? suffix = rand(65536).to_s(16) identifier = "test-snapshot-#{suffix}" cluster = "test-cluster-#{suffix}" start_time = Fog::Time.now.to_iso8601_basic @cluster_snapshot_format = { 'Snapshot' => { "A...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/redshift/cluster_security_group_tests.rb
Ruby
mit
304
master
1,664
Shindo.tests('Fog::Redshift[:aws] | cluster security group requests', ['aws']) do pending if Fog.mocking? suffix = rand(65536).to_s(16) identifier = "test-cluster-security-group-#{suffix}" @cluster_security_group_format = { "ClusterSecurityGroup" => { "EC2SecurityGroups" => Fog::Nullable:...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/redshift/cluster_parameter_group_tests.rb
Ruby
mit
304
master
2,900
Shindo.tests('Fog::Redshift[:aws] | cluster parameter group requests', ['aws']) do pending if Fog.mocking? suffix = rand(65536).to_s(16) parameter_group = "test-cluster-parameter-group-#{suffix}" @cluster_parameter_format = { 'Parameter' => { "ParameterValue" => String, "DataType" => Stri...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/redshift/cluster_tests.rb
Ruby
mit
304
master
3,241
Shindo.tests('Fog::Redshift[:aws] | cluster requests', ['aws']) do pending if Fog.mocking? identifier = "test-cluster-#{rand(65536).to_s(16)}" @cluster_format = { 'Cluster' => { "ClusterParameterGroups" => [{ "ClusterParameterGroup" => { "ParameterApplyStatus" => String, "...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/emr/helper.rb
Ruby
mit
304
master
4,967
class AWS module EMR module Formats BASIC = { 'RequestId' => String } RUN_JOB_FLOW = BASIC.merge({ 'JobFlowId' => String }) ADD_INSTANCE_GROUPS = { 'JobFlowId' => String, 'InstanceGroupIds' => Array } SIMPLE_DESCRIBE_JOB_FLOW = { ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/emr/job_flow_tests.rb
Ruby
mit
304
master
2,301
Shindo.tests('AWS::EMR | job flows', ['aws', 'emr']) do pending if Fog.mocking? @job_flow_name = "fog_job_flow_#{Time.now.to_f.to_s.gsub('.','')}" @job_flow_options = { 'Instances' => { 'MasterInstanceType' => 'm1.small', 'SlaveInstanceType' => 'm1.small', 'InstanceCount' => 2, 'Pla...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/emr/instance_group_tests.rb
Ruby
mit
304
master
3,316
Shindo.tests('AWS::EMR | instance groups', ['aws', 'emr']) do pending if Fog.mocking? @job_flow_name = "fog_job_flow_#{Time.now.to_f.to_s.gsub('.','')}" @job_flow_options = { 'Instances' => { 'MasterInstanceType' => 'm1.small', 'SlaveInstanceType' => 'm1.small', 'InstanceCount' => 2, ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/auto_scaling/tag_tests.rb
Ruby
mit
304
master
2,326
Shindo.tests('AWS::AutoScaling | tag requests', ['aws', 'auto_scaling']) do image_id = { # Ubuntu 12.04 LTS 64-bit EBS 'ap-northeast-1' => 'ami-60c77761', 'ap-southeast-1' => 'ami-a4ca8df6', 'ap-southeast-2' => 'ami-fb8611c1', 'eu-west-1' => 'ami-e1e8d395', 'sa-east-1' => 'ami-8cd80691...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/auto_scaling/describe_types_tests.rb
Ruby
mit
304
master
3,295
Shindo.tests('AWS::AutoScaling | describe types requests', ['aws', 'auto_scaling']) do tests('success') do tests("#describe_adjustment_types").formats(AWS::AutoScaling::Formats::DESCRIBE_ADJUSTMENT_TYPES) do body = Fog::AWS[:auto_scaling].describe_adjustment_types.body [ 'ChangeInCapacity', ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/auto_scaling/model_tests.rb
Ruby
mit
304
master
7,809
Shindo.tests('AWS::AutoScaling | model_tests', ['aws', 'auto_scaling']) do tests('success') do lc = nil lc_id = 'fog-model-lc' tests('configurations') do tests('getting a missing configuration') do returns(nil) { Fog::AWS[:auto_scaling].configurations.get('fog-no-such-lc') } end ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/auto_scaling/helper.rb
Ruby
mit
304
master
6,670
class AWS module AutoScaling module Formats BASIC = { 'ResponseMetadata' => {'RequestId' => String} } PAGINATED = { 'NextToken' => Fog::Nullable::String } ACTIVITY = { 'ActivityId' => String, 'AutoScalingGroupName' => String, 'Cause' => Fog::...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/auto_scaling/notification_configuration_tests.rb
Ruby
mit
304
master
5,514
Shindo.tests('AWS::AutoScaling | notification configuration requests', ['aws', 'auto_scaling']) do image_id = { # Ubuntu 12.04 LTS 64-bit EBS 'ap-northeast-1' => 'ami-60c77761', 'ap-southeast-1' => 'ami-a4ca8df6', 'ap-southeast-2' => 'ami-fb8611c1', 'eu-west-1' => 'ami-e1e8d395', 'sa-east-1...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/auto_scaling/auto_scaling_tests.rb
Ruby
mit
304
master
5,491
Shindo.tests('AWS::AutoScaling | auto_scaling_tests', ['aws', 'auto_scaling']) do @asg_name = 'fog-test-asg' @lc_name = 'fog-test-lc' tests('success') do tests("#create_launch_configuration").formats(AWS::AutoScaling::Formats::BASIC) do image_id = 'ami-8c1fece5' instance_type = 't1.micro' #...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/helper.rb
Ruby
mit
304
master
3,926
class AWS module Elasticache module Formats BASIC = { 'ResponseMetadata' => {'RequestId' => String} } # Cache Security Groups SECURITY_GROUP = { 'EC2SecurityGroups' => Array, 'CacheSecurityGroupName' => String, 'Description' => String, ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/describe_reserved_cache_nodes.rb
Ruby
mit
304
master
407
Shindo.tests('AWS::Elasticache | describe reserved cache nodes', ['aws', 'elasticache']) do tests('success') do pending if Fog.mocking? tests( '#describe_reserved_cache_nodes' ).formats(AWS::Elasticache::Formats::RESERVED_CACHE_NODES) do Fog::AWS[:elasticache].describe_reserved_cache_nodes()...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/cache_cluster_tests.rb
Ruby
mit
304
master
4,988
Shindo.tests('AWS::Elasticache | cache cluster requests', ['aws', 'elasticache']) do tests('success') do # Randomize the cluster ID so tests can be fequently re-run CLUSTER_ID = "fog-test-cluster-#{rand(999).to_s}" # 20 chars max! NUM_NODES = 2 # Must be > 1, because one of the tests removes a node! ...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/describe_events.rb
Ruby
mit
304
master
357
Shindo.tests('AWS::Elasticache | describe cache cluster events', ['aws', 'elasticache']) do tests('success') do pending if Fog.mocking? tests( '#describe_events' ).formats(AWS::Elasticache::Formats::EVENT_LIST) do Fog::AWS[:elasticache].describe_events().body['Events'] end end tests...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/parameter_group_tests.rb
Ruby
mit
304
master
3,529
Shindo.tests('AWS::Elasticache | parameter group requests', ['aws', 'elasticache']) do tests('success') do pending if Fog.mocking? name = 'fog-test' description = 'Fog Test Parameter Group' tests( '#describe_engine_default_parameters' ).formats(AWS::Elasticache::Formats::ENGINE_DEFAULTS) do...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/subnet_group_tests.rb
Ruby
mit
304
master
2,028
Shindo.tests('AWS::Elasticache | subnet group requests', ['aws', 'elasticache']) do # random_differentiator # Useful when rapidly re-running tests, so we don't have to wait # several minutes for deleted VPCs/subnets to disappear suffix = rand(65536).to_s(16) @subnet_group_name = "fog-test-#{suffix}" vpc_ra...
github
fog/fog-aws
https://github.com/fog/fog-aws
tests/requests/elasticache/security_group_tests.rb
Ruby
mit
304
master
3,655
Shindo.tests('AWS::Elasticache | security group requests', ['aws', 'elasticache']) do tests('success') do name = 'fog-test' description = 'Fog Test Security Group' tests( '#create_cache_security_group' ).formats(AWS::Elasticache::Formats::SINGLE_SECURITY_GROUP) do body = Fog::AWS[:elastic...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws.rb
Ruby
mit
304
master
9,381
require 'base64' require 'fog/core' require 'fog/xml' require 'fog/json' require File.expand_path('../aws/version', __FILE__) module Fog module AWS extend Fog::Provider autoload :CredentialFetcher, File.expand_path('../aws/credential_fetcher', __FILE__) autoload :Errors, File.expand_path('../aws/errors...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/simpledb.rb
Ruby
mit
304
master
7,135
module Fog module AWS class SimpleDB < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :nil_string, :path, :port, :scheme, :persistent, :region, :aws_session_token, :use_iam_profile, :aws_credentials_expire_at...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/compute.rb
Ruby
mit
304
master
25,490
module Fog module AWS class Compute < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class RequestLimitExceeded < Fog::Errors::Error; end requires :aws_access_key_id, :aws_secret_access_key recognizes :endpoint, :region, :host, :path, :port, :scheme, :persistent, :aws_se...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/ses.rb
Ruby
mit
304
master
5,102
module Fog module AWS class SES < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class InvalidParameterError < Fog::Errors::Error; end class MessageRejected < Fog::Errors::Error; end requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :pa...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/rds.rb
Ruby
mit
304
master
11,065
module Fog module AWS class RDS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class IdentifierTaken < Fog::Errors::Error; end class InvalidParameterCombination < Fog::Errors::Error; end class AuthorizationAlreadyExists < Fog::Errors::Error; end requires :aws_ac...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/mock.rb
Ruby
mit
304
master
5,258
module Fog module AWS class Mock def self.arn(vendor, account_id, path, region = nil) "arn:aws:#{vendor}:#{region}:#{account_id}:#{path}" end def self.availability_zone(region) "#{region}#{Fog::Mock.random_selection('abcd', 1)}" end def self.box_usage sprint...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/kms.rb
Ruby
mit
304
master
6,268
module Fog module AWS class KMS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods DependencyTimeoutException = Class.new(Fog::Errors::Error) DisabledException = Class.new(Fog::Errors::Error) InvalidArnException = Class.new(Fog::Errors::Err...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/data_pipeline.rb
Ruby
mit
304
master
6,240
module Fog module AWS class DataPipeline < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instru...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/service_mapper.rb
Ruby
mit
304
master
4,725
module Fog module AWS # @api private # # This is a temporary lookup helper for extracting into external module. # # Cleaner provider/service registration will replace this code. # class ServiceMapper def self.class_for(key) case key when :auto_scaling Fo...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/dns.rb
Ruby
mit
304
master
12,031
module Fog module AWS class DNS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :path, :port, :scheme, :version, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrumentor, ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/errors.rb
Ruby
mit
304
master
1,435
module Fog module AWS module Errors def self.match_error(error) if !Fog::AWS.json_response?(error.response) matchers = [ lambda {|s| s.match(/(?:.*<Code>(.*)<\/Code>)(?:.*<Message>(.*)<\/Message>)/m)}, lambda {|s| s.match(/.*<(.+Exception)>(?:.*<Message>(.*)<\/Messa...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/sqs.rb
Ruby
mit
304
master
5,325
module Fog module AWS class SQS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :aws_session_token, :use_iam_profile, :aws_credentials_expire_at, :instrumentor, :...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/lambda.rb
Ruby
mit
304
master
7,069
module Fog module AWS class Lambda < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :path, :port, :scheme, :persistent, :region, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :version, :in...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/cloud_watch.rb
Ruby
mit
304
master
5,363
module Fog module AWS class CloudWatch < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrume...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/redshift.rb
Ruby
mit
304
master
5,026
module Fog module AWS class Redshift < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrument...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/efs.rb
Ruby
mit
304
master
6,597
module Fog module AWS class EFS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class FileSystemInUse < Fog::Errors::Error; end class IncorrectFileSystemLifeCycleState < Fog::Errors::Error; end class InvalidSubnet < Fog::Errors::Error; end requires :aws_access_key...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/storage.rb
Ruby
mit
304
master
31,531
module Fog module AWS class Storage < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods COMPLIANT_BUCKET_NAMES = /^(?:[a-z]|\d(?!\d{0,2}(?:\.\d{1,3}){3}$))(?:[a-z0-9]|\.(?![\.\-])|\-(?![\.])){1,61}[a-z0-9]$/ DEFAULT_REGION = 'us-east-1' ACCELERATION_HOST = 's3-accelerate.am...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/support.rb
Ruby
mit
304
master
8,912
module Fog module AWS class Support < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :path, :port, :scheme, :instrumentor, :instrumentor_name, :region, :persistent, :aws_session_token, :aws_credentials_expire...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/elasticache.rb
Ruby
mit
304
master
8,360
module Fog module AWS class Elasticache < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class IdentifierTaken < Fog::Errors::Error; end class InvalidInstance < Fog::Errors::Error; end class AuthorizationAlreadyExists < Fog::Errors::Error; end requires :aws_access_...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/kinesis.rb
Ruby
mit
304
master
6,980
module Fog module AWS class Kinesis < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class ExpiredIterator < Fog::Errors::Error; end class LimitExceeded < Fog::Errors::Error; end class ResourceInUse < Fog::Errors::Error; end class ResourceNotFound < Fog::Errors::Err...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/credential_fetcher.rb
Ruby
mit
304
master
7,949
# frozen_string_literal: true require 'securerandom' module Fog module AWS module CredentialFetcher INSTANCE_METADATA_HOST = "http://169.254.169.254" INSTANCE_METADATA_TOKEN = "/latest/api/token" INSTANCE_METADATA_PATH = "/latest/meta-data/iam/security-credentials/" INSTANCE_METADATA_AZ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/iam.rb
Ruby
mit
304
master
12,455
module Fog module AWS class IAM < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class EntityAlreadyExists < Fog::AWS::IAM::Error; end class KeyPairMismatch < Fog::AWS::IAM::Error; end class LimitExceeded < Fog::AWS::IAM::Error; end class MalformedCertificate < Fog:...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/sns.rb
Ruby
mit
304
master
5,124
module Fog module AWS class SNS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :path, :port, :scheme, :persistent, :region, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrumentor, :...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/federation.rb
Ruby
mit
304
master
1,394
module Fog module AWS class Federation < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods recognizes :instrumentor, :instrumentor_name request_path 'fog/aws/requests/federation' request 'get_signin_token' class Mock def self.data @data ||= {} ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/elb.rb
Ruby
mit
304
master
9,291
module Fog module AWS class ELB < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class DuplicatePolicyName < Fog::Errors::Error; end class IdentifierTaken < Fog::Errors::Error; end class InvalidInstance < Fog::Errors::Error; end class...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/ecs.rb
Ruby
mit
304
master
6,082
module Fog module AWS class ECS < Fog::Service requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :version, :instrumentor, :instrumentor_name,:sts_endpoint request_...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/glacier.rb
Ruby
mit
304
master
8,743
module Fog module AWS class Glacier < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrumento...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/emr.rb
Ruby
mit
304
master
4,703
module Fog module AWS class EMR < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class IdentifierTaken < Fog::Errors::Error; end requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_sess...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/beanstalk.rb
Ruby
mit
304
master
5,583
module Fog module AWS class ElasticBeanstalk < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class InvalidParameterError < Fog::Errors::Error; end requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/cdn.rb
Ruby
mit
304
master
8,145
module Fog module AWS class CDN < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :path, :port, :scheme, :version, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrumentor, ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/auto_scaling.rb
Ruby
mit
304
master
9,814
module Fog module AWS class AutoScaling < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class IdentifierTaken < Fog::Errors::Error; end class ResourceInUse < Fog::Errors::Error; end class ValidationError < Fog::Errors::Error; end requires :aws_access_key_id, :aws_...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/dynamodb.rb
Ruby
mit
304
master
4,683
module Fog module AWS class DynamoDB < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :aws_session_token, :host, :path, :port, :scheme, :persistent, :region, :use_iam_profile, :aws_credentials_expire_at, :instrument...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/cloud_formation.rb
Ruby
mit
304
master
5,193
module Fog module AWS class CloudFormation < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods requires :aws_access_key_id, :aws_secret_access_key recognizes :host, :path, :port, :scheme, :persistent, :region, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :inst...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/elbv2.rb
Ruby
mit
304
master
2,012
module Fog module AWS class ELBV2 < ELB requires :aws_access_key_id, :aws_secret_access_key recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :version, :instrumentor, :instrumentor_name,:sts_endpoint request_path 'fo...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/sts.rb
Ruby
mit
304
master
6,368
module Fog module AWS class STS < Fog::Service extend Fog::AWS::CredentialFetcher::ServiceMethods class EntityAlreadyExists < Fog::AWS::STS::Error; end class ValidationError < Fog::AWS::STS::Error; end class AwsAccessKeysMissing < Fog::AWS::STS::Error; end recognizes :region, :aws_...