This file contains hidden or 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
| dependencies { | |
| compile 'com.graphql-java-kickstart:graphql-spring-boot-starter:5.2' | |
| compile 'com.graphql-java-kickstart:graphiql-spring-boot-starter:5.2' | |
| compile 'com.graphql-java-kickstart:voyager-spring-boot-starter:5.2' | |
| testCompile 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:5.2' | |
| implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.0.0' | |
| compile "io.reactivex.rxjava2:rxjava:2.1.5" | |
| implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | |
| implementation 'org.springframework.boot:spring-boot-starter-web' | |
| runtimeOnly 'org.postgresql:postgresql' |
This file contains hidden or 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
| FROM golang:1.12.5 AS ci-lint | |
| ENV CGO_ENABLED=0 GOFLAGS="-mod=vendor" | |
| WORKDIR /app | |
| ADD . /app | |
| RUN go run github.com/golangci/golangci-lint/cmd/golangci-lint run --verbose | |
| FROM golang:1.12.5 AS ci-test_unit | |
| ENV CGO_ENABLED=0 GOFLAGS="-mod=vendor" | |
| WORKDIR /app | |
| ADD . /app |
This file contains hidden or 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
| git clone https://github.com/wesovilabs/CD_Simulator.git | |
| cd CD_Simulator | |
| ## Run containers in detach mode | |
| make run | |
| ## It display logs | |
| make logs |
This file contains hidden or 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
| git clone https://github.com/wesovilabs/CD_nodejs.git | |
| cd CD_nodejs | |
| git remote set-url origin http://localhost:3000/developer/CD_nodejs.git | |
| git add . | |
| git commit -m "feat: initial commit" | |
| git push origin master |
This file contains hidden or 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
| function | delay | |
|---|---|---|
| very-slow | 4s | |
| slow | 4s | |
| medium | 3s | |
| fast | 2s | |
| veryf-fast | 1s |
This file contains hidden or 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
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "time" | |
| ) | |
| var times = map[string]float32{ | |
| "very-slow": 4, |
This file contains hidden or 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
| package advice | |
| import ( | |
| "bytes" | |
| "crypto/md5" | |
| "encoding/gob" | |
| "encoding/hex" | |
| "fmt" | |
| "github.com/patrickmn/go-cache" | |
| "github.com/wesovilabs/beyond/api" |
This file contains hidden or 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
| # feature-math-operations.hcl | |
| description = <<EOF | |
| This feature is used to demonstrate that both add and subs | |
| operations work as expected. | |
| EOF | |
| input { | |
| arg x { | |
| default = 10 | |
| } | |
| arg y { |
This file contains hidden or 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
| # variables-math-operations.hcl | |
| x = 46 | |
| y = 54 | |
| sumResult = 100 | |
| subResult = 8 |
This file contains hidden or 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
| # scenario-sum.hcl | |
| scenario "operation add" { | |
| when "values are added" { | |
| set result { | |
| value = x + y | |
| } | |
| } | |
| then "the result of the operation is the expected" { | |
| assert { | |
| assertion = result==sumResult |