Adds annotation attribute to CreateFunctionRequest

1. Add new annotation attributes which may be used
by the back-end for making scheduling or routing decisions.

2. Updated tests/README.md to give clearer instructions on creating and
tearing down the stack required to run the integration tests

3. Update ci.sh
 * Fail as soon as an error is encountered
 * Allow script to run locally in development environment, test if repos
are already cloned etc..
 * Deploy ./stack.yml used by existing integration tests

Signed-off-by: Edward Wilde <ewilde@gmail.com>
This commit is contained in:
Edward Wilde
2018-07-20 19:33:14 +01:00
committed by Alex Ellis
parent 9512f09d2b
commit be907d220c
9 changed files with 90 additions and 18 deletions

View File

@ -3,17 +3,17 @@ package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"strconv"
"time"
"log"
)
func main() {
input, err := ioutil.ReadAll(os.Stdin)
if err != nil {
log.Fatalf("Cannot read input %s.\n", err)
return
return
}
now := time.Now()
stamp := strconv.FormatInt(now.UnixNano(), 10)
@ -21,7 +21,7 @@ func main() {
writeErr := ioutil.WriteFile(stamp+".txt", input, 0644)
if writeErr != nil {
log.Fatalf("Cannot write input %s.\n", err)
return
return
}
fmt.Printf("Stashing request: %s.txt\n", stamp)