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
27 changes: 23 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,14 @@ jobs:
- name: Set env vars
id: latest-versions
run: |
echo "schemaversion=$( curl -sL https://api.github.com/repos/sdcio/schema-server/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT
echo "dataversion=$( curl -sL https://api.github.com/repos/sdcio/data-server/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT
echo "cacheversion=$( curl -sL https://api.github.com/repos/sdcio/cache/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT
echo "certmanagerversion=$( curl -sL https://api.github.com/repos/cert-manager/cert-manager/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT
set -euo pipefail
latest_release_name() {
curl -sfL "$1" | jq -er '.name'
}
echo "schemaversion=$(latest_release_name https://api.github.com/repos/sdcio/schema-server/releases/latest)" >> "$GITHUB_OUTPUT"
echo "dataversion=$(latest_release_name https://api.github.com/repos/sdcio/data-server/releases/latest)" >> "$GITHUB_OUTPUT"
echo "cacheversion=$(latest_release_name https://api.github.com/repos/sdcio/cache/releases/latest)" >> "$GITHUB_OUTPUT"
echo "certmanagerversion=$(latest_release_name https://api.github.com/repos/cert-manager/cert-manager/releases/latest)" >> "$GITHUB_OUTPUT"

integration-tests:
needs: [latest-versions, pr-release, resolve-paired-refs]
Expand All @@ -220,3 +224,18 @@ jobs:
certmanager_version: ${{ needs.latest-versions.outputs.certmanagerversion }}
integration_tests_ref: ${{ needs.resolve-paired-refs.outputs.inttest_ref }}
secrets: inherit

integration-tests-cache-backend:
name: integration-tests (config-server cache backend)
needs: [latest-versions, pr-release, resolve-paired-refs]
uses: sdcio/integration-tests/.github/workflows/single.yml@main
with:
configserver_version: ${{ needs.resolve-paired-refs.outputs.configversion }}
dataserver_version: ${{ needs.pr-release.outputs.dataversion }}
schemaserver_version: ${{ needs.latest-versions.outputs.schemaversion }}
cache_version: ${{ needs.latest-versions.outputs.cacheversion }}
certmanager_version: ${{ needs.latest-versions.outputs.certmanagerversion }}
integration_tests_ref: ${{ needs.resolve-paired-refs.outputs.inttest_ref }}
cache_type: config-server
suites_to_run: 00-setup,01-crs,05-cache-backend
secrets: inherit
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ mocks-gen: mocks-rm ## Generate mocks for all the defined interfaces.
mockgen -package=mocktarget -source=pkg/datastore/target/target.go -destination=$(MOCKDIR)/mocktarget/target.go
mockgen -package=mockTreeEntry -source=pkg/tree/api/entry.go -destination=$(MOCKDIR)/mocktreeentry/entry.go
mockgen -package=mocksdcpbpath -source=pkg/tree/api/sdcpb_path.go -destination=$(MOCKDIR)/mocksdcpbpath/sdcpb_path.go
mockgen -package=mockconfigread -destination=$(MOCKDIR)/mockconfigread/client.go github.com/sdcio/sdc-protos/config_read ConfigReadServiceClient

.PHONY: mocks-rm
mocks-rm: ## remove generated mocks
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/sdcio/cache v0.0.38
github.com/sdcio/logger v0.0.3
github.com/sdcio/schema-server v0.0.34
github.com/sdcio/sdc-protos v0.0.56-0.20260923091638-fd8bd021dd18
github.com/sdcio/sdc-protos v0.0.56-0.20260923101805-f894efbc2109
github.com/sdcio/yang-parser v0.0.12
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ github.com/sdcio/logger v0.0.3 h1:IFUbObObGry+S8lHGwOQKKRxJSuOphgRU/hxVhOdMOM=
github.com/sdcio/logger v0.0.3/go.mod h1:yWaOxK/G6vszjg8tKZiMqiEjlZouHsjFME4zSk+SAEA=
github.com/sdcio/schema-server v0.0.34 h1:NNDOkvtUMONtBA7cVvN96F+FWGD/Do6HNqfchy9B8eI=
github.com/sdcio/schema-server v0.0.34/go.mod h1:6t8HLXpqUqEJmE5yNZh29u/KZw0jlOICdNWns7zE4GE=
github.com/sdcio/sdc-protos v0.0.56-0.20260923091638-fd8bd021dd18 h1:zZcmOenZMl7SaIXacu4sUJmVwdia0Y8w6R1vU7AZCO0=
github.com/sdcio/sdc-protos v0.0.56-0.20260923091638-fd8bd021dd18/go.mod h1:hER0riYU3G55NnMQ0p0R9kIL/fzqq1zab4pOgUT3Yfg=
github.com/sdcio/sdc-protos v0.0.56-0.20260923101805-f894efbc2109 h1:LUWrCZAnPui2+vx2wdIYVEAHATqCv+/PVbK6QUmPhCY=
github.com/sdcio/sdc-protos v0.0.56-0.20260923101805-f894efbc2109/go.mod h1:hER0riYU3G55NnMQ0p0R9kIL/fzqq1zab4pOgUT3Yfg=
github.com/sdcio/yang-parser v0.0.12 h1:RSSeqfAOIsJx5Lno5u4/ezyOmQYUduQ22rBfU/mtpJ4=
github.com/sdcio/yang-parser v0.0.12/go.mod h1:CBqn3Miq85qmFVGHxHXHLluXkaIOsTzV06IM4DW6+D4=
github.com/sirikothe/gotextfsm v1.0.1-0.20200816110946-6aa2cfd355e4 h1:FHUL2HofYJuslFOQdy/JjjP36zxqIpd/dcoiwLMIs7k=
Expand Down
83 changes: 83 additions & 0 deletions mocks/mockconfigread/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading