File tree Expand file tree Collapse file tree 3 files changed +31
-5
lines changed
contract-tests/src/bin/sse-test-api Expand file tree Collapse file tree 3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 2525 - store_artifacts :
2626 path : target/doc
2727 destination : doc
28+ - run :
29+ command : make start-contract-test-service
30+ background : true
31+ - run :
32+ name : run contract tests
33+ command : make run-contract-tests
2834
2935 publish :
3036 docker :
Original file line number Diff line number Diff line change 1+ TEMP_TEST_OUTPUT =/tmp/contract-test-service.log
2+ SKIPFLAGS = -skip 'linefeeds' -skip 'basic parsing' -skip 'HTTP behavior' -skip 'reconnection'
3+
4+ build-contract-tests :
5+ @cargo build
6+
7+ start-contract-test-service : build-contract-tests
8+ @./target/debug/sse-test-api
9+
10+ start-contract-test-service-bg :
11+ @echo " Test service output will be captured in $( TEMP_TEST_OUTPUT) "
12+ @make start-contract-test-service > $(TEMP_TEST_OUTPUT ) 2>&1 &
13+
14+ run-contract-tests :
15+ @curl -s https://raw.githubusercontent.com/launchdarkly/sse-contract-tests/master/downloader/run.sh \
16+ | VERSION=v2 PARAMS="-url http ://localhost:8080 -debug -stop-service-at-end $(SKIPFLAGS ) $(TEST_HARNESS_PARAMS ) " sh
17+
18+ contract-tests : build-contract-tests start-contract-test-service-bg run-contract-tests
19+
20+ .PHONY : build-contract-tests start-contract-test-service run-contract-tests contract-tests
Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ struct Event {
6666async fn status ( ) -> impl Responder {
6767 web:: Json ( Status {
6868 capabilities : vec ! [
69- "comments" . to_string( ) ,
70- "post" . to_string( ) ,
71- "report" . to_string( ) ,
72- "headers" . to_string( ) ,
73- "last-event-id" . to_string( ) ,
69+ // "comments".to_string(),
70+ // "post".to_string(),
71+ // "report".to_string(),
72+ // "headers".to_string(),
73+ // "last-event-id".to_string(),
7474 ] ,
7575 } )
7676}
You can’t perform that action at this time.
0 commit comments