Skip to content

Commit 3be71cf

Browse files
Refactored SAS URL API (#222)
* Refactored SAS URL API * fixes found while testing * Addressed PR comments
1 parent 370cd7b commit 3be71cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1223
-301
lines changed

.github/workflows/premerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: 1.16
20+
go-version: 1.17
2121

2222
- name: Checkout code
2323
uses: actions/checkout@v2

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ build-synapse-image: ## Builds synapse docker image
2424

2525
build-synapse-bin: ## Builds synapse binary
2626
bash build/synapse/build.sh
27+
28+
install-mockery-mac:
29+
brew install mockery
30+
31+
install-mockery-linux:
32+
apt update && apt install -y mockery
33+
34+
gen-mock-files:
35+
mockery --dir=./pkg --all

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ curl https://raw.githubusercontent.com/LambdaTest/test-at-scale/main/.sample.syn
102102
docker info --format "CPU: {{.NCPU}}, RAM: {{.MemTotal}}"
103103
```
104104
- Execute the above command to ensure that resources usable by Docker are atleast `CPU: 2, RAM: 4294967296`.
105-
> **NOTE:** In order to run test-at-scale you require a minimum configuration of 2 CPU cores and 4 GBs of RAM.
105+
> **NOTE:** In order to run test-at-scale you require a minimum configuration of 2 CPU cores and 4 GiBs of RAM.
106106
107107
- The `.synapse.json` configuration file made in [Step 2](#step-2---creating-a-configuration-file-for-self-hosted-setup) will be required before executing the next command.
108108
- Download and run the docker compose file using the following command.

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ module github.com/LambdaTest/test-at-scale
33
go 1.17
44

55
require (
6+
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1
67
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0
78
github.com/bmatcuk/doublestar/v4 v4.0.2
89
github.com/cenkalti/backoff/v4 v4.1.3
910
github.com/denisbrodbeck/machineid v1.0.1
1011
github.com/docker/docker v20.10.12+incompatible
12+
github.com/docker/go-units v0.4.0
1113
github.com/gin-gonic/gin v1.7.7
1214
github.com/go-playground/locales v0.14.0
1315
github.com/go-playground/universal-translator v0.18.0
1416
github.com/go-playground/validator/v10 v10.10.0
15-
github.com/golang/mock v1.6.0
1617
github.com/google/uuid v1.2.0
1718
github.com/gorilla/websocket v1.4.2
1819
github.com/joho/godotenv v1.4.0
@@ -30,7 +31,6 @@ require (
3031
)
3132

3233
require (
33-
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 // indirect
3434
github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 // indirect
3535
github.com/Microsoft/go-winio v0.4.17 // indirect
3636
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
@@ -39,7 +39,6 @@ require (
3939
github.com/davecgh/go-spew v1.1.1 // indirect
4040
github.com/docker/distribution v2.8.0+incompatible // indirect
4141
github.com/docker/go-connections v0.4.0 // indirect
42-
github.com/docker/go-units v0.4.0 // indirect
4342
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
4443
github.com/fsnotify/fsnotify v1.5.1 // indirect
4544
github.com/gin-contrib/sse v0.1.0 // indirect

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt
404404
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
405405
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
406406
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
407-
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
408407
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
409408
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
410409
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=

testutils/mocks/AzureClient.go renamed to mocks/AzureClient.go

Lines changed: 24 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mocks/BlockTestService.go

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mocks/Builder.go

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testutils/mocks/CacheStore.go renamed to mocks/CacheStore.go

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mocks/CoverageService.go

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)