Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .generator/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ def operation_specs(specs):
def api(context, api_version, specs, name):
"""Return an API instance."""
assert name in {tag["name"].replace(" ", "") for tag in specs[api_version]["tags"]}
context["api_instance"] = {"name": name}
instance_name = name.replace("-", "")
context["api_instance"] = {"name": instance_name}


@given(parsers.parse('operation "{name}" enabled'))
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/CreateOnCallEscalationPolicy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create on-call escalation policy returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "user" in the system
USER_DATA_ID = ENV["USER_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/CreateOnCallSchedule.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create on-call schedule returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "user" in the system
USER_DATA_ID = ENV["USER_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/DeleteOnCallEscalationPolicy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Delete on-call escalation policy returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "escalation_policy" in the system
ESCALATION_POLICY_DATA_ID = ENV["ESCALATION_POLICY_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/DeleteOnCallSchedule.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Delete on-call schedule returns "No Content" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "schedule" in the system
SCHEDULE_DATA_ID = ENV["SCHEDULE_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/GetOnCallEscalationPolicy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Get on-call escalation policy returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "escalation_policy" in the system
ESCALATION_POLICY_DATA_ID = ENV["ESCALATION_POLICY_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/GetOnCallSchedule.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Get on-call schedule returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "schedule" in the system
SCHEDULE_DATA_ID = ENV["SCHEDULE_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/GetOnCallTeamRoutingRules.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Get on-call team routing rules returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new
p api_instance.get_on_call_team_routing_rules("27590dae-47be-4a7d-9abf-8f4e45124020")
2 changes: 1 addition & 1 deletion examples/v2/on-call/SetOnCallTeamRoutingRules.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Set on-call team routing rules returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "dd_team" in the system
DD_TEAM_DATA_ID = ENV["DD_TEAM_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/UpdateOnCallEscalationPolicy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Update on-call escalation policy returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "escalation_policy" in the system
ESCALATION_POLICY_DATA_ID = ENV["ESCALATION_POLICY_DATA_ID"]
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/on-call/UpdateOnCallSchedule.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Update on-call schedule returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
api_instance = DatadogAPIClient::V2::OnCallAPI.new

# there is a valid "schedule" in the system
SCHEDULE_DATA_ID = ENV["SCHEDULE_DATA_ID"]
Expand Down
Loading