Skip to content

Commit 7c94d8d

Browse files
committed
Remove directory-mock dir, align everything with directory schema
1 parent 6ed4c53 commit 7c94d8d

40 files changed

Lines changed: 948 additions & 1873 deletions

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ updates:
55
directories:
66
- "/broker"
77
- "/directory"
8-
- "/directory-mock"
98
- "/httpclient"
109
- "/illmock"
1110
- "/iso18626"

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GO ?= go
2-
SUBDIRS := testutil iso18626 ncip directory directory-mock sru marcxml httpclient zoom illmock broker
3-
TOOL_SUBDIRS := iso18626 ncip directory directory-mock sru marcxml broker
2+
SUBDIRS := testutil iso18626 ncip directory sru marcxml httpclient zoom illmock broker
3+
TOOL_SUBDIRS := iso18626 ncip directory sru marcxml broker
44
TOOL_SUBDIR_TARGETS := $(TOOL_SUBDIRS:%=%-tools-update)
55
GOALS := $(or $(MAKECMDGOALS),all)
66
SUBDIR_GOALS := $(filter-out tools-update,$(GOALS))

broker/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ WORKDIR /app
88
COPY broker/go.mod broker/go.sum ./broker/
99
COPY directory/go.mod directory/go.sum ./directory/
1010
COPY illmock/go.mod illmock/go.sum ./illmock/
11-
COPY directory-mock/go.mod directory-mock/go.sum ./directory-mock/
1211
COPY httpclient/go.mod httpclient/go.sum ./httpclient/
1312
COPY iso18626/go.mod iso18626/go.sum ./iso18626/
1413
COPY marcxml/go.mod marcxml/go.sum ./marcxml/
@@ -21,7 +20,6 @@ RUN go work init \
2120
./broker \
2221
./directory \
2322
./illmock \
24-
./directory-mock \
2523
./httpclient \
2624
./iso18626 \
2725
./marcxml \

broker/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ require (
1616

1717
replace (
1818
github.com/indexdata/crosslink/directory => ../directory
19-
github.com/indexdata/crosslink/directory-mock => ../directory-mock
2019
github.com/indexdata/crosslink/httpclient => ../httpclient
2120
github.com/indexdata/crosslink/illmock => ../illmock
2221
github.com/indexdata/crosslink/iso18626 => ../iso18626
@@ -84,7 +83,6 @@ require (
8483
github.com/google/cel-go v0.28.0 // indirect
8584
github.com/gorilla/mux v1.8.1 // indirect
8685
github.com/inconshreveable/mousetrap v1.1.0 // indirect
87-
github.com/indexdata/crosslink/directory-mock v0.0.0 // indirect
8886
github.com/jackc/pgpassfile v1.0.0 // indirect
8987
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
9088
github.com/jackc/puddle/v2 v2.2.2 // indirect

broker/test/catalog/holdings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestMain(m *testing.M) {
110110
test.Expect(os.Setenv("PEER_URL", brokerUrl), "failed to set peer URL")
111111
app.AVAILABILITY_ADAPTER = catalog.LookupAdapterZoom
112112
app.DIRECTORY_ADAPTER = "api"
113-
app.DIRECTORY_API_URL = "http://localhost:" + strconv.Itoa(mockPort) + "/directory/entries"
113+
app.DIRECTORY_API_URL = "http://localhost:" + strconv.Itoa(mockPort) + "/rsdir/entries"
114114
app.HOLDINGS_ADAPTER = "consortium"
115115
app.CONSORTIUM_SYMBOL = "ISIL:GVIC"
116116

bruno/docker-compose-reservoir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ services:
3737
HOLDINGS_ISXN_LOOKUP: "true"
3838
SRU_URL: http://reservoir:8082/reservoir/sru
3939
DIRECTORY_ADAPTER: api
40-
DIRECTORY_API_URL: http://illmock:8081/directory/entries
40+
DIRECTORY_API_URL: http://illmock:8081/rsdir/entries
4141
TENANT_TO_SYMBOL: "ISIL:US-{tenant}"
4242
ports:
4343
- "8080:8080"

bruno/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ services:
3434
DB_PROVISION: "true"
3535
DB_MIGRATE: "true"
3636
DIRECTORY_ADAPTER: api
37-
DIRECTORY_API_URL: http://illmock:8081/directory/entries
37+
DIRECTORY_API_URL: http://illmock:8081/rsdir/entries
3838
TENANT_TO_SYMBOL: "ISIL:US-{tenant}"
3939
ports:
4040
- "8080:8080"

directory-mock/Makefile

Lines changed: 0 additions & 39 deletions
This file was deleted.

directory-mock/codegen_deps.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)