From 00a31ebe8970610329f1ce67f20d9f16df2c0563 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 27 Jan 2014 10:53:08 -0800 Subject: [PATCH] Fix uri on customer credit scenario --- scenarios/customer_credit/executable.py | 4 ++-- scenarios/customer_credit/python.mako | 4 ++-- scenarios/customer_credit/request.mako | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scenarios/customer_credit/executable.py b/scenarios/customer_credit/executable.py index 040e4b8..5b33214 100644 --- a/scenarios/customer_credit/executable.py +++ b/scenarios/customer_credit/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') +balanced.configure('ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD') -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits') +customer = balanced.Customer.find('/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo') customer.credit(amount=100) \ No newline at end of file diff --git a/scenarios/customer_credit/python.mako b/scenarios/customer_credit/python.mako index d6f97f9..7b1b1d4 100644 --- a/scenarios/customer_credit/python.mako +++ b/scenarios/customer_credit/python.mako @@ -3,8 +3,8 @@ balanced.Customer.credit() % else: import balanced -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') +balanced.configure('ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD') -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits') +customer = balanced.Customer.find('/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo') customer.credit(amount=100) % endif \ No newline at end of file diff --git a/scenarios/customer_credit/request.mako b/scenarios/customer_credit/request.mako index 5f4d2e2..f15d0c7 100644 --- a/scenarios/customer_credit/request.mako +++ b/scenarios/customer_credit/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -customer = balanced.Customer.find('${request['uri']}') +customer = balanced.Customer.find('${request['customer_uri']}') customer.credit(amount=${request['payload']['amount']}) \ No newline at end of file