88# - On other operating systems `make build` (test) we only runs the .NET 6.0 build (test) targets.
99# - We also have a GRPC_WEB flag that can be set to true to enable gRPC-Web support.
1010# - The caller can run `make GRPC_WEB=true build` to enable gRPC-Web support.
11- # - We additionally group the integration tests by endpoint (cache, control, token ).
12- # - This is to allow for more granular testing by endpoint .
13- # - Similar to `build` and `test` targets, we have `test-cache-endpoint `, `test-control-endpoint `, `test-token-endpoint`, and `test-storage-endpoint ` targets
11+ # - We additionally group the integration tests by service (auth, cache, topics ).
12+ # - This is to allow for more granular testing by service .
13+ # - Similar to `build` and `test` targets, we have `test-cache-service `, `test-topics-service `, `test-auth-service ` targets
1414# that are conditionally run based on the operating system.
1515
1616.PHONY : all build build-dotnet6 build-dotnet-framework clean clean-build precommit restore test \
17- test-dotnet6 test-dotnet6-integration test-dotnet6-cache-endpoint test-dotnet6-control-endpoint test-dotnet6-token-endpoint \
18- test-dotnet-framework test-dotnet-framework-integration test-dotnet-framework-cache-endpoint test-dotnet-framework-control-endpoint test-dotnet-framework-token-endpoint \
19- test-control-endpoint test-cache-endpoint test-token-endpoint test-storage-endpoint \
17+ test-dotnet6 test-dotnet6-integration test-dotnet6-cache-service test-dotnet6-topics-service test-dotnet6-auth-service \
18+ test-dotnet-framework test-dotnet-framework-integration test-dotnet-framework-cache-service test-dotnet-framework-topics-service test-dotnet-framework-auth-service \
19+ test-auth-service test-cache-service test-leaderboard-service test-storage-service test-topics-service \
2020 run-examples help
2121
2222# Determine the operating system
@@ -32,15 +32,15 @@ TEST_LOGGER_OPTIONS := --logger "console;verbosity=detailed"
3232ifneq (,$(findstring NT,$(OS ) ) )
3333 BUILD_TARGETS := build-dotnet6 build-dotnet-framework
3434 TEST_TARGETS := test-dotnet6 test-dotnet-framework
35- TEST_TARGETS_CACHE_ENDPOINT := test-dotnet6-cache-endpoint test-dotnet-framework-cache-endpoint
36- TEST_TARGETS_CONTROL_ENDPOINT := test-dotnet6-control-endpoint test-dotnet-framework-control-endpoint
37- TEST_TARGETS_TOKEN_ENDPOINT := test-dotnet6-token-endpoint test-dotnet-framework-token-endpoint
35+ TEST_TARGETS_AUTH_SERVICE := test-dotnet6-auth-service test-dotnet-framework-auth-service
36+ TEST_TARGETS_CACHE_SERVICE := test-dotnet6-cache-service test-dotnet-framework-cache-service
37+ TEST_TARGETS_TOPICS_SERVICE := test-dotnet6-topics-service test-dotnet-framework-topics-service
3838else
3939 BUILD_TARGETS := build-dotnet6
4040 TEST_TARGETS := test-dotnet6
41- TEST_TARGETS_CACHE_ENDPOINT := test-dotnet6-cache-endpoint
42- TEST_TARGETS_CONTROL_ENDPOINT := test-dotnet6-control-endpoint
43- TEST_TARGETS_TOKEN_ENDPOINT := test-dotnet6-token-endpoint
41+ TEST_TARGETS_AUTH_SERVICE := test-dotnet6-auth-service
42+ TEST_TARGETS_CACHE_SERVICE := test-dotnet6-cache-service
43+ TEST_TARGETS_TOPICS_SERVICE := test-dotnet6-topics-service
4444endif
4545
4646# Enable gRPC-Web if requested
@@ -50,9 +50,9 @@ ifeq ($(GRPC_WEB), true)
5050endif
5151
5252# Various test filters
53- CACHE_ENDPOINT_TESTS_FILTER := "FullyQualifiedName~Momento.Sdk.Tests.Integration.Cache.Data|FullyQualifiedName~Momento.Sdk.Tests.Integration.Topics.Data "
54- CONTROL_ENDPOINT_TESTS_FILTER := "FullyQualifiedName~Momento.Sdk.Tests.Integration.Cache.Control "
55- TOKEN_ENDPOINT_TESTS_FILTER := "FullyQualifiedName~Momento.Sdk.Tests.Integration.Auth"
53+ CACHE_SERVICE_TESTS_FILTER := "FullyQualifiedName~Momento.Sdk.Tests.Integration.Cache"
54+ TOPICS_SERVICE_TESTS_FILTER := "FullyQualifiedName~Momento.Sdk.Tests.Integration.Topics "
55+ AUTH_SERVICE_TESTS_FILTER := "FullyQualifiedName~Momento.Sdk.Tests.Integration.Auth"
5656
5757
5858# # Generate sync unit tests, format, lint, and test
@@ -104,22 +104,22 @@ test-dotnet6:
104104 @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION}
105105
106106
107- # # Run integration tests on the .NET 6.0 runtime against the cache endpoint
108- test-dotnet6-cache-endpoint :
109- @echo " Running integration tests on the .NET 6.0 runtime against the cache endpoint ..."
110- @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION} --filter ${CACHE_ENDPOINT_TESTS_FILTER }
107+ # # Run integration tests on the .NET 6.0 runtime against the cache service
108+ test-dotnet6-cache-service :
109+ @echo " Running integration tests on the .NET 6.0 runtime against the cache service ..."
110+ @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION} --filter ${CACHE_SERVICE_TESTS_FILTER }
111111
112112
113- # # Run integration tests on the .NET 6.0 runtime against the control endpoint
114- test-dotnet6-control-endpoint :
115- @echo " Running integration tests on the .NET 6.0 runtime against the control endpoint ..."
116- @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION} --filter ${CONTROL_ENDPOINT_TESTS_FILTER }
113+ # # Run integration tests on the .NET 6.0 runtime against the topics service
114+ test-dotnet6-topics-service :
115+ @echo " Running integration tests on the .NET 6.0 runtime against the topics service ..."
116+ @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION} --filter ${TOPICS_SERVICE_TESTS_FILTER }
117117
118118
119- # # Run integration tests on the .NET 6.0 runtime against the token endpoint
120- test-dotnet6-token-endpoint :
121- @echo " Running integration tests on the .NET 6.0 runtime against the token endpoint ..."
122- @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION} --filter ${TOKEN_ENDPOINT_TESTS_FILTER }
119+ # # Run integration tests on the .NET 6.0 runtime against the auth service
120+ test-dotnet6-auth-service :
121+ @echo " Running integration tests on the .NET 6.0 runtime against the auth service ..."
122+ @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_VERSION} --filter ${AUTH_SERVICE_TESTS_FILTER }
123123
124124
125125# # Run unit and integration tests on the .NET Framework runtime (Windows only)
@@ -128,39 +128,44 @@ test-dotnet-framework:
128128 @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION}
129129
130130
131- # # Run integration tests on the .NET Framework runtime against the cache endpoint (Windows only)
132- test-dotnet-framework-cache-endpoint :
133- @echo " Running integration tests on the .NET Framework runtime against the cache endpoint ..."
134- @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION} --filter ${CACHE_ENDPOINT_TESTS_FILTER }
131+ # # Run integration tests on the .NET Framework runtime against the cache service (Windows only)
132+ test-dotnet-framework-cache-service :
133+ @echo " Running integration tests on the .NET Framework runtime against the cache service ..."
134+ @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION} --filter ${CACHE_SERVICE_TESTS_FILTER }
135135
136136
137- # # Run integration tests on the .NET Framework runtime against the control endpoint (Windows only)
138- test-dotnet-framework-control-endpoint :
139- @echo " Running integration tests on the .NET Framework runtime against the control endpoint ..."
140- @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION} --filter ${CONTROL_ENDPOINT_TESTS_FILTER }
137+ # # Run integration tests on the .NET Framework runtime against the topics service (Windows only)
138+ test-dotnet-framework-topics-service :
139+ @echo " Running integration tests on the .NET Framework runtime against the topics service ..."
140+ @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION} --filter ${TOPICS_SERVICE_TESTS_FILTER }
141141
142142
143- # # Run integration tests on the .NET Framework runtime against the token endpoint (Windows only)
144- test-dotnet-framework-token-endpoint :
145- @echo " Running integration tests on the .NET Framework runtime against the token endpoint ..."
146- @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION} --filter ${TOKEN_ENDPOINT_TESTS_FILTER }
143+ # # Run integration tests on the .NET Framework runtime against the auth service (Windows only)
144+ test-dotnet-framework-auth-service :
145+ @echo " Running integration tests on the .NET Framework runtime against the auth service ..."
146+ @dotnet test ${TEST_LOGGER_OPTIONS} -f ${DOTNET_FRAMEWORK_VERSION} --filter ${AUTH_SERVICE_TESTS_FILTER }
147147
148148
149- # # Run cache endpoint tests
150- test-cache-endpoint : ${TEST_TARGETS_CACHE_ENDPOINT }
149+ # # Run auth service tests
150+ test-auth-service : ${TEST_TARGETS_AUTH_SERVICE }
151151
152152
153- # # Run control endpoint tests
154- test-control-endpoint : ${TEST_TARGETS_CONTROL_ENDPOINT }
153+ # # Run cache service tests
154+ test-cache-service : ${TEST_TARGETS_CACHE_SERVICE }
155155
156156
157- # # Run token endpoint tests
158- test-token-endpoint : ${TEST_TARGETS_TOKEN_ENDPOINT}
157+ # # Run leaderboard service tests
158+ test-leaderboard-service :
159+ @echo " Leaderboard client not implemented yet."
159160
160161
161- # # Run storage endpoint tests
162- test-storage-endpoint :
163- @echo " Storage tests are not yet implemented."
162+ # # Run storage service tests
163+ test-storage-service :
164+ @echo " Storage client not implemented yet."
165+
166+
167+ # # Run topics service tests
168+ test-topics-service : ${TEST_TARGETS_TOPICS_SERVICE}
164169
165170
166171# # Run example applications and snippets
0 commit comments