Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Integration Tests
on:
push:
branches:
- master
pull_request:
branches:
- "*"

jobs:
integration-tests:
runs-on: 32gb-runner
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.2'

- name: Download Go dependencies
working-directory: ./server
run: go mod download

- name: Run Docker In Docker Container Tests
working-directory: ./server
run: go test -v ./tests -timeout 0 -run 'TestDinDIntegration'
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ npm-debug*
# ----------------------------
*.env
*.env.*

# ----------------------------
# Test Files
# ----------------------------
ui/test-results/
ui/playwright-report/
ui/blob-report/
ui/tests/.auth/
89 changes: 71 additions & 18 deletions api-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,17 @@ http://localhost:8000
- **Response**:

```json
{
"success": "boolean",
"message": "string",
"data": {
"type": "string",
"version": "string",
"config": "json"
}
{
"success": boolean,
"message": "string",
"data": {
"connection_result": {
"message": "string",
"status": "string"
},
"logs": "json"
}
}
```

### Create Source
Expand Down Expand Up @@ -305,15 +307,17 @@ http://localhost:8000

- **Response**:
```json
{
"success": "boolean",
"message": "string",
"data": {
"type": "string",
"version": "string",
"config": "json"
}
{
"success": boolean,
"message": "string",
"data": {
"connection_result": {
"message": "string",
"status": "string"
},
"logs": "json"
}
}
```

### Create Destination
Expand Down Expand Up @@ -503,6 +507,7 @@ http://localhost:8000
"frequency": "string",
"last_run_time": "timestamp",
"last_run_state": "string",
"last_run_type": "string",
"created_at": "timestamp",
"updated_at": "timestamp",
"created_by": "string", // username
Expand Down Expand Up @@ -538,6 +543,7 @@ http://localhost:8000
},
"frequency": "string",
"streams_config": "json",
"difference_streams": "string",
"activate": "boolean" // send this to activate or deactivate job
}
```
Expand Down Expand Up @@ -673,10 +679,11 @@ http://localhost:8000
"message": "string",
"data": [
{
"id": "string",
"file_path": "string",
"start_time": "timestamp",
"runtime": "integer",
"status": "string"
"status": "string",
"job_type": "string"
}
]
}
Expand Down Expand Up @@ -787,6 +794,52 @@ http://localhost:8000
}
```


### Clear destination for a Job
---

- **Endpoint**: `/api/v1/project/:projectid/jobs/:id/clear-destination`
- **Method**: POST
- **Description**: clears the destination data
- **Headers**: `Authorization: Bearer <token>`

- **Response**:

```json
{
"success": "boolean",
"message": "string",
"data": {
"message": "string"
}
}
```

### Difference Streams
- **Endpoint**: `/api/v1/project/:projectid/jobs/:id/difference-streams`
- **Method**: POST
- **Description**: returns the stream difference bewtween the saved and the updated streams
- **Headers**: `Authorization: Bearer <token>`
- - **Request Body**:

```json
{
"updated_streams_config": "json"
}
```

- **Response**:

```json
{
"success": "boolean",
"message": "string",
"data": {
"difference_streams": "json"
}
}
```

## Error Responses

All endpoints may return the following error responses:
Expand Down
94 changes: 76 additions & 18 deletions server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ go 1.24.2
require github.com/beego/beego/v2 v2.3.8

require (
github.com/apache/spark-connect-go/v35 v35.0.0-20250317154112-ffd832059443
github.com/aws/aws-sdk-go-v2/config v1.29.17
github.com/aws/aws-sdk-go-v2/service/ecr v1.50.5
github.com/aws/aws-sdk-go-v2/service/kms v1.41.1
github.com/docker/docker v28.3.3+incompatible
github.com/go-playground/validator/v10 v10.27.0
github.com/lib/pq v1.10.9
github.com/oklog/ulid v1.3.1
github.com/spf13/viper v1.20.1
github.com/testcontainers/testcontainers-go v0.39.0
go.temporal.io/sdk v1.34.0
golang.org/x/crypto v0.39.0
golang.org/x/mod v0.25.0
golang.org/x/crypto v0.41.0
golang.org/x/mod v0.26.0
)

require (
Expand All @@ -33,32 +36,87 @@ require (
)

require (
cloud.google.com/go/compute/metadata v0.7.0 // indirect
dario.cat/mergo v1.0.2 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/apache/arrow-go/v18 v18.2.0 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/containerd/errdefs v1.0.0 // indirect
github.com/containerd/errdefs/pkg v0.3.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/cpuguy83/dockercfg v0.3.2 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/go-connections v0.6.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/ebitengine/purego v0.8.4 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/goccy/go-json v0.10.5 // indirect
github.com/google/flatbuffers v25.2.10+incompatible // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
go.opentelemetry.io/otel v1.37.0 // indirect
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.10 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/go-archive v0.1.0 // indirect
github.com/moby/patternmatcher v0.6.0 // indirect
github.com/moby/sys/sequential v0.6.0 // indirect
github.com/moby/sys/user v0.4.0 // indirect
github.com/moby/sys/userns v0.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.1 // indirect
github.com/pierrec/lz4/v4 v4.1.22 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zeebo/xxh3 v1.0.2 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/otel v1.38.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.38.0 // indirect
go.opentelemetry.io/otel/metric v1.38.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect
go.opentelemetry.io/otel/trace v1.38.0 // indirect
go.opentelemetry.io/proto/otlp v1.8.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/tools v0.35.0 // indirect
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/jmoiron/sqlx v1.4.0
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/nexus-rpc/sdk-go v0.3.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
Expand All @@ -67,24 +125,24 @@ require (
github.com/sagikazarmark/locafero v0.7.0 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.12.0 // indirect
github.com/spf13/afero v1.14.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/stretchr/testify v1.10.0 // indirect
github.com/stretchr/testify v1.11.1
github.com/subosito/gotenv v1.6.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
go.temporal.io/api v1.46.0
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/net v0.41.0 // indirect
golang.org/x/sync v0.15.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/text v0.26.0 // indirect
golang.org/x/net v0.43.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.28.0 // indirect
golang.org/x/time v0.8.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
google.golang.org/grpc v1.73.0 // indirect
google.golang.org/protobuf v1.36.6 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
google.golang.org/grpc v1.75.0 // indirect
google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading