$ terraform workspace new staging
Created and switched to workspace "staging"!
You're now on a new, empty workspace. Workspaces isolate their state,
so if you run "terraform plan" Terraform will not see any existing state
for this configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create S3 bucket, for example: react | |
Create CloudFront distributions with these settings: | |
Default Root Object: index.html | |
Origin Domain Name: S3 bucket domain, for example: react.s3.amazonaws.com | |
Go to Error Pages tab, click on Create Custom Error Response: | |
HTTP Error Code: 403: Forbidden (404: Not Found, in case of S3 Static Website) | |
Customize Error Response: Yes | |
Response Page Path: /index.html | |
HTTP Response Code: 200: OK | |
Click on Create |
To create a new report in Testlink, there are a number of steps to follow:
- Create a PHP file inside
lib/results/
which will hold all of the code necessary to generate the report for all of the different formats that you want hte report to be supported for. * The file should probably use the template engine Smarty to generate the reports to display, especially the HTML reports. * Examples of other reports are found in the same folder. - Added the custom report to the configuration file
/cfg/custom_reports.cfg.php
. * The configuration is added in the following format, appeneded to the end of the file, but before?>
: ``` $tlCfg->reports_list['MY_REPORT'] = array( 'title' => 'link_MY_REPORT',
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cherrypy | |
from jinja2 import Environment, Template, FileSystemLoader | |
env = Environment( loader = FileSystemLoader('./templates') ) | |
class Root: | |
@cherrypy.expose | |
def index(self): | |
return env.get_template( "index.html" ).render( months = [ '2010-01', '2010-02', '2010-03', '2010-04', '2010-05', '2010-06' ] ) |