Skip to content

Commit 1808bf4

Browse files
fix: move destructive aftermarket operations to sandbox
Moved bid, buy, and listing operations from prodClient to sandboxClient: - add_backorder_request, delete_backorder_request - place_auction_bid, place_backorder_auction_bid - buy_expired_closeout_domain, buy_it_now - set_for_sale - set_afternic_confirm_action, set_sedo_confirm_action These operations could cost real money or modify listings if run against production. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b4a6265 commit 1808bf4

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

test/e2e.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -715,14 +715,14 @@ describeIntegration('dynadot_aftermarket', () => {
715715
});
716716

717717
it('backorder_add - should validate add backorder params', async () => {
718-
const result = await prodClient.execute('add_backorder_request', {
718+
const result = await sandboxClient.execute('add_backorder_request', {
719719
domain: 'test-backorder.com',
720720
});
721721
expect(hasValidResponse(result)).toBe(true);
722722
});
723723

724724
it('backorder_delete - should validate delete backorder params', async () => {
725-
const result = await prodClient.execute('delete_backorder_request', {
725+
const result = await sandboxClient.execute('delete_backorder_request', {
726726
domain: 'test-backorder.com',
727727
});
728728
expect(hasValidResponse(result)).toBe(true);
@@ -753,7 +753,7 @@ describeIntegration('dynadot_aftermarket', () => {
753753
it('auction_bid - should validate place bid params', async () => {
754754
// This command may return non-standard response for invalid auction IDs
755755
try {
756-
const result = await prodClient.execute('place_auction_bid', {
756+
const result = await sandboxClient.execute('place_auction_bid', {
757757
auction_id: '12345',
758758
bid_amount: '100',
759759
currency: 'USD',
@@ -791,7 +791,7 @@ describeIntegration('dynadot_aftermarket', () => {
791791
});
792792

793793
it('backorder_auction_bid - should validate backorder auction bid params', async () => {
794-
const result = await prodClient.execute('place_backorder_auction_bid', {
794+
const result = await sandboxClient.execute('place_backorder_auction_bid', {
795795
auction_id: '12345',
796796
bid_amount: '100',
797797
});
@@ -806,7 +806,7 @@ describeIntegration('dynadot_aftermarket', () => {
806806
});
807807

808808
it('expired_buy - should validate expired buy params', async () => {
809-
const result = await prodClient.execute('buy_expired_closeout_domain', {
809+
const result = await sandboxClient.execute('buy_expired_closeout_domain', {
810810
domain: 'test-expired.com',
811811
currency: 'USD',
812812
});
@@ -826,15 +826,15 @@ describeIntegration('dynadot_aftermarket', () => {
826826
});
827827

828828
it('buy_now - should validate buy now params', async () => {
829-
const result = await prodClient.execute('buy_it_now', {
829+
const result = await sandboxClient.execute('buy_it_now', {
830830
domain: 'test-listing.com',
831831
currency: 'USD',
832832
});
833833
expect(hasValidResponse(result)).toBe(true);
834834
});
835835

836836
it('set_for_sale - should validate set for sale params', async () => {
837-
const result = await prodClient.execute('set_for_sale', {
837+
const result = await sandboxClient.execute('set_for_sale', {
838838
domain: TEST_DOMAIN,
839839
price: '1000',
840840
currency: 'USD',
@@ -845,15 +845,15 @@ describeIntegration('dynadot_aftermarket', () => {
845845

846846
describe('marketplace confirmations', () => {
847847
it('afternic_confirm - should validate Afternic confirm params', async () => {
848-
const result = await prodClient.execute('set_afternic_confirm_action', {
848+
const result = await sandboxClient.execute('set_afternic_confirm_action', {
849849
domain: TEST_DOMAIN,
850850
action: 'decline',
851851
});
852852
expect(hasValidResponse(result)).toBe(true);
853853
});
854854

855855
it('sedo_confirm - should validate Sedo confirm params', async () => {
856-
const result = await prodClient.execute('set_sedo_confirm_action', {
856+
const result = await sandboxClient.execute('set_sedo_confirm_action', {
857857
domain: TEST_DOMAIN,
858858
action: 'decline',
859859
});

0 commit comments

Comments
 (0)