Skip to content

Commit 93648ed

Browse files
[#45] Add build tag to unit tests (#46)
- crypto, pkg/browser and azidentity dependencies removed Signed-off-by: Georgi Boyvalenkov <[email protected]>
1 parent 1ab4f42 commit 93648ed

File tree

8 files changed

+12
-22
lines changed

8 files changed

+12
-22
lines changed

.github/workflows/validation.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
go vet ./...
4242
- name: Test
4343
run: |
44-
go test ./... -coverprofile coverage.out -covermode count
44+
go test ./... -coverprofile coverage.out -covermode count -tags=unit
4545
go tool cover -func coverage.out
4646
- name: Build Integration Tests
4747
run: |

NOTICE.md

-18
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@ golang.org/x/text (v0.7.0)
160160
* Project: https://pkg.go.dev/golang.org/x/text
161161
* Source: https://github.com/golang/text/tree/v0.7.0
162162

163-
golang.org/x/crypto (v0.6.0)
164-
165-
* License: BSD 3-Clause "New" or "Revised" License
166-
* Project: https://pkg.go.dev/golang.org/x/crypto
167-
* Source: https://github.com/golang/crypto/tree/v0.6.0
168-
169163
golang.org/x/net (v0.7.0)
170164

171165
* License: BSD 3-Clause "New" or "Revised" License
@@ -184,12 +178,6 @@ azure-sdk-for-go/sdk/azcore (0.20.0)
184178
* Project: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azcore
185179
* Source: https://github.com/Azure/azure-sdk-for-go/tree/sdk/azcore/v0.20.0/sdk/azcore
186180

187-
azure-sdk-for-go/sdk/azidentity (0.12.0)
188-
189-
* License: MIT License
190-
* Project: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azidentity
191-
* Source: https://github.com/Azure/azure-sdk-for-go/tree/sdk/azidentity/v0.12.0/sdk/azidentity
192-
193181
azure-sdk-for-go/sdk/internal (0.8.1)
194182

195183
* License: MIT License
@@ -202,12 +190,6 @@ azure-sdk-for-go/sdk/storage/azblob (0.2.0)
202190
* Project: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azblob
203191
* Source: https://github.com/Azure/azure-sdk-for-go/tree/sdk/storage/azblob/v0.2.0/sdk/storage/azblob
204192

205-
pkg/browser (v0.0.0-20180916011732-0a3d74bf9ce4)
206-
207-
* License: BSD 2-Clause "Simplified" License
208-
* Project: https://github.com/pkg/browser
209-
* Source: https://github.com/pkg/browser/tree/0a3d74bf9ce488f035cf5bc36f753a711bc74334
210-
211193
## Cryptography
212194

213195
Content may contain encryption software. The country in which you are currently

client/archive_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
1212

13+
//go:build unit
14+
1315
package client
1416

1517
import (

client/backup_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
1212

13+
//go:build unit
14+
1315
package client
1416

1517
import (

client/command_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
1212

13+
//go:build unit
14+
1315
package client
1416

1517
import (

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.17
44

55
require (
66
github.com/caarlos0/env/v6 v6.10.1
7-
github.com/eclipse-kanto/file-upload v0.1.0-M2.0.20230106094105-baea90603223
7+
github.com/eclipse-kanto/file-upload v0.1.0-M2.0.20230227123953-852605ed1a39
88
github.com/eclipse-kanto/kanto/integration/util v0.0.0-20230103144956-911e45a2bf55
99
github.com/eclipse/ditto-clients-golang v0.0.0-20220225085802-cf3b306280d3
1010
github.com/eclipse/paho.mqtt.golang v1.4.1

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
4141
github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko=
4242
github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
4343
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
44-
github.com/eclipse-kanto/file-upload v0.1.0-M2.0.20230106094105-baea90603223 h1:XD0YRufUtwEFJ8QiMbokyRhVJni+L15CQjgAfDk0UBo=
45-
github.com/eclipse-kanto/file-upload v0.1.0-M2.0.20230106094105-baea90603223/go.mod h1:qFMeeksy4TGlQmJ7umUPUQhEaW2KLXLGBY88mUEutqI=
44+
github.com/eclipse-kanto/file-upload v0.1.0-M2.0.20230227123953-852605ed1a39 h1:PkY5QYjgc/NL8oJCQ1Upd2DzHjuH+vr1SAD451rBXSE=
45+
github.com/eclipse-kanto/file-upload v0.1.0-M2.0.20230227123953-852605ed1a39/go.mod h1:ebD9wfSdRN8OumMlzSYHrUIZnNplUwVBk0C2vr3unoo=
4646
github.com/eclipse-kanto/kanto/integration/util v0.0.0-20230103144956-911e45a2bf55 h1:a9tYAvpMoDUfcaGL6HZSEOFq82r8VYP+M2dIzTHve2U=
4747
github.com/eclipse-kanto/kanto/integration/util v0.0.0-20230103144956-911e45a2bf55/go.mod h1:mhkMBNIG+JDz35JAj8JVWMe0/ROpKmk/i6RYHU6Rea4=
4848
github.com/eclipse/ditto-clients-golang v0.0.0-20220225085802-cf3b306280d3 h1:bfFGs26yNSfhSi6xmnmykB0jZn1Vu5e1/7JA5Wu5aGc=

internal/flags_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
1212

13+
//go:build unit
14+
1315
package flags
1416

1517
import (

0 commit comments

Comments
 (0)