launchdarkly_api 2.0.10 → 2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +153 -151
- data/docs/AuditLogApi.md +7 -7
- data/docs/{Action.md → CopyActions.md} +1 -1
- data/docs/CustomProperty.md +1 -1
- data/docs/CustomRole.md +1 -1
- data/docs/CustomRoleBody.md +1 -1
- data/docs/CustomRoles.md +1 -1
- data/docs/CustomRolesApi.md +7 -6
- data/docs/CustomerMetricsApi.md +511 -0
- data/docs/DataExportDestinationsApi.md +293 -0
- data/docs/Destination.md +14 -0
- data/docs/DestinationAmazonKinesis.md +10 -0
- data/docs/DestinationBody.md +11 -0
- data/docs/DestinationGooglePubSub.md +9 -0
- data/docs/DestinationMParticle.md +11 -0
- data/docs/{CustomRoleKeyOrId.md → DestinationSegment.md} +2 -1
- data/docs/Destinations.md +9 -0
- data/docs/Environment.md +2 -0
- data/docs/EnvironmentPost.md +5 -0
- data/docs/EnvironmentsApi.md +11 -10
- data/docs/EvaluationUsageError.md +9 -0
- data/docs/Events.md +8 -0
- data/docs/FeatureFlag.md +4 -1
- data/docs/FeatureFlagConfig.md +0 -1
- data/docs/FeatureFlagCopyBody.md +12 -0
- data/docs/FeatureFlagCopyObject.md +9 -0
- data/docs/FeatureFlagStatus.md +1 -1
- data/docs/FeatureFlagStatusAcrossEnvironments.md +10 -0
- data/docs/FeatureFlagStatusForQueriedEnvironment.md +10 -0
- data/docs/FeatureFlagsApi.md +136 -17
- data/docs/MAU.md +10 -0
- data/docs/{Actions.md → MAUMetadata.md} +1 -1
- data/docs/MAUbyCategory.md +10 -0
- data/docs/Member.md +2 -0
- data/docs/Members.md +1 -1
- data/docs/MembersBody.md +1 -1
- data/docs/Policy.md +4 -2
- data/docs/ProjectBody.md +2 -0
- data/docs/ProjectsApi.md +7 -6
- data/docs/Rollout.md +1 -0
- data/docs/Statement.md +4 -4
- data/docs/Stream.md +10 -0
- data/docs/StreamBySDK.md +10 -0
- data/docs/StreamBySDKLinks.md +9 -0
- data/docs/StreamBySDKLinksMetadata.md +10 -0
- data/docs/StreamLinks.md +10 -0
- data/docs/StreamSDKVersion.md +9 -0
- data/docs/StreamSDKVersionData.md +9 -0
- data/docs/StreamUsageError.md +9 -0
- data/docs/StreamUsageLinks.md +10 -0
- data/docs/StreamUsageMetadata.md +10 -0
- data/docs/StreamUsageSeries.md +9 -0
- data/docs/Streams.md +8 -0
- data/docs/TeamMembersApi.md +7 -6
- data/docs/Usage.md +9 -0
- data/docs/{CustomProperties.md → UsageError.md} +2 -1
- data/docs/UsageLinks.md +10 -0
- data/docs/UserSegmentsApi.md +18 -17
- data/docs/UserSettingsApi.md +11 -11
- data/docs/UsersApi.md +15 -15
- data/docs/Webhook.md +1 -0
- data/docs/WebhookBody.md +2 -0
- data/docs/WebhooksApi.md +7 -6
- data/launchdarkly_api.gemspec +5 -6
- data/lib/launchdarkly_api/api/audit_log_api.rb +13 -19
- data/lib/launchdarkly_api/api/custom_roles_api.rb +23 -37
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +519 -0
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +330 -0
- data/lib/launchdarkly_api/api/environments_api.rb +20 -31
- data/lib/launchdarkly_api/api/feature_flags_api.rb +150 -43
- data/lib/launchdarkly_api/api/projects_api.rb +23 -37
- data/lib/launchdarkly_api/api/root_api.rb +6 -9
- data/lib/launchdarkly_api/api/team_members_api.rb +23 -37
- data/lib/launchdarkly_api/api/user_segments_api.rb +23 -37
- data/lib/launchdarkly_api/api/user_settings_api.rb +12 -21
- data/lib/launchdarkly_api/api/users_api.rb +17 -29
- data/lib/launchdarkly_api/api/webhooks_api.rb +23 -37
- data/lib/launchdarkly_api/api_client.rb +10 -10
- data/lib/launchdarkly_api/api_error.rb +2 -2
- data/lib/launchdarkly_api/configuration.rb +3 -3
- data/lib/launchdarkly_api/models/audit_log_entries.rb +7 -12
- data/lib/launchdarkly_api/models/audit_log_entry.rb +7 -12
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +7 -12
- data/lib/launchdarkly_api/models/clause.rb +7 -12
- data/lib/launchdarkly_api/models/copy_actions.rb +34 -0
- data/lib/launchdarkly_api/models/custom_property.rb +13 -14
- data/lib/launchdarkly_api/models/custom_property_values.rb +7 -11
- data/lib/launchdarkly_api/models/custom_role.rb +9 -13
- data/lib/launchdarkly_api/models/custom_role_body.rb +12 -16
- data/lib/launchdarkly_api/models/custom_roles.rb +11 -14
- data/lib/launchdarkly_api/models/destination.rb +276 -0
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +201 -0
- data/lib/launchdarkly_api/models/destination_body.rb +263 -0
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +192 -0
- data/lib/launchdarkly_api/models/destination_m_particle.rb +210 -0
- data/lib/launchdarkly_api/models/destination_segment.rb +183 -0
- data/lib/launchdarkly_api/models/destinations.rb +194 -0
- data/lib/launchdarkly_api/models/environment.rb +29 -14
- data/lib/launchdarkly_api/models/environment_post.rb +64 -17
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +192 -0
- data/lib/launchdarkly_api/models/{action.rb → events.rb} +17 -13
- data/lib/launchdarkly_api/models/fallthrough.rb +7 -12
- data/lib/launchdarkly_api/models/feature_flag.rb +46 -16
- data/lib/launchdarkly_api/models/feature_flag_body.rb +10 -15
- data/lib/launchdarkly_api/models/feature_flag_config.rb +8 -24
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +226 -0
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +199 -0
- data/lib/launchdarkly_api/models/feature_flag_status.rb +22 -26
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +203 -0
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +236 -0
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +7 -12
- data/lib/launchdarkly_api/models/feature_flags.rb +7 -12
- data/lib/launchdarkly_api/models/id.rb +7 -11
- data/lib/launchdarkly_api/models/link.rb +7 -12
- data/lib/launchdarkly_api/models/links.rb +7 -12
- data/lib/launchdarkly_api/models/ma_uby_category.rb +205 -0
- data/lib/launchdarkly_api/models/mau.rb +205 -0
- data/lib/launchdarkly_api/models/{actions.rb → mau_metadata.rb} +8 -13
- data/lib/launchdarkly_api/models/member.rb +26 -13
- data/lib/launchdarkly_api/models/members.rb +11 -14
- data/lib/launchdarkly_api/models/members_body.rb +9 -14
- data/lib/launchdarkly_api/models/patch_comment.rb +7 -12
- data/lib/launchdarkly_api/models/patch_operation.rb +10 -15
- data/lib/launchdarkly_api/models/policy.rb +40 -17
- data/lib/launchdarkly_api/models/prerequisite.rb +7 -12
- data/lib/launchdarkly_api/models/project.rb +7 -12
- data/lib/launchdarkly_api/models/project_body.rb +30 -15
- data/lib/launchdarkly_api/models/projects.rb +7 -12
- data/lib/launchdarkly_api/models/role.rb +7 -8
- data/lib/launchdarkly_api/models/rollout.rb +17 -13
- data/lib/launchdarkly_api/models/rule.rb +7 -12
- data/lib/launchdarkly_api/models/statement.rb +35 -31
- data/lib/launchdarkly_api/models/statements.rb +7 -12
- data/lib/launchdarkly_api/models/stream.rb +205 -0
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +205 -0
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +192 -0
- data/lib/launchdarkly_api/models/{resources.rb → stream_by_sdk_links_metadata.rb} +34 -12
- data/lib/launchdarkly_api/models/stream_links.rb +204 -0
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +194 -0
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +194 -0
- data/lib/launchdarkly_api/models/stream_usage_error.rb +192 -0
- data/lib/launchdarkly_api/models/stream_usage_links.rb +204 -0
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +203 -0
- data/lib/launchdarkly_api/models/stream_usage_series.rb +194 -0
- data/lib/launchdarkly_api/models/{custom_properties.rb → streams.rb} +17 -13
- data/lib/launchdarkly_api/models/target.rb +7 -12
- data/lib/launchdarkly_api/models/usage.rb +194 -0
- data/lib/launchdarkly_api/models/{custom_role_key_or_id.rb → usage_error.rb} +17 -13
- data/lib/launchdarkly_api/models/usage_links.rb +204 -0
- data/lib/launchdarkly_api/models/user.rb +7 -12
- data/lib/launchdarkly_api/models/user_flag_setting.rb +7 -12
- data/lib/launchdarkly_api/models/user_flag_settings.rb +7 -12
- data/lib/launchdarkly_api/models/user_record.rb +7 -12
- data/lib/launchdarkly_api/models/user_segment.rb +10 -15
- data/lib/launchdarkly_api/models/user_segment_body.rb +9 -14
- data/lib/launchdarkly_api/models/user_segment_rule.rb +7 -12
- data/lib/launchdarkly_api/models/user_segments.rb +7 -12
- data/lib/launchdarkly_api/models/user_settings_body.rb +7 -12
- data/lib/launchdarkly_api/models/users.rb +7 -12
- data/lib/launchdarkly_api/models/variation.rb +8 -13
- data/lib/launchdarkly_api/models/webhook.rb +17 -13
- data/lib/launchdarkly_api/models/webhook_body.rb +33 -17
- data/lib/launchdarkly_api/models/webhooks.rb +7 -12
- data/lib/launchdarkly_api/models/weighted_variation.rb +7 -12
- data/lib/launchdarkly_api/version.rb +3 -3
- data/lib/launchdarkly_api.rb +36 -8
- data/openapi.yml +1004 -115
- data/spec/api/audit_log_api_spec.rb +6 -8
- data/spec/api/custom_roles_api_spec.rb +8 -13
- data/spec/api/customer_metrics_api_spec.rb +141 -0
- data/spec/api/data_export_destinations_api_spec.rb +98 -0
- data/spec/api/environments_api_spec.rb +7 -11
- data/spec/api/feature_flags_api_spec.rb +36 -16
- data/spec/api/projects_api_spec.rb +8 -13
- data/spec/api/root_api_spec.rb +3 -4
- data/spec/api/team_members_api_spec.rb +8 -13
- data/spec/api/user_segments_api_spec.rb +8 -13
- data/spec/api/user_settings_api_spec.rb +5 -8
- data/spec/api/users_api_spec.rb +7 -11
- data/spec/api/webhooks_api_spec.rb +8 -13
- data/spec/api_client_spec.rb +36 -36
- data/spec/configuration_spec.rb +10 -10
- data/spec/models/audit_log_entries_spec.rb +4 -5
- data/spec/models/audit_log_entry_spec.rb +14 -15
- data/spec/models/audit_log_entry_target_spec.rb +5 -6
- data/spec/models/clause_spec.rb +6 -7
- data/spec/models/{action_spec.rb → copy_actions_spec.rb} +8 -9
- data/spec/models/custom_property_spec.rb +4 -5
- data/spec/models/custom_property_values_spec.rb +2 -3
- data/spec/models/custom_role_body_spec.rb +6 -7
- data/spec/models/custom_role_spec.rb +8 -9
- data/spec/models/custom_roles_spec.rb +4 -5
- data/spec/models/destination_amazon_kinesis_spec.rb +53 -0
- data/spec/models/destination_body_spec.rb +63 -0
- data/spec/models/destination_google_pub_sub_spec.rb +47 -0
- data/spec/models/destination_m_particle_spec.rb +59 -0
- data/spec/models/destination_segment_spec.rb +41 -0
- data/spec/models/destination_spec.rb +81 -0
- data/spec/models/destinations_spec.rb +47 -0
- data/spec/models/environment_post_spec.rb +36 -7
- data/spec/models/environment_spec.rb +25 -14
- data/spec/models/evaluation_usage_error_spec.rb +47 -0
- data/spec/models/events_spec.rb +41 -0
- data/spec/models/fallthrough_spec.rb +4 -5
- data/spec/models/feature_flag_body_spec.rb +9 -10
- data/spec/models/feature_flag_config_spec.rb +14 -21
- data/spec/models/feature_flag_copy_body_spec.rb +65 -0
- data/spec/models/feature_flag_copy_object_spec.rb +47 -0
- data/spec/models/feature_flag_spec.rb +35 -18
- data/spec/models/feature_flag_status_across_environments_spec.rb +53 -0
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +57 -0
- data/spec/models/feature_flag_status_spec.rb +14 -15
- data/spec/models/feature_flag_statuses_spec.rb +4 -5
- data/spec/models/feature_flags_spec.rb +4 -5
- data/spec/models/id_spec.rb +2 -3
- data/spec/models/link_spec.rb +4 -5
- data/spec/models/links_spec.rb +4 -5
- data/spec/models/ma_uby_category_spec.rb +53 -0
- data/spec/models/{actions_spec.rb → mau_metadata_spec.rb} +8 -9
- data/spec/models/mau_spec.rb +53 -0
- data/spec/models/member_spec.rb +21 -10
- data/spec/models/members_body_spec.rb +8 -9
- data/spec/models/members_spec.rb +4 -5
- data/spec/models/patch_comment_spec.rb +4 -5
- data/spec/models/patch_operation_spec.rb +5 -6
- data/spec/models/policy_spec.rb +17 -6
- data/spec/models/prerequisite_spec.rb +4 -5
- data/spec/models/project_body_spec.rb +17 -6
- data/spec/models/project_spec.rb +8 -9
- data/spec/models/projects_spec.rb +4 -5
- data/spec/models/role_spec.rb +2 -3
- data/spec/models/rollout_spec.rb +9 -4
- data/spec/models/rule_spec.rb +6 -7
- data/spec/models/statement_spec.rb +13 -14
- data/spec/models/statements_spec.rb +2 -3
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +53 -0
- data/spec/models/stream_by_sdk_links_spec.rb +47 -0
- data/spec/models/stream_by_sdk_spec.rb +53 -0
- data/spec/models/stream_links_spec.rb +53 -0
- data/spec/models/stream_sdk_version_data_spec.rb +47 -0
- data/spec/models/stream_sdk_version_spec.rb +47 -0
- data/spec/models/stream_spec.rb +53 -0
- data/spec/models/stream_usage_error_spec.rb +47 -0
- data/spec/models/stream_usage_links_spec.rb +53 -0
- data/spec/models/stream_usage_metadata_spec.rb +53 -0
- data/spec/models/stream_usage_series_spec.rb +47 -0
- data/spec/models/streams_spec.rb +41 -0
- data/spec/models/target_spec.rb +4 -5
- data/spec/models/usage_error_spec.rb +41 -0
- data/spec/models/usage_links_spec.rb +53 -0
- data/spec/models/usage_spec.rb +47 -0
- data/spec/models/user_flag_setting_spec.rb +5 -6
- data/spec/models/user_flag_settings_spec.rb +4 -5
- data/spec/models/user_record_spec.rb +7 -8
- data/spec/models/user_segment_body_spec.rb +6 -7
- data/spec/models/user_segment_rule_spec.rb +5 -6
- data/spec/models/user_segment_spec.rb +12 -13
- data/spec/models/user_segments_spec.rb +4 -5
- data/spec/models/user_settings_body_spec.rb +3 -4
- data/spec/models/user_spec.rb +13 -14
- data/spec/models/users_spec.rb +5 -6
- data/spec/models/variation_spec.rb +5 -6
- data/spec/models/webhook_body_spec.rb +19 -8
- data/spec/models/webhook_spec.rb +15 -10
- data/spec/models/webhooks_spec.rb +4 -5
- data/spec/models/weighted_variation_spec.rb +4 -5
- data/spec/spec_helper.rb +2 -2
- metadata +187 -74
- data/docs/Resource.md +0 -7
- data/docs/Resources.md +0 -7
- data/lib/launchdarkly_api/models/resource.rb +0 -179
- data/spec/models/custom_properties_spec.rb +0 -36
- data/spec/models/custom_role_key_or_id_spec.rb +0 -36
- data/spec/models/resource_spec.rb +0 -36
- data/spec/models/resources_spec.rb +0 -36
data/spec/api/root_api_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,12 +33,11 @@ describe 'RootApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_root
|
36
|
-
#
|
37
36
|
# You can issue a GET request to the root resource to find all of the resource categories supported by the API.
|
38
37
|
# @param [Hash] opts the optional parameters
|
39
38
|
# @return [Links]
|
40
39
|
describe 'get_root test' do
|
41
|
-
it
|
40
|
+
it 'should work' do
|
42
41
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
42
|
end
|
44
43
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,60 +34,55 @@ describe 'TeamMembersApi' do
|
|
34
34
|
|
35
35
|
# unit tests for delete_member
|
36
36
|
# Delete a team member by ID.
|
37
|
-
#
|
38
37
|
# @param member_id The member ID.
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
39
|
# @return [nil]
|
41
40
|
describe 'delete_member test' do
|
42
|
-
it
|
41
|
+
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
47
46
|
# unit tests for get_member
|
48
47
|
# Get a single team member by ID.
|
49
|
-
#
|
50
48
|
# @param member_id The member ID.
|
51
49
|
# @param [Hash] opts the optional parameters
|
52
50
|
# @return [Member]
|
53
51
|
describe 'get_member test' do
|
54
|
-
it
|
52
|
+
it 'should work' do
|
55
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
59
57
|
# unit tests for get_members
|
60
58
|
# Returns a list of all members in the account.
|
61
|
-
#
|
62
59
|
# @param [Hash] opts the optional parameters
|
63
60
|
# @return [Members]
|
64
61
|
describe 'get_members test' do
|
65
|
-
it
|
62
|
+
it 'should work' do
|
66
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
64
|
end
|
68
65
|
end
|
69
66
|
|
70
67
|
# unit tests for patch_member
|
71
68
|
# Modify a team member by ID.
|
72
|
-
#
|
73
69
|
# @param member_id The member ID.
|
74
70
|
# @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
75
71
|
# @param [Hash] opts the optional parameters
|
76
72
|
# @return [Member]
|
77
73
|
describe 'patch_member test' do
|
78
|
-
it
|
74
|
+
it 'should work' do
|
79
75
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
76
|
end
|
81
77
|
end
|
82
78
|
|
83
79
|
# unit tests for post_members
|
84
80
|
# Invite new members.
|
85
|
-
#
|
86
81
|
# @param members_body New members to invite.
|
87
82
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @return [
|
83
|
+
# @return [Members]
|
89
84
|
describe 'post_members test' do
|
90
|
-
it
|
85
|
+
it 'should work' do
|
91
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
87
|
end
|
93
88
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,49 +34,45 @@ describe 'UserSegmentsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for delete_user_segment
|
36
36
|
# Delete a user segment.
|
37
|
-
#
|
38
37
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
39
38
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
40
39
|
# @param user_segment_key The user segment's key. The key identifies the user segment in your code.
|
41
40
|
# @param [Hash] opts the optional parameters
|
42
41
|
# @return [nil]
|
43
42
|
describe 'delete_user_segment test' do
|
44
|
-
it
|
43
|
+
it 'should work' do
|
45
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
49
48
|
# unit tests for get_user_segment
|
50
49
|
# Get a single user segment by key.
|
51
|
-
#
|
52
50
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
53
51
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
54
52
|
# @param user_segment_key The user segment's key. The key identifies the user segment in your code.
|
55
53
|
# @param [Hash] opts the optional parameters
|
56
54
|
# @return [UserSegment]
|
57
55
|
describe 'get_user_segment test' do
|
58
|
-
it
|
56
|
+
it 'should work' do
|
59
57
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
58
|
end
|
61
59
|
end
|
62
60
|
|
63
61
|
# unit tests for get_user_segments
|
64
62
|
# Get a list of all user segments in the given project.
|
65
|
-
#
|
66
63
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
67
64
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
68
65
|
# @param [Hash] opts the optional parameters
|
69
66
|
# @option opts [String] :tag Filter by tag. A tag can be used to group flags across projects.
|
70
67
|
# @return [UserSegments]
|
71
68
|
describe 'get_user_segments test' do
|
72
|
-
it
|
69
|
+
it 'should work' do
|
73
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
71
|
end
|
75
72
|
end
|
76
73
|
|
77
74
|
# unit tests for patch_user_segment
|
78
75
|
# Perform a partial update to a user segment.
|
79
|
-
#
|
80
76
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
81
77
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
82
78
|
# @param user_segment_key The user segment's key. The key identifies the user segment in your code.
|
@@ -84,21 +80,20 @@ describe 'UserSegmentsApi' do
|
|
84
80
|
# @param [Hash] opts the optional parameters
|
85
81
|
# @return [UserSegment]
|
86
82
|
describe 'patch_user_segment test' do
|
87
|
-
it
|
83
|
+
it 'should work' do
|
88
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
88
|
# unit tests for post_user_segment
|
93
89
|
# Creates a new user segment.
|
94
|
-
#
|
95
90
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
96
91
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
97
92
|
# @param user_segment_body Create a new user segment.
|
98
93
|
# @param [Hash] opts the optional parameters
|
99
|
-
# @return [
|
94
|
+
# @return [UserSegment]
|
100
95
|
describe 'post_user_segment test' do
|
101
|
-
it
|
96
|
+
it 'should work' do
|
102
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
98
|
end
|
104
99
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,7 +34,6 @@ describe 'UserSettingsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for get_user_flag_setting
|
36
36
|
# Fetch a single flag setting for a user by key.
|
37
|
-
#
|
38
37
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
39
38
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
40
39
|
# @param user_key The user's key.
|
@@ -42,28 +41,26 @@ describe 'UserSettingsApi' do
|
|
42
41
|
# @param [Hash] opts the optional parameters
|
43
42
|
# @return [UserFlagSetting]
|
44
43
|
describe 'get_user_flag_setting test' do
|
45
|
-
it
|
44
|
+
it 'should work' do
|
46
45
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
46
|
end
|
48
47
|
end
|
49
48
|
|
50
49
|
# unit tests for get_user_flag_settings
|
51
50
|
# Fetch a single flag setting for a user by key.
|
52
|
-
#
|
53
51
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
54
52
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
55
53
|
# @param user_key The user's key.
|
56
54
|
# @param [Hash] opts the optional parameters
|
57
55
|
# @return [UserFlagSettings]
|
58
56
|
describe 'get_user_flag_settings test' do
|
59
|
-
it
|
57
|
+
it 'should work' do
|
60
58
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
59
|
end
|
62
60
|
end
|
63
61
|
|
64
62
|
# unit tests for put_flag_setting
|
65
63
|
# Specifically enable or disable a feature flag for a user based on their key.
|
66
|
-
#
|
67
64
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
68
65
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
69
66
|
# @param user_key The user's key.
|
@@ -72,7 +69,7 @@ describe 'UserSettingsApi' do
|
|
72
69
|
# @param [Hash] opts the optional parameters
|
73
70
|
# @return [nil]
|
74
71
|
describe 'put_flag_setting test' do
|
75
|
-
it
|
72
|
+
it 'should work' do
|
76
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
74
|
end
|
78
75
|
end
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,52 +34,48 @@ describe 'UsersApi' do
|
|
34
34
|
|
35
35
|
# unit tests for delete_user
|
36
36
|
# Delete a user by ID.
|
37
|
-
#
|
38
37
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
39
38
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
40
39
|
# @param user_key The user's key.
|
41
40
|
# @param [Hash] opts the optional parameters
|
42
41
|
# @return [nil]
|
43
42
|
describe 'delete_user test' do
|
44
|
-
it
|
43
|
+
it 'should work' do
|
45
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
49
48
|
# unit tests for get_search_users
|
50
49
|
# Search users in LaunchDarkly based on their last active date, or a search query. It should not be used to enumerate all users in LaunchDarkly-- use the List users API resource.
|
51
|
-
#
|
52
50
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
53
51
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
54
52
|
# @param [Hash] opts the optional parameters
|
55
53
|
# @option opts [String] :q Search query.
|
56
54
|
# @option opts [Integer] :limit Pagination limit.
|
57
55
|
# @option opts [Integer] :offset Specifies the first item to return in the collection.
|
58
|
-
# @option opts [
|
56
|
+
# @option opts [Integer] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
59
57
|
# @return [Users]
|
60
58
|
describe 'get_search_users test' do
|
61
|
-
it
|
59
|
+
it 'should work' do
|
62
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
61
|
end
|
64
62
|
end
|
65
63
|
|
66
64
|
# unit tests for get_user
|
67
65
|
# Get a user by key.
|
68
|
-
#
|
69
66
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
70
67
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
71
68
|
# @param user_key The user's key.
|
72
69
|
# @param [Hash] opts the optional parameters
|
73
70
|
# @return [User]
|
74
71
|
describe 'get_user test' do
|
75
|
-
it
|
72
|
+
it 'should work' do
|
76
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
74
|
end
|
78
75
|
end
|
79
76
|
|
80
77
|
# unit tests for get_users
|
81
78
|
# List all users in the environment. Includes the total count of users. In each page, there will be up to 'limit' users returned (default 20). This is useful for exporting all users in the system for further analysis. Paginated collections will include a next link containing a URL with the next set of elements in the collection.
|
82
|
-
#
|
83
79
|
# @param project_key The project key, used to tie the flags together under one project so they can be managed together.
|
84
80
|
# @param environment_key The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
85
81
|
# @param [Hash] opts the optional parameters
|
@@ -88,7 +84,7 @@ describe 'UsersApi' do
|
|
88
84
|
# @option opts [String] :scroll_id This parameter is required when following \"next\" links.
|
89
85
|
# @return [Users]
|
90
86
|
describe 'get_users test' do
|
91
|
-
it
|
87
|
+
it 'should work' do
|
92
88
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
89
|
end
|
94
90
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,60 +34,55 @@ describe 'WebhooksApi' do
|
|
34
34
|
|
35
35
|
# unit tests for delete_webhook
|
36
36
|
# Delete a webhook by ID.
|
37
|
-
#
|
38
37
|
# @param resource_id The resource ID.
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
39
|
# @return [nil]
|
41
40
|
describe 'delete_webhook test' do
|
42
|
-
it
|
41
|
+
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
47
46
|
# unit tests for get_webhook
|
48
47
|
# Get a webhook by ID.
|
49
|
-
#
|
50
48
|
# @param resource_id The resource ID.
|
51
49
|
# @param [Hash] opts the optional parameters
|
52
50
|
# @return [Webhook]
|
53
51
|
describe 'get_webhook test' do
|
54
|
-
it
|
52
|
+
it 'should work' do
|
55
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
59
57
|
# unit tests for get_webhooks
|
60
58
|
# Fetch a list of all webhooks.
|
61
|
-
#
|
62
59
|
# @param [Hash] opts the optional parameters
|
63
60
|
# @return [Webhooks]
|
64
61
|
describe 'get_webhooks test' do
|
65
|
-
it
|
62
|
+
it 'should work' do
|
66
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
64
|
end
|
68
65
|
end
|
69
66
|
|
70
67
|
# unit tests for patch_webhook
|
71
68
|
# Modify a webhook by ID.
|
72
|
-
#
|
73
69
|
# @param resource_id The resource ID.
|
74
70
|
# @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
75
71
|
# @param [Hash] opts the optional parameters
|
76
72
|
# @return [Webhook]
|
77
73
|
describe 'patch_webhook test' do
|
78
|
-
it
|
74
|
+
it 'should work' do
|
79
75
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
76
|
end
|
81
77
|
end
|
82
78
|
|
83
79
|
# unit tests for post_webhook
|
84
80
|
# Create a webhook.
|
85
|
-
#
|
86
81
|
# @param webhook_body New webhook.
|
87
82
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @return [
|
83
|
+
# @return [Webhook]
|
89
84
|
describe 'post_webhook test' do
|
90
|
-
it
|
85
|
+
it 'should work' do
|
91
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
87
|
end
|
93
88
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,11 +51,11 @@ describe LaunchDarklyApi::ApiClient do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
55
|
let(:config) { LaunchDarklyApi::Configuration.new }
|
56
56
|
let(:api_client) { LaunchDarklyApi::ApiClient.new(config) }
|
57
57
|
|
58
|
-
it
|
58
|
+
it 'defaults to nil' do
|
59
59
|
expect(LaunchDarklyApi::Configuration.default.params_encoding).to eq(nil)
|
60
60
|
expect(config.params_encoding).to eq(nil)
|
61
61
|
|
@@ -63,18 +63,18 @@ describe LaunchDarklyApi::ApiClient do
|
|
63
63
|
expect(request.options[:params_encoding]).to eq(nil)
|
64
64
|
end
|
65
65
|
|
66
|
-
it
|
66
|
+
it 'can be customized' do
|
67
67
|
config.params_encoding = :multi
|
68
68
|
request = api_client.build_request(:get, '/test')
|
69
69
|
expect(request.options[:params_encoding]).to eq(:multi)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
describe
|
73
|
+
describe 'timeout in #build_request' do
|
74
74
|
let(:config) { LaunchDarklyApi::Configuration.new }
|
75
75
|
let(:api_client) { LaunchDarklyApi::ApiClient.new(config) }
|
76
76
|
|
77
|
-
it
|
77
|
+
it 'defaults to 0' do
|
78
78
|
expect(LaunchDarklyApi::Configuration.default.timeout).to eq(0)
|
79
79
|
expect(config.timeout).to eq(0)
|
80
80
|
|
@@ -82,88 +82,88 @@ describe LaunchDarklyApi::ApiClient do
|
|
82
82
|
expect(request.options[:timeout]).to eq(0)
|
83
83
|
end
|
84
84
|
|
85
|
-
it
|
85
|
+
it 'can be customized' do
|
86
86
|
config.timeout = 100
|
87
87
|
request = api_client.build_request(:get, '/test')
|
88
88
|
expect(request.options[:timeout]).to eq(100)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
describe
|
92
|
+
describe '#deserialize' do
|
93
93
|
it "handles Array<Integer>" do
|
94
94
|
api_client = LaunchDarklyApi::ApiClient.new
|
95
|
-
headers = {'Content-Type' => 'application/json'}
|
95
|
+
headers = { 'Content-Type' => 'application/json' }
|
96
96
|
response = double('response', headers: headers, body: '[12, 34]')
|
97
97
|
data = api_client.deserialize(response, 'Array<Integer>')
|
98
98
|
expect(data).to be_instance_of(Array)
|
99
99
|
expect(data).to eq([12, 34])
|
100
100
|
end
|
101
101
|
|
102
|
-
it
|
102
|
+
it 'handles Array<Array<Integer>>' do
|
103
103
|
api_client = LaunchDarklyApi::ApiClient.new
|
104
|
-
headers = {'Content-Type' => 'application/json'}
|
104
|
+
headers = { 'Content-Type' => 'application/json' }
|
105
105
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
106
106
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
107
107
|
expect(data).to be_instance_of(Array)
|
108
108
|
expect(data).to eq([[12, 34], [56]])
|
109
109
|
end
|
110
110
|
|
111
|
-
it
|
111
|
+
it 'handles Hash<String, String>' do
|
112
112
|
api_client = LaunchDarklyApi::ApiClient.new
|
113
|
-
headers = {'Content-Type' => 'application/json'}
|
113
|
+
headers = { 'Content-Type' => 'application/json' }
|
114
114
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
115
115
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
116
116
|
expect(data).to be_instance_of(Hash)
|
117
|
-
expect(data).to eq(
|
117
|
+
expect(data).to eq(:message => 'Hello')
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
121
|
describe "#object_to_hash" do
|
122
|
-
it
|
122
|
+
it 'ignores nils and includes empty arrays' do
|
123
123
|
# uncomment below to test object_to_hash for model
|
124
|
-
#api_client = LaunchDarklyApi::ApiClient.new
|
125
|
-
#_model = LaunchDarklyApi::ModelName.new
|
124
|
+
# api_client = LaunchDarklyApi::ApiClient.new
|
125
|
+
# _model = LaunchDarklyApi::ModelName.new
|
126
126
|
# update the model attribute below
|
127
|
-
#_model.id = 1
|
127
|
+
# _model.id = 1
|
128
128
|
# update the expected value (hash) below
|
129
|
-
#expected = {id: 1, name: '', tags: []}
|
130
|
-
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
129
|
+
# expected = {id: 1, name: '', tags: []}
|
130
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
134
|
-
describe
|
134
|
+
describe '#build_collection_param' do
|
135
135
|
let(:param) { ['aa', 'bb', 'cc'] }
|
136
136
|
let(:api_client) { LaunchDarklyApi::ApiClient.new }
|
137
137
|
|
138
|
-
it
|
138
|
+
it 'works for csv' do
|
139
139
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
140
140
|
end
|
141
141
|
|
142
|
-
it
|
142
|
+
it 'works for ssv' do
|
143
143
|
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
144
144
|
end
|
145
145
|
|
146
|
-
it
|
146
|
+
it 'works for tsv' do
|
147
147
|
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
148
148
|
end
|
149
149
|
|
150
|
-
it
|
150
|
+
it 'works for pipes' do
|
151
151
|
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
152
152
|
end
|
153
153
|
|
154
|
-
it
|
154
|
+
it 'works for multi' do
|
155
155
|
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
156
156
|
end
|
157
157
|
|
158
|
-
it
|
158
|
+
it 'fails for invalid collection format' do
|
159
159
|
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
163
|
-
describe
|
163
|
+
describe '#json_mime?' do
|
164
164
|
let(:api_client) { LaunchDarklyApi::ApiClient.new }
|
165
165
|
|
166
|
-
it
|
166
|
+
it 'works' do
|
167
167
|
expect(api_client.json_mime?(nil)).to eq false
|
168
168
|
expect(api_client.json_mime?('')).to eq false
|
169
169
|
|
@@ -177,10 +177,10 @@ describe LaunchDarklyApi::ApiClient do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
-
describe
|
180
|
+
describe '#select_header_accept' do
|
181
181
|
let(:api_client) { LaunchDarklyApi::ApiClient.new }
|
182
182
|
|
183
|
-
it
|
183
|
+
it 'works' do
|
184
184
|
expect(api_client.select_header_accept(nil)).to be_nil
|
185
185
|
expect(api_client.select_header_accept([])).to be_nil
|
186
186
|
|
@@ -193,10 +193,10 @@ describe LaunchDarklyApi::ApiClient do
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
-
describe
|
196
|
+
describe '#select_header_content_type' do
|
197
197
|
let(:api_client) { LaunchDarklyApi::ApiClient.new }
|
198
198
|
|
199
|
-
it
|
199
|
+
it 'works' do
|
200
200
|
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
201
201
|
expect(api_client.select_header_content_type([])).to eq('application/json')
|
202
202
|
|
@@ -208,10 +208,10 @@ describe LaunchDarklyApi::ApiClient do
|
|
208
208
|
end
|
209
209
|
end
|
210
210
|
|
211
|
-
describe
|
211
|
+
describe '#sanitize_filename' do
|
212
212
|
let(:api_client) { LaunchDarklyApi::ApiClient.new }
|
213
213
|
|
214
|
-
it
|
214
|
+
it 'works' do
|
215
215
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
216
216
|
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
217
217
|
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
data/spec/configuration_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,25 +17,25 @@ describe LaunchDarklyApi::Configuration do
|
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
|
-
#require 'URI'
|
21
|
-
#uri = URI.parse("https://app.launchdarkly.com/api/v2")
|
22
|
-
#LaunchDarklyApi.configure do |c|
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#end
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("https://app.launchdarkly.com/api/v2")
|
22
|
+
# LaunchDarklyApi.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
26
|
end
|
27
27
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
#expect(config.base_url).to eq("https://app.launchdarkly.com/api/v2")
|
31
|
+
# expect(config.base_url).to eq("https://app.launchdarkly.com/api/v2")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
#expect(config.base_url).to eq("https://app.launchdarkly.com/api/v2")
|
38
|
+
# expect(config.base_url).to eq("https://app.launchdarkly.com/api/v2")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|