-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated makefile (#79) * Integration Test (#81) Map/Cluster command outputs to stdout; added a test * [Trivial] Update cloud ssl configuration example (#80) * update cloud ssl configuration example * move assignment of default ssl servername earlier * set SSL servername to "hazelcast.cloud" only if SSL configuration modified and cloud is enabled * minor fixes * refactor SSL configuration Co-authored-by: Yüce Tekol <[email protected]>
- Loading branch information
1 parent
af57a78
commit b20158e
Showing
12 changed files
with
2,088 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ hz-cli | |
/dev_scripts/devcontainer.sh | ||
/dist/ | ||
/hzc | ||
coverage.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
.PHONY: build | ||
.PHONY: build generate-completion test test-cover view-cover | ||
|
||
TAG=$(shell git describe --tags 2> /dev/null || echo unknown) | ||
CLIENT_TYPE="CLC" | ||
LDFLAGS="-X 'github.com/hazelcast/hazelcast-go-client/internal.ClientType=$(CLIENT_TYPE)' -X 'github.com/hazelcast/hazelcast-go-client/internal.ClientVersion=$(TAG)'" | ||
TEST_FLAGS ?= -v -count 1 | ||
COVERAGE_OUT = coverage.out | ||
|
||
build: | ||
go build -ldflags $(LDFLAGS) -o hzc github.com/hazelcast/hazelcast-commandline-client | ||
|
||
generate-completion: build | ||
mkdir -p extras | ||
MODE="dev" ./hzc completion bash --no-descriptions > extras/bash_completion.sh | ||
MODE="dev" ./hzc completion zsh --no-descriptions > extras/zsh_completion.zsh | ||
|
||
test: | ||
go test -v ./... | ||
go test $(TESTFLAGS) ./... | ||
|
||
test-cover: | ||
go test $(TESTFLAGS) -coverprofile=$(COVERAGE_OUT) ./... | ||
|
||
view-cover: | ||
go tool cover -func $(COVERAGE_OUT) | grep total: | ||
go tool cover -html $(COVERAGE_OUT) -o coverage.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /usr/bin/env python3 | ||
|
||
import sys | ||
|
||
|
||
def compare_lines(): | ||
line_count = 0 | ||
while True: | ||
line = sys.stdin.readline().strip() | ||
if line == "": | ||
break | ||
line_count += 1 | ||
# assumes the line format in: kN\tvN | ||
k, v = tuple(line.split("\t", 1)) | ||
n = k[1:] | ||
expected = f"v{n}" | ||
if v != expected: | ||
raise Exception(f"line {line_count}: expected: {expected}, got: {v}") | ||
return line_count | ||
|
||
|
||
print(compare_lines()) |
Oops, something went wrong.