Skip to content

Commit 7e31eff

Browse files
authored
Merge pull request #529 from rstudio/kegs-rm-mock-connect
Deprecate mock_connect and fix test_main_content tests
2 parents dd62c0e + 1499cdc commit 7e31eff

File tree

18 files changed

+625
-1155
lines changed

18 files changed

+625
-1155
lines changed

Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ ifneq ($(GITHUB_RUN_ID),)
1919
endif
2020

2121
TEST_ENV =
22+
TEST_ENV += CONNECT_CONTENT_BUILD_DIR="rsconnect-build-test"
2223

2324
ifneq ($(CONNECT_SERVER),)
2425
TEST_ENV += CONNECT_SERVER=$(CONNECT_SERVER)
2526
endif
2627
ifneq ($(CONNECT_API_KEY),)
2728
TEST_ENV += CONNECT_API_KEY=$(CONNECT_API_KEY)
2829
endif
29-
ifneq ($(CONNECT_CONTENT_BUILD_DIR),)
30-
TEST_ENV += CONNECT_CONTENT_BUILD_DIR=$(CONNECT_CONTENT_BUILD_DIR)
31-
endif
3230

3331
# NOTE: See the `dist` target for why this exists.
3432
SOURCE_DATE_EPOCH := $(shell date +%s)
@@ -49,16 +47,6 @@ shell-%:
4947
test-%:
5048
PYTHON_VERSION=$* $(RUNNER) '$(TEST_ENV) $(TEST_COMMAND)'
5149

52-
mock-test-%: clean-stores
53-
@$(MAKE) -C mock_connect image up
54-
@sleep 1
55-
trap "$(MAKE) -C mock_connect down" EXIT; \
56-
CONNECT_CONTENT_BUILD_DIR="rsconnect-build-test" \
57-
CONNECT_SERVER="http://$(HOSTNAME):3939" \
58-
CONNECT_API_KEY="21232f297a57a5a743894a0e4a801fc3" \
59-
$(MAKE) test-$*
60-
@$(MAKE) -C mock_connect down
61-
6250
fmt-%:
6351
$(RUNNER) 'black .'
6452

mock_connect/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

mock_connect/Dockerfile

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

mock_connect/Makefile

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

mock_connect/README.md

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

mock_connect/data.json

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

mock_connect/mock_connect/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)