diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f1a48d37..90eeef65 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.7.1" + ".": "4.8.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 17749e26..f6897576 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 81 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-3fc1c86b4a83a16393aaf17d1fb3ac6098d30dd057ba872973b57285a7a3f0d0.yml -openapi_spec_hash: 02a545d217b13399f311e99561f9de1d -config_hash: 0789c3cddc625bb9712b3bded274ab6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-b3852cdd1020811766572923d26a6c95f4a538bf4c7268462b6ba39f34480b3e.yml +openapi_spec_hash: b2e2f2357342e9a6b16a591d0b946e38 +config_hash: 6f072c60adb74a68d27be5a0e5ea3124 diff --git a/CHANGELOG.md b/CHANGELOG.md index f93bae61..7357c183 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 4.8.0 (2026-02-20) + +Full Changelog: [v4.7.1...v4.8.0](https://github.com/trycourier/courier-ruby/compare/v4.7.1...v4.8.0) + +### Features + +* **api:** remove brand field from ElementalContent model ([519fcc0](https://github.com/trycourier/courier-ruby/commit/519fcc0a2f35a1fd61e64362b5a2e7b2d8225232)) + + +### Chores + +* **internal:** remove mock server code ([a81351a](https://github.com/trycourier/courier-ruby/commit/a81351a2fde27b8a785a79436394a991e9048d97)) +* update mock server docs ([62d69fc](https://github.com/trycourier/courier-ruby/commit/62d69fc657babf8ff535e150d74a2283ddb64459)) + + +### Documentation + +* add AUTO-GENERATED-OVERVIEW markers for README sync ([#75](https://github.com/trycourier/courier-ruby/issues/75)) ([ab86102](https://github.com/trycourier/courier-ruby/commit/ab86102437d2af03dc45beae7262371c70b6847f)) +* sync README from mintlify-docs (2026-02-20 18:11 UTC) ([#76](https://github.com/trycourier/courier-ruby/issues/76)) ([cc67458](https://github.com/trycourier/courier-ruby/commit/cc6745816e152b890b84caaf666178bdbd9d3192)) + ## 4.7.1 (2026-02-07) Full Changelog: [v4.7.0...v4.7.1](https://github.com/trycourier/courier-ruby/compare/v4.7.0...v4.7.1) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eb7201f4..007b5bab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,12 +66,6 @@ $ bundle exec rake ## Running tests -Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. - -```bash -$ npx prism mock path/to/your/openapi.yml -``` - ```bash $ bundle exec rake test ``` diff --git a/Gemfile.lock b/Gemfile.lock index e0b6500b..cfed93ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - trycourier (4.7.1) + trycourier (4.8.0) cgi connection_pool diff --git a/lib/courier/models/elemental_content.rb b/lib/courier/models/elemental_content.rb index 3c37b02b..811745ef 100644 --- a/lib/courier/models/elemental_content.rb +++ b/lib/courier/models/elemental_content.rb @@ -14,17 +14,10 @@ class ElementalContent < Courier::Internal::Type::BaseModel # @return [String] required :version, String - # @!attribute brand - # - # @return [String, nil] - optional :brand, String, nil?: true - - # @!method initialize(elements:, version:, brand: nil) + # @!method initialize(elements:, version:) # @param elements [Array] # # @param version [String] For example, "2022-01-01" - # - # @param brand [String, nil] end end end diff --git a/lib/courier/version.rb b/lib/courier/version.rb index 4ef2cb5e..c802e4c8 100644 --- a/lib/courier/version.rb +++ b/lib/courier/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Courier - VERSION = "4.7.1" + VERSION = "4.8.0" end diff --git a/rbi/courier/models/elemental_content.rbi b/rbi/courier/models/elemental_content.rbi index a90bf6b5..b37df9fc 100644 --- a/rbi/courier/models/elemental_content.rbi +++ b/rbi/courier/models/elemental_content.rbi @@ -29,9 +29,6 @@ module Courier sig { returns(String) } attr_accessor :version - sig { returns(T.nilable(String)) } - attr_accessor :brand - sig do params( elements: @@ -46,15 +43,13 @@ module Courier Courier::ElementalQuoteNodeWithType::OrHash ) ], - version: String, - brand: T.nilable(String) + version: String ).returns(T.attached_class) end def self.new( elements:, # For example, "2022-01-01" - version:, - brand: nil + version: ) end @@ -73,8 +68,7 @@ module Courier Courier::ElementalQuoteNodeWithType ) ], - version: String, - brand: T.nilable(String) + version: String } ) end diff --git a/scripts/mock b/scripts/mock deleted file mode 100755 index 0b28f6ea..00000000 --- a/scripts/mock +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -e - -cd "$(dirname "$0")/.." - -if [[ -n "$1" && "$1" != '--'* ]]; then - URL="$1" - shift -else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" - exit 1 -fi - -echo "==> Starting mock server with URL ${URL}" - -# Run prism mock on the given spec -if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - - # Wait for server to come online - echo -n "Waiting for server" - while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do - echo -n "." - sleep 0.1 - done - - if grep -q "✖ fatal" ".prism.log"; then - cat .prism.log - exit 1 - fi - - echo -else - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" -fi diff --git a/scripts/test b/scripts/test index e0dc1374..df8caf98 100755 --- a/scripts/test +++ b/scripts/test @@ -4,53 +4,7 @@ set -e cd -- "$(dirname -- "$0")/.." -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -NC='\033[0m' # No Color -function prism_is_running() { - curl --silent "http://localhost:4010" >/dev/null 2>&1 -} - -kill_server_on_port() { - pids=$(lsof -t -i tcp:"$1" || echo "") - if [ "$pids" != "" ]; then - kill "$pids" - echo "Stopped $pids." - fi -} - -function is_overriding_api_base_url() { - [ -n "$TEST_API_BASE_URL" ] -} - -if ! is_overriding_api_base_url && ! prism_is_running ; then - # When we exit this script, make sure to kill the background mock server process - trap 'kill_server_on_port 4010' EXIT - - # Start the dev server - ./scripts/mock --daemon -fi - -if is_overriding_api_base_url ; then - echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}" - echo -elif ! prism_is_running ; then - echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server" - echo -e "running against your OpenAPI spec." - echo - echo -e "To run the server, pass in the path or url of your OpenAPI" - echo -e "spec to the prism command:" - echo - echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" - echo - - exit 1 -else - echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}" - echo -fi echo "==> Running tests" bundle exec rake test "$@" diff --git a/sig/courier/models/elemental_content.rbs b/sig/courier/models/elemental_content.rbs index 8acc1c91..346fbafe 100644 --- a/sig/courier/models/elemental_content.rbs +++ b/sig/courier/models/elemental_content.rbs @@ -1,29 +1,21 @@ module Courier module Models type elemental_content = - { - elements: ::Array[Courier::Models::elemental_node], - version: String, - brand: String? - } + { elements: ::Array[Courier::Models::elemental_node], version: String } class ElementalContent < Courier::Internal::Type::BaseModel attr_accessor elements: ::Array[Courier::Models::elemental_node] attr_accessor version: String - attr_accessor brand: String? - def initialize: ( elements: ::Array[Courier::Models::elemental_node], - version: String, - ?brand: String? + version: String ) -> void def to_hash: -> { elements: ::Array[Courier::Models::elemental_node], - version: String, - brand: String? + version: String } end end diff --git a/test/courier/resources/audiences_test.rb b/test/courier/resources/audiences_test.rb index f9733d89..5f74f772 100644 --- a/test/courier/resources/audiences_test.rb +++ b/test/courier/resources/audiences_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::AudiencesTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audiences.retrieve("audience_id") @@ -26,7 +26,7 @@ def test_retrieve end def test_update - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audiences.update("audience_id") @@ -42,7 +42,7 @@ def test_update end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audiences.list @@ -59,7 +59,7 @@ def test_list end def test_delete - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audiences.delete("audience_id") @@ -69,7 +69,7 @@ def test_delete end def test_list_members - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audiences.list_members("audience_id") diff --git a/test/courier/resources/audit_events_test.rb b/test/courier/resources/audit_events_test.rb index 9695897a..04cda93f 100644 --- a/test/courier/resources/audit_events_test.rb +++ b/test/courier/resources/audit_events_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::AuditEventsTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audit_events.retrieve("audit-event-id") @@ -25,7 +25,7 @@ def test_retrieve end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.audit_events.list diff --git a/test/courier/resources/auth_test.rb b/test/courier/resources/auth_test.rb index 1ce0da78..2f63f23e 100644 --- a/test/courier/resources/auth_test.rb +++ b/test/courier/resources/auth_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::AuthTest < Courier::Test::ResourceTest def test_issue_token_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.auth.issue_token( diff --git a/test/courier/resources/automations/invoke_test.rb b/test/courier/resources/automations/invoke_test.rb index 79dceb7a..fdef04d2 100644 --- a/test/courier/resources/automations/invoke_test.rb +++ b/test/courier/resources/automations/invoke_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Automations::InvokeTest < Courier::Test::ResourceTest def test_invoke_ad_hoc_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.automations.invoke.invoke_ad_hoc(automation: {steps: [{action: :delay}, {action: :send}]}) @@ -21,7 +21,7 @@ def test_invoke_ad_hoc_required_params end def test_invoke_by_template_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.automations.invoke.invoke_by_template("templateId", recipient: "recipient") diff --git a/test/courier/resources/automations_test.rb b/test/courier/resources/automations_test.rb index bc7aed89..ffcec431 100644 --- a/test/courier/resources/automations_test.rb +++ b/test/courier/resources/automations_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::AutomationsTest < Courier::Test::ResourceTest def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.automations.list diff --git a/test/courier/resources/brands_test.rb b/test/courier/resources/brands_test.rb index 615e4c11..aa1ad134 100644 --- a/test/courier/resources/brands_test.rb +++ b/test/courier/resources/brands_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::BrandsTest < Courier::Test::ResourceTest def test_create_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.brands.create(name: "name") @@ -27,7 +27,7 @@ def test_create_required_params end def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.brands.retrieve("brand_id") @@ -50,7 +50,7 @@ def test_retrieve end def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.brands.update("brand_id", name: "name") @@ -73,7 +73,7 @@ def test_update_required_params end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.brands.list @@ -90,7 +90,7 @@ def test_list end def test_delete - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.brands.delete("brand_id") diff --git a/test/courier/resources/bulk_test.rb b/test/courier/resources/bulk_test.rb index 2637f1ae..d44686e1 100644 --- a/test/courier/resources/bulk_test.rb +++ b/test/courier/resources/bulk_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::BulkTest < Courier::Test::ResourceTest def test_add_users_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.bulk.add_users("job_id", users: [{}]) @@ -14,7 +14,7 @@ def test_add_users_required_params end def test_create_job_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.bulk.create_job(message: {event: "event"}) @@ -30,7 +30,7 @@ def test_create_job_required_params end def test_list_users - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.bulk.list_users("job_id") @@ -47,7 +47,7 @@ def test_list_users end def test_retrieve_job - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.bulk.retrieve_job("job_id") @@ -63,7 +63,7 @@ def test_retrieve_job end def test_run_job - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.bulk.run_job("job_id") diff --git a/test/courier/resources/inbound_test.rb b/test/courier/resources/inbound_test.rb index b60d0555..7ab21b21 100644 --- a/test/courier/resources/inbound_test.rb +++ b/test/courier/resources/inbound_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::InboundTest < Courier::Test::ResourceTest def test_track_event_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.inbound.track_event( diff --git a/test/courier/resources/lists/subscriptions_test.rb b/test/courier/resources/lists/subscriptions_test.rb index 07c87006..1705c8e1 100644 --- a/test/courier/resources/lists/subscriptions_test.rb +++ b/test/courier/resources/lists/subscriptions_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Lists::SubscriptionsTest < Courier::Test::ResourceTest def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.subscriptions.list("list_id") @@ -21,7 +21,7 @@ def test_list end def test_add_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.subscriptions.add("list_id", recipients: [{recipientId: "recipientId"}]) @@ -31,7 +31,7 @@ def test_add_required_params end def test_subscribe_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.subscriptions.subscribe("list_id", recipients: [{recipientId: "recipientId"}]) @@ -41,7 +41,7 @@ def test_subscribe_required_params end def test_subscribe_user_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.subscriptions.subscribe_user("user_id", list_id: "list_id") @@ -51,7 +51,7 @@ def test_subscribe_user_required_params end def test_unsubscribe_user_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.subscriptions.unsubscribe_user("user_id", list_id: "list_id") diff --git a/test/courier/resources/lists_test.rb b/test/courier/resources/lists_test.rb index a806d502..6f6b8937 100644 --- a/test/courier/resources/lists_test.rb +++ b/test/courier/resources/lists_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::ListsTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.retrieve("list_id") @@ -23,7 +23,7 @@ def test_retrieve end def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.update("list_id", name: "name") @@ -33,7 +33,7 @@ def test_update_required_params end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.list @@ -50,7 +50,7 @@ def test_list end def test_delete - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.delete("list_id") @@ -60,7 +60,7 @@ def test_delete end def test_restore - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.lists.restore("list_id") diff --git a/test/courier/resources/messages_test.rb b/test/courier/resources/messages_test.rb index bdfe8c0c..8782d555 100644 --- a/test/courier/resources/messages_test.rb +++ b/test/courier/resources/messages_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::MessagesTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.messages.retrieve("message_id") @@ -14,7 +14,7 @@ def test_retrieve end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.messages.list @@ -31,7 +31,7 @@ def test_list end def test_cancel - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.messages.cancel("message_id") @@ -58,7 +58,7 @@ def test_cancel end def test_content - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.messages.content("message_id") @@ -74,7 +74,7 @@ def test_content end def test_history - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.messages.history("message_id") diff --git a/test/courier/resources/notifications/checks_test.rb b/test/courier/resources/notifications/checks_test.rb index c4ea64fd..07ed9c3e 100644 --- a/test/courier/resources/notifications/checks_test.rb +++ b/test/courier/resources/notifications/checks_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Notifications::ChecksTest < Courier::Test::ResourceTest def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.notifications.checks.update( @@ -25,7 +25,7 @@ def test_update_required_params end def test_list_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.notifications.checks.list("submissionId", id: "id") @@ -41,7 +41,7 @@ def test_list_required_params end def test_delete_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.notifications.checks.delete("submissionId", id: "id") diff --git a/test/courier/resources/notifications/draft_test.rb b/test/courier/resources/notifications/draft_test.rb index a59870b3..037b4e33 100644 --- a/test/courier/resources/notifications/draft_test.rb +++ b/test/courier/resources/notifications/draft_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Notifications::DraftTest < Courier::Test::ResourceTest def test_retrieve_content - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.notifications.draft.retrieve_content("id") diff --git a/test/courier/resources/notifications_test.rb b/test/courier/resources/notifications_test.rb index 51e96970..f970a9e7 100644 --- a/test/courier/resources/notifications_test.rb +++ b/test/courier/resources/notifications_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::NotificationsTest < Courier::Test::ResourceTest def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.notifications.list @@ -21,7 +21,7 @@ def test_list end def test_retrieve_content - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.notifications.retrieve_content("id") diff --git a/test/courier/resources/profiles/lists_test.rb b/test/courier/resources/profiles/lists_test.rb index fbf13468..2f7e9b5b 100644 --- a/test/courier/resources/profiles/lists_test.rb +++ b/test/courier/resources/profiles/lists_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Profiles::ListsTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.lists.retrieve("user_id") @@ -21,7 +21,7 @@ def test_retrieve end def test_delete - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.lists.delete("user_id") @@ -37,7 +37,7 @@ def test_delete end def test_subscribe_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.lists.subscribe("user_id", lists: [{listId: "listId"}]) diff --git a/test/courier/resources/profiles_test.rb b/test/courier/resources/profiles_test.rb index 18d60f9b..178e84cd 100644 --- a/test/courier/resources/profiles_test.rb +++ b/test/courier/resources/profiles_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::ProfilesTest < Courier::Test::ResourceTest def test_create_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.create("user_id", profile: {foo: "bar"}) @@ -20,7 +20,7 @@ def test_create_required_params end def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.retrieve("user_id") @@ -37,7 +37,7 @@ def test_retrieve end def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.update("user_id", patch: [{op: "op", path: "path", value: "value"}]) @@ -47,7 +47,7 @@ def test_update_required_params end def test_delete - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.delete("user_id") @@ -57,7 +57,7 @@ def test_delete end def test_replace_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.profiles.replace("user_id", profile: {foo: "bar"}) diff --git a/test/courier/resources/requests_test.rb b/test/courier/resources/requests_test.rb index 485d9367..6b308d1f 100644 --- a/test/courier/resources/requests_test.rb +++ b/test/courier/resources/requests_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::RequestsTest < Courier::Test::ResourceTest def test_archive - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.requests.archive("request_id") diff --git a/test/courier/resources/send_test.rb b/test/courier/resources/send_test.rb index 904e75ae..dd31e3af 100644 --- a/test/courier/resources/send_test.rb +++ b/test/courier/resources/send_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::SendTest < Courier::Test::ResourceTest def test_message_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.send_.message(message: {}) diff --git a/test/courier/resources/tenants/preferences/items_test.rb b/test/courier/resources/tenants/preferences/items_test.rb index 1a250e2d..48f0bf81 100644 --- a/test/courier/resources/tenants/preferences/items_test.rb +++ b/test/courier/resources/tenants/preferences/items_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Tenants::Preferences::ItemsTest < Courier::Test::ResourceTest def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.preferences.items.update("topic_id", tenant_id: "tenant_id", status: :OPTED_IN) @@ -15,7 +15,7 @@ def test_update_required_params end def test_delete_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.preferences.items.delete("topic_id", tenant_id: "tenant_id") diff --git a/test/courier/resources/tenants/templates/versions_test.rb b/test/courier/resources/tenants/templates/versions_test.rb index 7ab8fa81..b5d02912 100644 --- a/test/courier/resources/tenants/templates/versions_test.rb +++ b/test/courier/resources/tenants/templates/versions_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Tenants::Templates::VersionsTest < Courier::Test::ResourceTest def test_retrieve_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.templates.versions.retrieve( diff --git a/test/courier/resources/tenants/templates_test.rb b/test/courier/resources/tenants/templates_test.rb index 142b1c8c..8f017bcb 100644 --- a/test/courier/resources/tenants/templates_test.rb +++ b/test/courier/resources/tenants/templates_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Tenants::TemplatesTest < Courier::Test::ResourceTest def test_retrieve_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.templates.retrieve("template_id", tenant_id: "tenant_id") @@ -24,7 +24,7 @@ def test_retrieve_required_params end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.templates.list("tenant_id") @@ -45,7 +45,7 @@ def test_list end def test_publish_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.templates.publish("template_id", tenant_id: "tenant_id") @@ -63,7 +63,7 @@ def test_publish_required_params end def test_replace_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.templates.replace( diff --git a/test/courier/resources/tenants_test.rb b/test/courier/resources/tenants_test.rb index c8537c3c..91ca23e7 100644 --- a/test/courier/resources/tenants_test.rb +++ b/test/courier/resources/tenants_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::TenantsTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.retrieve("tenant_id") @@ -26,7 +26,7 @@ def test_retrieve end def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.update("tenant_id", name: "name") @@ -48,7 +48,7 @@ def test_update_required_params end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.list @@ -69,7 +69,7 @@ def test_list end def test_delete - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.delete("tenant_id") @@ -79,7 +79,7 @@ def test_delete end def test_list_users - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.tenants.list_users("tenant_id") diff --git a/test/courier/resources/translations_test.rb b/test/courier/resources/translations_test.rb index 59b5f062..8b88731b 100644 --- a/test/courier/resources/translations_test.rb +++ b/test/courier/resources/translations_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::TranslationsTest < Courier::Test::ResourceTest def test_retrieve_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.translations.retrieve("locale", domain: "domain") @@ -14,7 +14,7 @@ def test_retrieve_required_params end def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.translations.update("locale", domain: "domain", body: "body") diff --git a/test/courier/resources/users/preferences_test.rb b/test/courier/resources/users/preferences_test.rb index 9467d22d..51afea81 100644 --- a/test/courier/resources/users/preferences_test.rb +++ b/test/courier/resources/users/preferences_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Users::PreferencesTest < Courier::Test::ResourceTest def test_retrieve - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.preferences.retrieve("user_id") @@ -21,7 +21,7 @@ def test_retrieve end def test_retrieve_topic_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.preferences.retrieve_topic("topic_id", user_id: "user_id") @@ -37,7 +37,7 @@ def test_retrieve_topic_required_params end def test_update_or_create_topic_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.preferences.update_or_create_topic( diff --git a/test/courier/resources/users/tenants_test.rb b/test/courier/resources/users/tenants_test.rb index 8408d3c2..5b324e94 100644 --- a/test/courier/resources/users/tenants_test.rb +++ b/test/courier/resources/users/tenants_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Users::TenantsTest < Courier::Test::ResourceTest def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tenants.list("user_id") @@ -25,7 +25,7 @@ def test_list end def test_add_multiple_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tenants.add_multiple("user_id", tenants: [{tenant_id: "tenant_id"}]) @@ -35,7 +35,7 @@ def test_add_multiple_required_params end def test_add_single_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tenants.add_single("tenant_id", user_id: "user_id") @@ -45,7 +45,7 @@ def test_add_single_required_params end def test_remove_all - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tenants.remove_all("user_id") @@ -55,7 +55,7 @@ def test_remove_all end def test_remove_single_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tenants.remove_single("tenant_id", user_id: "user_id") diff --git a/test/courier/resources/users/tokens_test.rb b/test/courier/resources/users/tokens_test.rb index cc7292e9..693a6b9d 100644 --- a/test/courier/resources/users/tokens_test.rb +++ b/test/courier/resources/users/tokens_test.rb @@ -4,7 +4,7 @@ class Courier::Test::Resources::Users::TokensTest < Courier::Test::ResourceTest def test_retrieve_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tokens.retrieve("token", user_id: "user_id") @@ -14,7 +14,7 @@ def test_retrieve_required_params end def test_update_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tokens.update("token", user_id: "user_id", patch: [{op: "op", path: "path"}]) @@ -24,7 +24,7 @@ def test_update_required_params end def test_list - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tokens.list("user_id") @@ -40,7 +40,7 @@ def test_list end def test_delete_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tokens.delete("token", user_id: "user_id") @@ -50,7 +50,7 @@ def test_delete_required_params end def test_add_multiple - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tokens.add_multiple("user_id") @@ -60,7 +60,7 @@ def test_add_multiple end def test_add_single_required_params - skip("Prism tests are disabled") + skip("Mock server tests are disabled") response = @courier.users.tokens.add_single(