Skip to content

Commit 1b250d9

Browse files
committed
Add integration tests
1 parent b02b2fe commit 1b250d9

46 files changed

Lines changed: 1702 additions & 481 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
AMAZON_ADS_CLIENT_ID=amzn1.application-oa2-client.xxx
2+
AMAZON_ADS_CLIENT_SECRET=amzn1.oa2-cs.v1.xxx
3+
AMAZON_ADS_TEST_REFRESH_TOKEN=Atzr|xxx
4+
AMAZON_ADS_TEST_REGION=NA
5+
AMAZON_ADS_TEST_PROFILE_ID=1234567890
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestAdAssociations < Minitest::Test
6+
def test_query_ad_association
7+
skip
8+
end
9+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestAdExtensions < Minitest::Test
6+
def test_query_ad_extension
7+
skip
8+
end
9+
end
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestAdGroups < Minitest::Test
6+
include FeatureHelpers
7+
8+
def test_query_ad_group
9+
res = @api.query_ad_group(
10+
ad_product_filter: { "include" => ["SPONSORED_PRODUCTS"] },
11+
)
12+
13+
assert_predicate(res.status, :success?)
14+
end
15+
end

test/amazon_ads/apis/test_ads.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestAds < Minitest::Test
6+
include FeatureHelpers
7+
8+
def test_query_ad
9+
res = @api.query_ad(
10+
ad_product_filter: { "include" => ["SPONSORED_PRODUCTS"] },
11+
)
12+
13+
assert_predicate(res.status, :success?)
14+
end
15+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestAdvertisingDealTargets < Minitest::Test
6+
def test_sb_query_advertising_deal_target
7+
skip
8+
end
9+
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestAdvertisingDeals < Minitest::Test
6+
include FeatureHelpers
7+
8+
def test_sb_query_advertising_deal
9+
res = @api.sb_query_advertising_deal
10+
11+
assert_predicate(res.status, :success?)
12+
end
13+
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestBrandStoreEditionPublishVersions < Minitest::Test
6+
def test_query_brand_store_edition_publish_version
7+
skip
8+
end
9+
10+
def test_update_brand_store_edition_publish_version
11+
skip
12+
end
13+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestBrandStoreEditions < Minitest::Test
6+
def test_list_brand_store_edition
7+
skip
8+
end
9+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class TestBrandStorePages < Minitest::Test
6+
def test_query_brand_store_page
7+
skip
8+
end
9+
end

0 commit comments

Comments
 (0)