Use rackspace estimate calculator
This commit is contained in:
parent
ff9ade90b1
commit
02cac0b2d9
@ -38,6 +38,10 @@ class CloudProviderInterface:
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def calculator_url(self): # pragma: no cover
|
||||
"""Returns a URL for the CSP's estimate calculator."""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class MockCloudProvider(CloudProviderInterface):
|
||||
def create_application(self, name):
|
||||
@ -64,3 +68,6 @@ class MockCloudProvider(CloudProviderInterface):
|
||||
env_id = environment_role.environment.cloud_id or ""
|
||||
role_details = environment_role.role
|
||||
return "::".join([user_id, env_id, role_details])
|
||||
|
||||
def calculator_url(self):
|
||||
return "https://www.rackspace.com/en-us/calculator"
|
||||
|
@ -146,4 +146,4 @@ def csp_environment_access():
|
||||
|
||||
@bp.route("/jedi-csp-calculator")
|
||||
def jedi_csp_calculator():
|
||||
return render_template("mock_csp.html", text="service and price calculator")
|
||||
return redirect(app.csp.cloud.calculator_url())
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
<h3 class="subheading">{{ "task_orders.new.funding.estimate_usage_title" | translate }}</h3>
|
||||
<p>{{ "task_orders.new.funding.estimate_usage_description" | translate }}</p>
|
||||
<p><a class="icon-link" href="{{ url_for('atst.jedi_csp_calculator') }}">
|
||||
<p><a class="icon-link" target="_blank" href="{{ url_for('atst.jedi_csp_calculator') }}">
|
||||
{{ Icon("link")}} Cloud Service Provider's estimate calculator
|
||||
</a></p>
|
||||
<p>{{ "task_orders.new.funding.estimate_usage_paragraph" | translate }}</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user