Skip to content

Commit ddbe26a

Browse files
Merge pull request #67 from nicholasjackson/f-update-helm
Update Helm chart to use static secret
2 parents 0365559 + 63ccacb commit ddbe26a

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ jobs:
5454
needs:
5555
- build_controller
5656
strategy:
57-
max-parallel: 1
57+
max-parallel: 2
5858
matrix:
5959
tags:
6060
- "@k8s_canary_existing"
61-
- "@k8s_canary_none"
62-
- "@k8s_canary_rollback"
63-
- "@k8s_canary_with_post_deployment_test"
64-
- "@k8s_canary_with_post_deployment_test_fail"
65-
- "@nomad_canary_existing"
61+
#- "@k8s_canary_none"
62+
#- "@k8s_canary_rollback"
63+
#- "@k8s_canary_with_post_deployment_test"
64+
#- "@k8s_canary_with_post_deployment_test_fail"
65+
# - "@nomad_canary_existing"
6666
steps:
6767
- uses: actions/checkout@v2
6868

functional_tests/config/nomad/payments.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ job "payments-deployment" {
44
datacenters = ["dc1"]
55

66
group "payments" {
7-
count = 3
7+
count = 1
88

99
network {
1010
mode = "bridge"

functional_tests/config/nomad/payments_canary.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ job "payments-deployment" {
55
datacenters = ["dc1"]
66

77
group "payments" {
8-
count = 3
8+
count = 1
99

1010
network {
1111
mode = "bridge"

functional_tests/main.go

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,21 @@ func main() {
5353
os.Exit(status)
5454
}
5555

56+
var logfile string
57+
var suiteError error
58+
5659
func initializeSuite(ctx *godog.TestSuiteContext) {
5760
ctx.BeforeSuite(func() {
5861
})
62+
63+
ctx.AfterSuite(func() {
64+
if suiteError != nil {
65+
fmt.Printf("Error log written to file %s", logfile)
66+
67+
b, _ := ioutil.ReadFile(logfile)
68+
fmt.Println(string(b))
69+
}
70+
})
5971
}
6072

6173
func initializeScenario(ctx *godog.ScenarioContext) {
@@ -102,6 +114,11 @@ func initializeScenario(ctx *godog.ScenarioContext) {
102114

103115
ctx.After(func(ctx context.Context, sc *godog.Scenario, scenarioError error) (context.Context, error) {
104116
logger.Info("Scenario complete, cleanup", "error", scenarioError)
117+
118+
if scenarioError != nil {
119+
suiteError = scenarioError
120+
}
121+
105122
if releaseServer != nil {
106123
err := releaseServer.Shutdown()
107124
if err != nil {
@@ -133,12 +150,12 @@ func initializeScenario(ctx *godog.ScenarioContext) {
133150

134151
if scenarioError != nil && !*alwaysLog {
135152
pwd, _ := os.Getwd()
136-
logfile := path.Join(pwd, "tests.log")
153+
logfile = path.Join(pwd, "tests.log")
154+
137155
// create log file
138156
os.Remove(logfile)
139157
os.WriteFile(logfile, logStore.Bytes(), os.ModePerm)
140158

141-
fmt.Printf("Error log written to file %s", logfile)
142159
}
143160

144161
if scenarioError != nil || *dontDestroy {

0 commit comments

Comments
 (0)