From b20158e6e1965f07293b0abfcbfe7d08ed29e4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Utku=20=C3=87a=C4=9Flayan?= Date: Fri, 10 Jun 2022 09:16:21 +0300 Subject: [PATCH] Update release branch (#82) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .gitignore | 1 + Makefile | 17 +- README.md | 3 + clustercmd/cluster.go | 4 +- config/config.go | 28 +- errors/error.go | 2 +- tests/compare.py | 22 + tests/map_get_all.sh | 1006 +++++++++++++++++++++++++++++++++++++++ tests/map_put_all.sh | 1006 +++++++++++++++++++++++++++++++++++++++ tests/test.sh | 15 + types/mapcmd/get-all.go | 4 +- types/mapcmd/map.go | 6 +- 12 files changed, 2088 insertions(+), 26 deletions(-) create mode 100644 tests/compare.py create mode 100755 tests/map_get_all.sh create mode 100755 tests/map_put_all.sh create mode 100755 tests/test.sh diff --git a/.gitignore b/.gitignore index 93cf8040..def634bd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ hz-cli /dev_scripts/devcontainer.sh /dist/ /hzc +coverage.out \ No newline at end of file diff --git a/Makefile b/Makefile index 3165622c..84137625 100644 --- a/Makefile +++ b/Makefile @@ -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 ./... \ No newline at end of file + 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 diff --git a/README.md b/README.md index eaa7edd7..fd9527ca 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ The cluster creation and retrieving connection info can be done directly in comm You can use the following configuration file to enable SSL support: ``` ssl: + enabled: true servername: "HOSTNAME-FOR-SERVER" # or: insecureskipverify: true hazelcast: @@ -184,6 +185,7 @@ hazelcast: Mutual authentication is also supported: ``` ssl: + enabled: true servername: "HOSTNAME-FOR-SERVER" # insecureskipverify: true capath: "/tmp/ca.pem" @@ -205,6 +207,7 @@ hazelcast: Cloud SSL configuration: ``` ssl: + enabled: true capath: "/tmp/ca.pem" certpath: "/tmp/cert.pem" keypath: "/tmp/key.pem" diff --git a/clustercmd/cluster.go b/clustercmd/cluster.go index 244f2d2d..c8e3b480 100644 --- a/clustercmd/cluster.go +++ b/clustercmd/cluster.go @@ -68,7 +68,7 @@ func New(config *hazelcast.Config) *cobra.Command { if err != nil { return err } - cmd.Println(*result) + fmt.Println(*result) return nil }, }) @@ -92,7 +92,7 @@ func NewChangeState(config *hazelcast.Config) *cobra.Command { if err != nil { return err } - cmd.Println(*result) + fmt.Println(*result) return nil }, } diff --git a/config/config.go b/config/config.go index 41cbeb16..e27b8b09 100644 --- a/config/config.go +++ b/config/config.go @@ -33,11 +33,13 @@ import ( const defaultConfigFilename = "config.yaml" const ( - DefaultClusterAddress = "localhost:5701" - DefaultClusterName = "dev" + DefaultClusterAddress = "localhost:5701" + DefaultClusterName = "dev" + DefaultCloudServerName = "hazelcast.cloud" ) type SSLConfig struct { + Enabled bool ServerName string InsecureSkipVerify bool CAPath string @@ -104,10 +106,6 @@ func mergeFlagsWithConfig(flags *GlobalFlagValues, config *Config) error { if flags.Cluster != "" { config.Hazelcast.Cluster.Name = strings.TrimSpace(flags.Cluster) } - if config.Hazelcast.Cluster.Cloud.Enabled { - config.SSL.ServerName = "hazelcast.cloud" - config.SSL.InsecureSkipVerify = false - } // must return nil err verboseWeight, _ := logger.WeightForLogLevel(logger.DebugLevel) confLevel := config.Hazelcast.Logger.Level @@ -154,20 +152,16 @@ func DefaultConfigPath() string { } func updateConfigWithSSL(config *hazelcast.Config, sslc *SSLConfig) error { - if sslc.ServerName != "" && sslc.InsecureSkipVerify { - return fmt.Errorf("SSL.ServerName and SSL.InsecureSkipVerify are mutually exclusive") + if !sslc.Enabled { + // SSL configuration is not set, skip + return nil } - var tlsc *tls.Config - if sslc.ServerName != "" { - tlsc = &tls.Config{ServerName: sslc.ServerName} - } else if sslc.InsecureSkipVerify { - tlsc = &tls.Config{InsecureSkipVerify: true} + if config.Cluster.Cloud.Enabled && sslc.ServerName == "" { + sslc.ServerName = DefaultCloudServerName } csslc := &config.Cluster.Network.SSL - if tlsc != nil { - csslc.SetTLSConfig(tlsc) - csslc.Enabled = true - } + csslc.SetTLSConfig(&tls.Config{ServerName: sslc.ServerName, InsecureSkipVerify: sslc.InsecureSkipVerify}) + csslc.Enabled = true if sslc.CAPath != "" { if err := csslc.SetCAPath(sslc.CAPath); err != nil { return err diff --git a/errors/error.go b/errors/error.go index db13ae0f..78d0978f 100644 --- a/errors/error.go +++ b/errors/error.go @@ -126,7 +126,7 @@ func (e LoggableError) VerboseError() string { if e.err == nil { return fmt.Sprintln(e.msg) } - return fmt.Sprintf("%s\nDetails: %s", e.msg, e.err) + return fmt.Sprintf("%s\nDetails: %s", e.msg, e.err.Error()) } func (e LoggableError) Unwrap() error { diff --git a/tests/compare.py b/tests/compare.py new file mode 100644 index 00000000..e14345cb --- /dev/null +++ b/tests/compare.py @@ -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()) diff --git a/tests/map_get_all.sh b/tests/map_get_all.sh new file mode 100755 index 00000000..197fdde1 --- /dev/null +++ b/tests/map_get_all.sh @@ -0,0 +1,1006 @@ +#! /bin/bash +set -o xtrace +HZC=${HZC:-./hzc} +MAP=${MAP:-test-map} + +$HZC map get-all -n $MAP \ + -k k0 \ + -k k1 \ + -k k2 \ + -k k3 \ + -k k4 \ + -k k5 \ + -k k6 \ + -k k7 \ + -k k8 \ + -k k9 \ + -k k10 \ + -k k11 \ + -k k12 \ + -k k13 \ + -k k14 \ + -k k15 \ + -k k16 \ + -k k17 \ + -k k18 \ + -k k19 \ + -k k20 \ + -k k21 \ + -k k22 \ + -k k23 \ + -k k24 \ + -k k25 \ + -k k26 \ + -k k27 \ + -k k28 \ + -k k29 \ + -k k30 \ + -k k31 \ + -k k32 \ + -k k33 \ + -k k34 \ + -k k35 \ + -k k36 \ + -k k37 \ + -k k38 \ + -k k39 \ + -k k40 \ + -k k41 \ + -k k42 \ + -k k43 \ + -k k44 \ + -k k45 \ + -k k46 \ + -k k47 \ + -k k48 \ + -k k49 \ + -k k50 \ + -k k51 \ + -k k52 \ + -k k53 \ + -k k54 \ + -k k55 \ + -k k56 \ + -k k57 \ + -k k58 \ + -k k59 \ + -k k60 \ + -k k61 \ + -k k62 \ + -k k63 \ + -k k64 \ + -k k65 \ + -k k66 \ + -k k67 \ + -k k68 \ + -k k69 \ + -k k70 \ + -k k71 \ + -k k72 \ + -k k73 \ + -k k74 \ + -k k75 \ + -k k76 \ + -k k77 \ + -k k78 \ + -k k79 \ + -k k80 \ + -k k81 \ + -k k82 \ + -k k83 \ + -k k84 \ + -k k85 \ + -k k86 \ + -k k87 \ + -k k88 \ + -k k89 \ + -k k90 \ + -k k91 \ + -k k92 \ + -k k93 \ + -k k94 \ + -k k95 \ + -k k96 \ + -k k97 \ + -k k98 \ + -k k99 \ + -k k100 \ + -k k101 \ + -k k102 \ + -k k103 \ + -k k104 \ + -k k105 \ + -k k106 \ + -k k107 \ + -k k108 \ + -k k109 \ + -k k110 \ + -k k111 \ + -k k112 \ + -k k113 \ + -k k114 \ + -k k115 \ + -k k116 \ + -k k117 \ + -k k118 \ + -k k119 \ + -k k120 \ + -k k121 \ + -k k122 \ + -k k123 \ + -k k124 \ + -k k125 \ + -k k126 \ + -k k127 \ + -k k128 \ + -k k129 \ + -k k130 \ + -k k131 \ + -k k132 \ + -k k133 \ + -k k134 \ + -k k135 \ + -k k136 \ + -k k137 \ + -k k138 \ + -k k139 \ + -k k140 \ + -k k141 \ + -k k142 \ + -k k143 \ + -k k144 \ + -k k145 \ + -k k146 \ + -k k147 \ + -k k148 \ + -k k149 \ + -k k150 \ + -k k151 \ + -k k152 \ + -k k153 \ + -k k154 \ + -k k155 \ + -k k156 \ + -k k157 \ + -k k158 \ + -k k159 \ + -k k160 \ + -k k161 \ + -k k162 \ + -k k163 \ + -k k164 \ + -k k165 \ + -k k166 \ + -k k167 \ + -k k168 \ + -k k169 \ + -k k170 \ + -k k171 \ + -k k172 \ + -k k173 \ + -k k174 \ + -k k175 \ + -k k176 \ + -k k177 \ + -k k178 \ + -k k179 \ + -k k180 \ + -k k181 \ + -k k182 \ + -k k183 \ + -k k184 \ + -k k185 \ + -k k186 \ + -k k187 \ + -k k188 \ + -k k189 \ + -k k190 \ + -k k191 \ + -k k192 \ + -k k193 \ + -k k194 \ + -k k195 \ + -k k196 \ + -k k197 \ + -k k198 \ + -k k199 \ + -k k200 \ + -k k201 \ + -k k202 \ + -k k203 \ + -k k204 \ + -k k205 \ + -k k206 \ + -k k207 \ + -k k208 \ + -k k209 \ + -k k210 \ + -k k211 \ + -k k212 \ + -k k213 \ + -k k214 \ + -k k215 \ + -k k216 \ + -k k217 \ + -k k218 \ + -k k219 \ + -k k220 \ + -k k221 \ + -k k222 \ + -k k223 \ + -k k224 \ + -k k225 \ + -k k226 \ + -k k227 \ + -k k228 \ + -k k229 \ + -k k230 \ + -k k231 \ + -k k232 \ + -k k233 \ + -k k234 \ + -k k235 \ + -k k236 \ + -k k237 \ + -k k238 \ + -k k239 \ + -k k240 \ + -k k241 \ + -k k242 \ + -k k243 \ + -k k244 \ + -k k245 \ + -k k246 \ + -k k247 \ + -k k248 \ + -k k249 \ + -k k250 \ + -k k251 \ + -k k252 \ + -k k253 \ + -k k254 \ + -k k255 \ + -k k256 \ + -k k257 \ + -k k258 \ + -k k259 \ + -k k260 \ + -k k261 \ + -k k262 \ + -k k263 \ + -k k264 \ + -k k265 \ + -k k266 \ + -k k267 \ + -k k268 \ + -k k269 \ + -k k270 \ + -k k271 \ + -k k272 \ + -k k273 \ + -k k274 \ + -k k275 \ + -k k276 \ + -k k277 \ + -k k278 \ + -k k279 \ + -k k280 \ + -k k281 \ + -k k282 \ + -k k283 \ + -k k284 \ + -k k285 \ + -k k286 \ + -k k287 \ + -k k288 \ + -k k289 \ + -k k290 \ + -k k291 \ + -k k292 \ + -k k293 \ + -k k294 \ + -k k295 \ + -k k296 \ + -k k297 \ + -k k298 \ + -k k299 \ + -k k300 \ + -k k301 \ + -k k302 \ + -k k303 \ + -k k304 \ + -k k305 \ + -k k306 \ + -k k307 \ + -k k308 \ + -k k309 \ + -k k310 \ + -k k311 \ + -k k312 \ + -k k313 \ + -k k314 \ + -k k315 \ + -k k316 \ + -k k317 \ + -k k318 \ + -k k319 \ + -k k320 \ + -k k321 \ + -k k322 \ + -k k323 \ + -k k324 \ + -k k325 \ + -k k326 \ + -k k327 \ + -k k328 \ + -k k329 \ + -k k330 \ + -k k331 \ + -k k332 \ + -k k333 \ + -k k334 \ + -k k335 \ + -k k336 \ + -k k337 \ + -k k338 \ + -k k339 \ + -k k340 \ + -k k341 \ + -k k342 \ + -k k343 \ + -k k344 \ + -k k345 \ + -k k346 \ + -k k347 \ + -k k348 \ + -k k349 \ + -k k350 \ + -k k351 \ + -k k352 \ + -k k353 \ + -k k354 \ + -k k355 \ + -k k356 \ + -k k357 \ + -k k358 \ + -k k359 \ + -k k360 \ + -k k361 \ + -k k362 \ + -k k363 \ + -k k364 \ + -k k365 \ + -k k366 \ + -k k367 \ + -k k368 \ + -k k369 \ + -k k370 \ + -k k371 \ + -k k372 \ + -k k373 \ + -k k374 \ + -k k375 \ + -k k376 \ + -k k377 \ + -k k378 \ + -k k379 \ + -k k380 \ + -k k381 \ + -k k382 \ + -k k383 \ + -k k384 \ + -k k385 \ + -k k386 \ + -k k387 \ + -k k388 \ + -k k389 \ + -k k390 \ + -k k391 \ + -k k392 \ + -k k393 \ + -k k394 \ + -k k395 \ + -k k396 \ + -k k397 \ + -k k398 \ + -k k399 \ + -k k400 \ + -k k401 \ + -k k402 \ + -k k403 \ + -k k404 \ + -k k405 \ + -k k406 \ + -k k407 \ + -k k408 \ + -k k409 \ + -k k410 \ + -k k411 \ + -k k412 \ + -k k413 \ + -k k414 \ + -k k415 \ + -k k416 \ + -k k417 \ + -k k418 \ + -k k419 \ + -k k420 \ + -k k421 \ + -k k422 \ + -k k423 \ + -k k424 \ + -k k425 \ + -k k426 \ + -k k427 \ + -k k428 \ + -k k429 \ + -k k430 \ + -k k431 \ + -k k432 \ + -k k433 \ + -k k434 \ + -k k435 \ + -k k436 \ + -k k437 \ + -k k438 \ + -k k439 \ + -k k440 \ + -k k441 \ + -k k442 \ + -k k443 \ + -k k444 \ + -k k445 \ + -k k446 \ + -k k447 \ + -k k448 \ + -k k449 \ + -k k450 \ + -k k451 \ + -k k452 \ + -k k453 \ + -k k454 \ + -k k455 \ + -k k456 \ + -k k457 \ + -k k458 \ + -k k459 \ + -k k460 \ + -k k461 \ + -k k462 \ + -k k463 \ + -k k464 \ + -k k465 \ + -k k466 \ + -k k467 \ + -k k468 \ + -k k469 \ + -k k470 \ + -k k471 \ + -k k472 \ + -k k473 \ + -k k474 \ + -k k475 \ + -k k476 \ + -k k477 \ + -k k478 \ + -k k479 \ + -k k480 \ + -k k481 \ + -k k482 \ + -k k483 \ + -k k484 \ + -k k485 \ + -k k486 \ + -k k487 \ + -k k488 \ + -k k489 \ + -k k490 \ + -k k491 \ + -k k492 \ + -k k493 \ + -k k494 \ + -k k495 \ + -k k496 \ + -k k497 \ + -k k498 \ + -k k499 \ + -k k500 \ + -k k501 \ + -k k502 \ + -k k503 \ + -k k504 \ + -k k505 \ + -k k506 \ + -k k507 \ + -k k508 \ + -k k509 \ + -k k510 \ + -k k511 \ + -k k512 \ + -k k513 \ + -k k514 \ + -k k515 \ + -k k516 \ + -k k517 \ + -k k518 \ + -k k519 \ + -k k520 \ + -k k521 \ + -k k522 \ + -k k523 \ + -k k524 \ + -k k525 \ + -k k526 \ + -k k527 \ + -k k528 \ + -k k529 \ + -k k530 \ + -k k531 \ + -k k532 \ + -k k533 \ + -k k534 \ + -k k535 \ + -k k536 \ + -k k537 \ + -k k538 \ + -k k539 \ + -k k540 \ + -k k541 \ + -k k542 \ + -k k543 \ + -k k544 \ + -k k545 \ + -k k546 \ + -k k547 \ + -k k548 \ + -k k549 \ + -k k550 \ + -k k551 \ + -k k552 \ + -k k553 \ + -k k554 \ + -k k555 \ + -k k556 \ + -k k557 \ + -k k558 \ + -k k559 \ + -k k560 \ + -k k561 \ + -k k562 \ + -k k563 \ + -k k564 \ + -k k565 \ + -k k566 \ + -k k567 \ + -k k568 \ + -k k569 \ + -k k570 \ + -k k571 \ + -k k572 \ + -k k573 \ + -k k574 \ + -k k575 \ + -k k576 \ + -k k577 \ + -k k578 \ + -k k579 \ + -k k580 \ + -k k581 \ + -k k582 \ + -k k583 \ + -k k584 \ + -k k585 \ + -k k586 \ + -k k587 \ + -k k588 \ + -k k589 \ + -k k590 \ + -k k591 \ + -k k592 \ + -k k593 \ + -k k594 \ + -k k595 \ + -k k596 \ + -k k597 \ + -k k598 \ + -k k599 \ + -k k600 \ + -k k601 \ + -k k602 \ + -k k603 \ + -k k604 \ + -k k605 \ + -k k606 \ + -k k607 \ + -k k608 \ + -k k609 \ + -k k610 \ + -k k611 \ + -k k612 \ + -k k613 \ + -k k614 \ + -k k615 \ + -k k616 \ + -k k617 \ + -k k618 \ + -k k619 \ + -k k620 \ + -k k621 \ + -k k622 \ + -k k623 \ + -k k624 \ + -k k625 \ + -k k626 \ + -k k627 \ + -k k628 \ + -k k629 \ + -k k630 \ + -k k631 \ + -k k632 \ + -k k633 \ + -k k634 \ + -k k635 \ + -k k636 \ + -k k637 \ + -k k638 \ + -k k639 \ + -k k640 \ + -k k641 \ + -k k642 \ + -k k643 \ + -k k644 \ + -k k645 \ + -k k646 \ + -k k647 \ + -k k648 \ + -k k649 \ + -k k650 \ + -k k651 \ + -k k652 \ + -k k653 \ + -k k654 \ + -k k655 \ + -k k656 \ + -k k657 \ + -k k658 \ + -k k659 \ + -k k660 \ + -k k661 \ + -k k662 \ + -k k663 \ + -k k664 \ + -k k665 \ + -k k666 \ + -k k667 \ + -k k668 \ + -k k669 \ + -k k670 \ + -k k671 \ + -k k672 \ + -k k673 \ + -k k674 \ + -k k675 \ + -k k676 \ + -k k677 \ + -k k678 \ + -k k679 \ + -k k680 \ + -k k681 \ + -k k682 \ + -k k683 \ + -k k684 \ + -k k685 \ + -k k686 \ + -k k687 \ + -k k688 \ + -k k689 \ + -k k690 \ + -k k691 \ + -k k692 \ + -k k693 \ + -k k694 \ + -k k695 \ + -k k696 \ + -k k697 \ + -k k698 \ + -k k699 \ + -k k700 \ + -k k701 \ + -k k702 \ + -k k703 \ + -k k704 \ + -k k705 \ + -k k706 \ + -k k707 \ + -k k708 \ + -k k709 \ + -k k710 \ + -k k711 \ + -k k712 \ + -k k713 \ + -k k714 \ + -k k715 \ + -k k716 \ + -k k717 \ + -k k718 \ + -k k719 \ + -k k720 \ + -k k721 \ + -k k722 \ + -k k723 \ + -k k724 \ + -k k725 \ + -k k726 \ + -k k727 \ + -k k728 \ + -k k729 \ + -k k730 \ + -k k731 \ + -k k732 \ + -k k733 \ + -k k734 \ + -k k735 \ + -k k736 \ + -k k737 \ + -k k738 \ + -k k739 \ + -k k740 \ + -k k741 \ + -k k742 \ + -k k743 \ + -k k744 \ + -k k745 \ + -k k746 \ + -k k747 \ + -k k748 \ + -k k749 \ + -k k750 \ + -k k751 \ + -k k752 \ + -k k753 \ + -k k754 \ + -k k755 \ + -k k756 \ + -k k757 \ + -k k758 \ + -k k759 \ + -k k760 \ + -k k761 \ + -k k762 \ + -k k763 \ + -k k764 \ + -k k765 \ + -k k766 \ + -k k767 \ + -k k768 \ + -k k769 \ + -k k770 \ + -k k771 \ + -k k772 \ + -k k773 \ + -k k774 \ + -k k775 \ + -k k776 \ + -k k777 \ + -k k778 \ + -k k779 \ + -k k780 \ + -k k781 \ + -k k782 \ + -k k783 \ + -k k784 \ + -k k785 \ + -k k786 \ + -k k787 \ + -k k788 \ + -k k789 \ + -k k790 \ + -k k791 \ + -k k792 \ + -k k793 \ + -k k794 \ + -k k795 \ + -k k796 \ + -k k797 \ + -k k798 \ + -k k799 \ + -k k800 \ + -k k801 \ + -k k802 \ + -k k803 \ + -k k804 \ + -k k805 \ + -k k806 \ + -k k807 \ + -k k808 \ + -k k809 \ + -k k810 \ + -k k811 \ + -k k812 \ + -k k813 \ + -k k814 \ + -k k815 \ + -k k816 \ + -k k817 \ + -k k818 \ + -k k819 \ + -k k820 \ + -k k821 \ + -k k822 \ + -k k823 \ + -k k824 \ + -k k825 \ + -k k826 \ + -k k827 \ + -k k828 \ + -k k829 \ + -k k830 \ + -k k831 \ + -k k832 \ + -k k833 \ + -k k834 \ + -k k835 \ + -k k836 \ + -k k837 \ + -k k838 \ + -k k839 \ + -k k840 \ + -k k841 \ + -k k842 \ + -k k843 \ + -k k844 \ + -k k845 \ + -k k846 \ + -k k847 \ + -k k848 \ + -k k849 \ + -k k850 \ + -k k851 \ + -k k852 \ + -k k853 \ + -k k854 \ + -k k855 \ + -k k856 \ + -k k857 \ + -k k858 \ + -k k859 \ + -k k860 \ + -k k861 \ + -k k862 \ + -k k863 \ + -k k864 \ + -k k865 \ + -k k866 \ + -k k867 \ + -k k868 \ + -k k869 \ + -k k870 \ + -k k871 \ + -k k872 \ + -k k873 \ + -k k874 \ + -k k875 \ + -k k876 \ + -k k877 \ + -k k878 \ + -k k879 \ + -k k880 \ + -k k881 \ + -k k882 \ + -k k883 \ + -k k884 \ + -k k885 \ + -k k886 \ + -k k887 \ + -k k888 \ + -k k889 \ + -k k890 \ + -k k891 \ + -k k892 \ + -k k893 \ + -k k894 \ + -k k895 \ + -k k896 \ + -k k897 \ + -k k898 \ + -k k899 \ + -k k900 \ + -k k901 \ + -k k902 \ + -k k903 \ + -k k904 \ + -k k905 \ + -k k906 \ + -k k907 \ + -k k908 \ + -k k909 \ + -k k910 \ + -k k911 \ + -k k912 \ + -k k913 \ + -k k914 \ + -k k915 \ + -k k916 \ + -k k917 \ + -k k918 \ + -k k919 \ + -k k920 \ + -k k921 \ + -k k922 \ + -k k923 \ + -k k924 \ + -k k925 \ + -k k926 \ + -k k927 \ + -k k928 \ + -k k929 \ + -k k930 \ + -k k931 \ + -k k932 \ + -k k933 \ + -k k934 \ + -k k935 \ + -k k936 \ + -k k937 \ + -k k938 \ + -k k939 \ + -k k940 \ + -k k941 \ + -k k942 \ + -k k943 \ + -k k944 \ + -k k945 \ + -k k946 \ + -k k947 \ + -k k948 \ + -k k949 \ + -k k950 \ + -k k951 \ + -k k952 \ + -k k953 \ + -k k954 \ + -k k955 \ + -k k956 \ + -k k957 \ + -k k958 \ + -k k959 \ + -k k960 \ + -k k961 \ + -k k962 \ + -k k963 \ + -k k964 \ + -k k965 \ + -k k966 \ + -k k967 \ + -k k968 \ + -k k969 \ + -k k970 \ + -k k971 \ + -k k972 \ + -k k973 \ + -k k974 \ + -k k975 \ + -k k976 \ + -k k977 \ + -k k978 \ + -k k979 \ + -k k980 \ + -k k981 \ + -k k982 \ + -k k983 \ + -k k984 \ + -k k985 \ + -k k986 \ + -k k987 \ + -k k988 \ + -k k989 \ + -k k990 \ + -k k991 \ + -k k992 \ + -k k993 \ + -k k994 \ + -k k995 \ + -k k996 \ + -k k997 \ + -k k998 \ + -k k999 diff --git a/tests/map_put_all.sh b/tests/map_put_all.sh new file mode 100755 index 00000000..05940d3f --- /dev/null +++ b/tests/map_put_all.sh @@ -0,0 +1,1006 @@ +#! /bin/bash +set -o xtrace +HZC=${HZC:-./hzc} +MAP=${MAP:-test-map} + +$HZC map clear -n $MAP +$HZC map put -n $MAP -k k0 -v v0 +$HZC map put -n $MAP -k k1 -v v1 +$HZC map put -n $MAP -k k2 -v v2 +$HZC map put -n $MAP -k k3 -v v3 +$HZC map put -n $MAP -k k4 -v v4 +$HZC map put -n $MAP -k k5 -v v5 +$HZC map put -n $MAP -k k6 -v v6 +$HZC map put -n $MAP -k k7 -v v7 +$HZC map put -n $MAP -k k8 -v v8 +$HZC map put -n $MAP -k k9 -v v9 +$HZC map put -n $MAP -k k10 -v v10 +$HZC map put -n $MAP -k k11 -v v11 +$HZC map put -n $MAP -k k12 -v v12 +$HZC map put -n $MAP -k k13 -v v13 +$HZC map put -n $MAP -k k14 -v v14 +$HZC map put -n $MAP -k k15 -v v15 +$HZC map put -n $MAP -k k16 -v v16 +$HZC map put -n $MAP -k k17 -v v17 +$HZC map put -n $MAP -k k18 -v v18 +$HZC map put -n $MAP -k k19 -v v19 +$HZC map put -n $MAP -k k20 -v v20 +$HZC map put -n $MAP -k k21 -v v21 +$HZC map put -n $MAP -k k22 -v v22 +$HZC map put -n $MAP -k k23 -v v23 +$HZC map put -n $MAP -k k24 -v v24 +$HZC map put -n $MAP -k k25 -v v25 +$HZC map put -n $MAP -k k26 -v v26 +$HZC map put -n $MAP -k k27 -v v27 +$HZC map put -n $MAP -k k28 -v v28 +$HZC map put -n $MAP -k k29 -v v29 +$HZC map put -n $MAP -k k30 -v v30 +$HZC map put -n $MAP -k k31 -v v31 +$HZC map put -n $MAP -k k32 -v v32 +$HZC map put -n $MAP -k k33 -v v33 +$HZC map put -n $MAP -k k34 -v v34 +$HZC map put -n $MAP -k k35 -v v35 +$HZC map put -n $MAP -k k36 -v v36 +$HZC map put -n $MAP -k k37 -v v37 +$HZC map put -n $MAP -k k38 -v v38 +$HZC map put -n $MAP -k k39 -v v39 +$HZC map put -n $MAP -k k40 -v v40 +$HZC map put -n $MAP -k k41 -v v41 +$HZC map put -n $MAP -k k42 -v v42 +$HZC map put -n $MAP -k k43 -v v43 +$HZC map put -n $MAP -k k44 -v v44 +$HZC map put -n $MAP -k k45 -v v45 +$HZC map put -n $MAP -k k46 -v v46 +$HZC map put -n $MAP -k k47 -v v47 +$HZC map put -n $MAP -k k48 -v v48 +$HZC map put -n $MAP -k k49 -v v49 +$HZC map put -n $MAP -k k50 -v v50 +$HZC map put -n $MAP -k k51 -v v51 +$HZC map put -n $MAP -k k52 -v v52 +$HZC map put -n $MAP -k k53 -v v53 +$HZC map put -n $MAP -k k54 -v v54 +$HZC map put -n $MAP -k k55 -v v55 +$HZC map put -n $MAP -k k56 -v v56 +$HZC map put -n $MAP -k k57 -v v57 +$HZC map put -n $MAP -k k58 -v v58 +$HZC map put -n $MAP -k k59 -v v59 +$HZC map put -n $MAP -k k60 -v v60 +$HZC map put -n $MAP -k k61 -v v61 +$HZC map put -n $MAP -k k62 -v v62 +$HZC map put -n $MAP -k k63 -v v63 +$HZC map put -n $MAP -k k64 -v v64 +$HZC map put -n $MAP -k k65 -v v65 +$HZC map put -n $MAP -k k66 -v v66 +$HZC map put -n $MAP -k k67 -v v67 +$HZC map put -n $MAP -k k68 -v v68 +$HZC map put -n $MAP -k k69 -v v69 +$HZC map put -n $MAP -k k70 -v v70 +$HZC map put -n $MAP -k k71 -v v71 +$HZC map put -n $MAP -k k72 -v v72 +$HZC map put -n $MAP -k k73 -v v73 +$HZC map put -n $MAP -k k74 -v v74 +$HZC map put -n $MAP -k k75 -v v75 +$HZC map put -n $MAP -k k76 -v v76 +$HZC map put -n $MAP -k k77 -v v77 +$HZC map put -n $MAP -k k78 -v v78 +$HZC map put -n $MAP -k k79 -v v79 +$HZC map put -n $MAP -k k80 -v v80 +$HZC map put -n $MAP -k k81 -v v81 +$HZC map put -n $MAP -k k82 -v v82 +$HZC map put -n $MAP -k k83 -v v83 +$HZC map put -n $MAP -k k84 -v v84 +$HZC map put -n $MAP -k k85 -v v85 +$HZC map put -n $MAP -k k86 -v v86 +$HZC map put -n $MAP -k k87 -v v87 +$HZC map put -n $MAP -k k88 -v v88 +$HZC map put -n $MAP -k k89 -v v89 +$HZC map put -n $MAP -k k90 -v v90 +$HZC map put -n $MAP -k k91 -v v91 +$HZC map put -n $MAP -k k92 -v v92 +$HZC map put -n $MAP -k k93 -v v93 +$HZC map put -n $MAP -k k94 -v v94 +$HZC map put -n $MAP -k k95 -v v95 +$HZC map put -n $MAP -k k96 -v v96 +$HZC map put -n $MAP -k k97 -v v97 +$HZC map put -n $MAP -k k98 -v v98 +$HZC map put -n $MAP -k k99 -v v99 +$HZC map put -n $MAP -k k100 -v v100 +$HZC map put -n $MAP -k k101 -v v101 +$HZC map put -n $MAP -k k102 -v v102 +$HZC map put -n $MAP -k k103 -v v103 +$HZC map put -n $MAP -k k104 -v v104 +$HZC map put -n $MAP -k k105 -v v105 +$HZC map put -n $MAP -k k106 -v v106 +$HZC map put -n $MAP -k k107 -v v107 +$HZC map put -n $MAP -k k108 -v v108 +$HZC map put -n $MAP -k k109 -v v109 +$HZC map put -n $MAP -k k110 -v v110 +$HZC map put -n $MAP -k k111 -v v111 +$HZC map put -n $MAP -k k112 -v v112 +$HZC map put -n $MAP -k k113 -v v113 +$HZC map put -n $MAP -k k114 -v v114 +$HZC map put -n $MAP -k k115 -v v115 +$HZC map put -n $MAP -k k116 -v v116 +$HZC map put -n $MAP -k k117 -v v117 +$HZC map put -n $MAP -k k118 -v v118 +$HZC map put -n $MAP -k k119 -v v119 +$HZC map put -n $MAP -k k120 -v v120 +$HZC map put -n $MAP -k k121 -v v121 +$HZC map put -n $MAP -k k122 -v v122 +$HZC map put -n $MAP -k k123 -v v123 +$HZC map put -n $MAP -k k124 -v v124 +$HZC map put -n $MAP -k k125 -v v125 +$HZC map put -n $MAP -k k126 -v v126 +$HZC map put -n $MAP -k k127 -v v127 +$HZC map put -n $MAP -k k128 -v v128 +$HZC map put -n $MAP -k k129 -v v129 +$HZC map put -n $MAP -k k130 -v v130 +$HZC map put -n $MAP -k k131 -v v131 +$HZC map put -n $MAP -k k132 -v v132 +$HZC map put -n $MAP -k k133 -v v133 +$HZC map put -n $MAP -k k134 -v v134 +$HZC map put -n $MAP -k k135 -v v135 +$HZC map put -n $MAP -k k136 -v v136 +$HZC map put -n $MAP -k k137 -v v137 +$HZC map put -n $MAP -k k138 -v v138 +$HZC map put -n $MAP -k k139 -v v139 +$HZC map put -n $MAP -k k140 -v v140 +$HZC map put -n $MAP -k k141 -v v141 +$HZC map put -n $MAP -k k142 -v v142 +$HZC map put -n $MAP -k k143 -v v143 +$HZC map put -n $MAP -k k144 -v v144 +$HZC map put -n $MAP -k k145 -v v145 +$HZC map put -n $MAP -k k146 -v v146 +$HZC map put -n $MAP -k k147 -v v147 +$HZC map put -n $MAP -k k148 -v v148 +$HZC map put -n $MAP -k k149 -v v149 +$HZC map put -n $MAP -k k150 -v v150 +$HZC map put -n $MAP -k k151 -v v151 +$HZC map put -n $MAP -k k152 -v v152 +$HZC map put -n $MAP -k k153 -v v153 +$HZC map put -n $MAP -k k154 -v v154 +$HZC map put -n $MAP -k k155 -v v155 +$HZC map put -n $MAP -k k156 -v v156 +$HZC map put -n $MAP -k k157 -v v157 +$HZC map put -n $MAP -k k158 -v v158 +$HZC map put -n $MAP -k k159 -v v159 +$HZC map put -n $MAP -k k160 -v v160 +$HZC map put -n $MAP -k k161 -v v161 +$HZC map put -n $MAP -k k162 -v v162 +$HZC map put -n $MAP -k k163 -v v163 +$HZC map put -n $MAP -k k164 -v v164 +$HZC map put -n $MAP -k k165 -v v165 +$HZC map put -n $MAP -k k166 -v v166 +$HZC map put -n $MAP -k k167 -v v167 +$HZC map put -n $MAP -k k168 -v v168 +$HZC map put -n $MAP -k k169 -v v169 +$HZC map put -n $MAP -k k170 -v v170 +$HZC map put -n $MAP -k k171 -v v171 +$HZC map put -n $MAP -k k172 -v v172 +$HZC map put -n $MAP -k k173 -v v173 +$HZC map put -n $MAP -k k174 -v v174 +$HZC map put -n $MAP -k k175 -v v175 +$HZC map put -n $MAP -k k176 -v v176 +$HZC map put -n $MAP -k k177 -v v177 +$HZC map put -n $MAP -k k178 -v v178 +$HZC map put -n $MAP -k k179 -v v179 +$HZC map put -n $MAP -k k180 -v v180 +$HZC map put -n $MAP -k k181 -v v181 +$HZC map put -n $MAP -k k182 -v v182 +$HZC map put -n $MAP -k k183 -v v183 +$HZC map put -n $MAP -k k184 -v v184 +$HZC map put -n $MAP -k k185 -v v185 +$HZC map put -n $MAP -k k186 -v v186 +$HZC map put -n $MAP -k k187 -v v187 +$HZC map put -n $MAP -k k188 -v v188 +$HZC map put -n $MAP -k k189 -v v189 +$HZC map put -n $MAP -k k190 -v v190 +$HZC map put -n $MAP -k k191 -v v191 +$HZC map put -n $MAP -k k192 -v v192 +$HZC map put -n $MAP -k k193 -v v193 +$HZC map put -n $MAP -k k194 -v v194 +$HZC map put -n $MAP -k k195 -v v195 +$HZC map put -n $MAP -k k196 -v v196 +$HZC map put -n $MAP -k k197 -v v197 +$HZC map put -n $MAP -k k198 -v v198 +$HZC map put -n $MAP -k k199 -v v199 +$HZC map put -n $MAP -k k200 -v v200 +$HZC map put -n $MAP -k k201 -v v201 +$HZC map put -n $MAP -k k202 -v v202 +$HZC map put -n $MAP -k k203 -v v203 +$HZC map put -n $MAP -k k204 -v v204 +$HZC map put -n $MAP -k k205 -v v205 +$HZC map put -n $MAP -k k206 -v v206 +$HZC map put -n $MAP -k k207 -v v207 +$HZC map put -n $MAP -k k208 -v v208 +$HZC map put -n $MAP -k k209 -v v209 +$HZC map put -n $MAP -k k210 -v v210 +$HZC map put -n $MAP -k k211 -v v211 +$HZC map put -n $MAP -k k212 -v v212 +$HZC map put -n $MAP -k k213 -v v213 +$HZC map put -n $MAP -k k214 -v v214 +$HZC map put -n $MAP -k k215 -v v215 +$HZC map put -n $MAP -k k216 -v v216 +$HZC map put -n $MAP -k k217 -v v217 +$HZC map put -n $MAP -k k218 -v v218 +$HZC map put -n $MAP -k k219 -v v219 +$HZC map put -n $MAP -k k220 -v v220 +$HZC map put -n $MAP -k k221 -v v221 +$HZC map put -n $MAP -k k222 -v v222 +$HZC map put -n $MAP -k k223 -v v223 +$HZC map put -n $MAP -k k224 -v v224 +$HZC map put -n $MAP -k k225 -v v225 +$HZC map put -n $MAP -k k226 -v v226 +$HZC map put -n $MAP -k k227 -v v227 +$HZC map put -n $MAP -k k228 -v v228 +$HZC map put -n $MAP -k k229 -v v229 +$HZC map put -n $MAP -k k230 -v v230 +$HZC map put -n $MAP -k k231 -v v231 +$HZC map put -n $MAP -k k232 -v v232 +$HZC map put -n $MAP -k k233 -v v233 +$HZC map put -n $MAP -k k234 -v v234 +$HZC map put -n $MAP -k k235 -v v235 +$HZC map put -n $MAP -k k236 -v v236 +$HZC map put -n $MAP -k k237 -v v237 +$HZC map put -n $MAP -k k238 -v v238 +$HZC map put -n $MAP -k k239 -v v239 +$HZC map put -n $MAP -k k240 -v v240 +$HZC map put -n $MAP -k k241 -v v241 +$HZC map put -n $MAP -k k242 -v v242 +$HZC map put -n $MAP -k k243 -v v243 +$HZC map put -n $MAP -k k244 -v v244 +$HZC map put -n $MAP -k k245 -v v245 +$HZC map put -n $MAP -k k246 -v v246 +$HZC map put -n $MAP -k k247 -v v247 +$HZC map put -n $MAP -k k248 -v v248 +$HZC map put -n $MAP -k k249 -v v249 +$HZC map put -n $MAP -k k250 -v v250 +$HZC map put -n $MAP -k k251 -v v251 +$HZC map put -n $MAP -k k252 -v v252 +$HZC map put -n $MAP -k k253 -v v253 +$HZC map put -n $MAP -k k254 -v v254 +$HZC map put -n $MAP -k k255 -v v255 +$HZC map put -n $MAP -k k256 -v v256 +$HZC map put -n $MAP -k k257 -v v257 +$HZC map put -n $MAP -k k258 -v v258 +$HZC map put -n $MAP -k k259 -v v259 +$HZC map put -n $MAP -k k260 -v v260 +$HZC map put -n $MAP -k k261 -v v261 +$HZC map put -n $MAP -k k262 -v v262 +$HZC map put -n $MAP -k k263 -v v263 +$HZC map put -n $MAP -k k264 -v v264 +$HZC map put -n $MAP -k k265 -v v265 +$HZC map put -n $MAP -k k266 -v v266 +$HZC map put -n $MAP -k k267 -v v267 +$HZC map put -n $MAP -k k268 -v v268 +$HZC map put -n $MAP -k k269 -v v269 +$HZC map put -n $MAP -k k270 -v v270 +$HZC map put -n $MAP -k k271 -v v271 +$HZC map put -n $MAP -k k272 -v v272 +$HZC map put -n $MAP -k k273 -v v273 +$HZC map put -n $MAP -k k274 -v v274 +$HZC map put -n $MAP -k k275 -v v275 +$HZC map put -n $MAP -k k276 -v v276 +$HZC map put -n $MAP -k k277 -v v277 +$HZC map put -n $MAP -k k278 -v v278 +$HZC map put -n $MAP -k k279 -v v279 +$HZC map put -n $MAP -k k280 -v v280 +$HZC map put -n $MAP -k k281 -v v281 +$HZC map put -n $MAP -k k282 -v v282 +$HZC map put -n $MAP -k k283 -v v283 +$HZC map put -n $MAP -k k284 -v v284 +$HZC map put -n $MAP -k k285 -v v285 +$HZC map put -n $MAP -k k286 -v v286 +$HZC map put -n $MAP -k k287 -v v287 +$HZC map put -n $MAP -k k288 -v v288 +$HZC map put -n $MAP -k k289 -v v289 +$HZC map put -n $MAP -k k290 -v v290 +$HZC map put -n $MAP -k k291 -v v291 +$HZC map put -n $MAP -k k292 -v v292 +$HZC map put -n $MAP -k k293 -v v293 +$HZC map put -n $MAP -k k294 -v v294 +$HZC map put -n $MAP -k k295 -v v295 +$HZC map put -n $MAP -k k296 -v v296 +$HZC map put -n $MAP -k k297 -v v297 +$HZC map put -n $MAP -k k298 -v v298 +$HZC map put -n $MAP -k k299 -v v299 +$HZC map put -n $MAP -k k300 -v v300 +$HZC map put -n $MAP -k k301 -v v301 +$HZC map put -n $MAP -k k302 -v v302 +$HZC map put -n $MAP -k k303 -v v303 +$HZC map put -n $MAP -k k304 -v v304 +$HZC map put -n $MAP -k k305 -v v305 +$HZC map put -n $MAP -k k306 -v v306 +$HZC map put -n $MAP -k k307 -v v307 +$HZC map put -n $MAP -k k308 -v v308 +$HZC map put -n $MAP -k k309 -v v309 +$HZC map put -n $MAP -k k310 -v v310 +$HZC map put -n $MAP -k k311 -v v311 +$HZC map put -n $MAP -k k312 -v v312 +$HZC map put -n $MAP -k k313 -v v313 +$HZC map put -n $MAP -k k314 -v v314 +$HZC map put -n $MAP -k k315 -v v315 +$HZC map put -n $MAP -k k316 -v v316 +$HZC map put -n $MAP -k k317 -v v317 +$HZC map put -n $MAP -k k318 -v v318 +$HZC map put -n $MAP -k k319 -v v319 +$HZC map put -n $MAP -k k320 -v v320 +$HZC map put -n $MAP -k k321 -v v321 +$HZC map put -n $MAP -k k322 -v v322 +$HZC map put -n $MAP -k k323 -v v323 +$HZC map put -n $MAP -k k324 -v v324 +$HZC map put -n $MAP -k k325 -v v325 +$HZC map put -n $MAP -k k326 -v v326 +$HZC map put -n $MAP -k k327 -v v327 +$HZC map put -n $MAP -k k328 -v v328 +$HZC map put -n $MAP -k k329 -v v329 +$HZC map put -n $MAP -k k330 -v v330 +$HZC map put -n $MAP -k k331 -v v331 +$HZC map put -n $MAP -k k332 -v v332 +$HZC map put -n $MAP -k k333 -v v333 +$HZC map put -n $MAP -k k334 -v v334 +$HZC map put -n $MAP -k k335 -v v335 +$HZC map put -n $MAP -k k336 -v v336 +$HZC map put -n $MAP -k k337 -v v337 +$HZC map put -n $MAP -k k338 -v v338 +$HZC map put -n $MAP -k k339 -v v339 +$HZC map put -n $MAP -k k340 -v v340 +$HZC map put -n $MAP -k k341 -v v341 +$HZC map put -n $MAP -k k342 -v v342 +$HZC map put -n $MAP -k k343 -v v343 +$HZC map put -n $MAP -k k344 -v v344 +$HZC map put -n $MAP -k k345 -v v345 +$HZC map put -n $MAP -k k346 -v v346 +$HZC map put -n $MAP -k k347 -v v347 +$HZC map put -n $MAP -k k348 -v v348 +$HZC map put -n $MAP -k k349 -v v349 +$HZC map put -n $MAP -k k350 -v v350 +$HZC map put -n $MAP -k k351 -v v351 +$HZC map put -n $MAP -k k352 -v v352 +$HZC map put -n $MAP -k k353 -v v353 +$HZC map put -n $MAP -k k354 -v v354 +$HZC map put -n $MAP -k k355 -v v355 +$HZC map put -n $MAP -k k356 -v v356 +$HZC map put -n $MAP -k k357 -v v357 +$HZC map put -n $MAP -k k358 -v v358 +$HZC map put -n $MAP -k k359 -v v359 +$HZC map put -n $MAP -k k360 -v v360 +$HZC map put -n $MAP -k k361 -v v361 +$HZC map put -n $MAP -k k362 -v v362 +$HZC map put -n $MAP -k k363 -v v363 +$HZC map put -n $MAP -k k364 -v v364 +$HZC map put -n $MAP -k k365 -v v365 +$HZC map put -n $MAP -k k366 -v v366 +$HZC map put -n $MAP -k k367 -v v367 +$HZC map put -n $MAP -k k368 -v v368 +$HZC map put -n $MAP -k k369 -v v369 +$HZC map put -n $MAP -k k370 -v v370 +$HZC map put -n $MAP -k k371 -v v371 +$HZC map put -n $MAP -k k372 -v v372 +$HZC map put -n $MAP -k k373 -v v373 +$HZC map put -n $MAP -k k374 -v v374 +$HZC map put -n $MAP -k k375 -v v375 +$HZC map put -n $MAP -k k376 -v v376 +$HZC map put -n $MAP -k k377 -v v377 +$HZC map put -n $MAP -k k378 -v v378 +$HZC map put -n $MAP -k k379 -v v379 +$HZC map put -n $MAP -k k380 -v v380 +$HZC map put -n $MAP -k k381 -v v381 +$HZC map put -n $MAP -k k382 -v v382 +$HZC map put -n $MAP -k k383 -v v383 +$HZC map put -n $MAP -k k384 -v v384 +$HZC map put -n $MAP -k k385 -v v385 +$HZC map put -n $MAP -k k386 -v v386 +$HZC map put -n $MAP -k k387 -v v387 +$HZC map put -n $MAP -k k388 -v v388 +$HZC map put -n $MAP -k k389 -v v389 +$HZC map put -n $MAP -k k390 -v v390 +$HZC map put -n $MAP -k k391 -v v391 +$HZC map put -n $MAP -k k392 -v v392 +$HZC map put -n $MAP -k k393 -v v393 +$HZC map put -n $MAP -k k394 -v v394 +$HZC map put -n $MAP -k k395 -v v395 +$HZC map put -n $MAP -k k396 -v v396 +$HZC map put -n $MAP -k k397 -v v397 +$HZC map put -n $MAP -k k398 -v v398 +$HZC map put -n $MAP -k k399 -v v399 +$HZC map put -n $MAP -k k400 -v v400 +$HZC map put -n $MAP -k k401 -v v401 +$HZC map put -n $MAP -k k402 -v v402 +$HZC map put -n $MAP -k k403 -v v403 +$HZC map put -n $MAP -k k404 -v v404 +$HZC map put -n $MAP -k k405 -v v405 +$HZC map put -n $MAP -k k406 -v v406 +$HZC map put -n $MAP -k k407 -v v407 +$HZC map put -n $MAP -k k408 -v v408 +$HZC map put -n $MAP -k k409 -v v409 +$HZC map put -n $MAP -k k410 -v v410 +$HZC map put -n $MAP -k k411 -v v411 +$HZC map put -n $MAP -k k412 -v v412 +$HZC map put -n $MAP -k k413 -v v413 +$HZC map put -n $MAP -k k414 -v v414 +$HZC map put -n $MAP -k k415 -v v415 +$HZC map put -n $MAP -k k416 -v v416 +$HZC map put -n $MAP -k k417 -v v417 +$HZC map put -n $MAP -k k418 -v v418 +$HZC map put -n $MAP -k k419 -v v419 +$HZC map put -n $MAP -k k420 -v v420 +$HZC map put -n $MAP -k k421 -v v421 +$HZC map put -n $MAP -k k422 -v v422 +$HZC map put -n $MAP -k k423 -v v423 +$HZC map put -n $MAP -k k424 -v v424 +$HZC map put -n $MAP -k k425 -v v425 +$HZC map put -n $MAP -k k426 -v v426 +$HZC map put -n $MAP -k k427 -v v427 +$HZC map put -n $MAP -k k428 -v v428 +$HZC map put -n $MAP -k k429 -v v429 +$HZC map put -n $MAP -k k430 -v v430 +$HZC map put -n $MAP -k k431 -v v431 +$HZC map put -n $MAP -k k432 -v v432 +$HZC map put -n $MAP -k k433 -v v433 +$HZC map put -n $MAP -k k434 -v v434 +$HZC map put -n $MAP -k k435 -v v435 +$HZC map put -n $MAP -k k436 -v v436 +$HZC map put -n $MAP -k k437 -v v437 +$HZC map put -n $MAP -k k438 -v v438 +$HZC map put -n $MAP -k k439 -v v439 +$HZC map put -n $MAP -k k440 -v v440 +$HZC map put -n $MAP -k k441 -v v441 +$HZC map put -n $MAP -k k442 -v v442 +$HZC map put -n $MAP -k k443 -v v443 +$HZC map put -n $MAP -k k444 -v v444 +$HZC map put -n $MAP -k k445 -v v445 +$HZC map put -n $MAP -k k446 -v v446 +$HZC map put -n $MAP -k k447 -v v447 +$HZC map put -n $MAP -k k448 -v v448 +$HZC map put -n $MAP -k k449 -v v449 +$HZC map put -n $MAP -k k450 -v v450 +$HZC map put -n $MAP -k k451 -v v451 +$HZC map put -n $MAP -k k452 -v v452 +$HZC map put -n $MAP -k k453 -v v453 +$HZC map put -n $MAP -k k454 -v v454 +$HZC map put -n $MAP -k k455 -v v455 +$HZC map put -n $MAP -k k456 -v v456 +$HZC map put -n $MAP -k k457 -v v457 +$HZC map put -n $MAP -k k458 -v v458 +$HZC map put -n $MAP -k k459 -v v459 +$HZC map put -n $MAP -k k460 -v v460 +$HZC map put -n $MAP -k k461 -v v461 +$HZC map put -n $MAP -k k462 -v v462 +$HZC map put -n $MAP -k k463 -v v463 +$HZC map put -n $MAP -k k464 -v v464 +$HZC map put -n $MAP -k k465 -v v465 +$HZC map put -n $MAP -k k466 -v v466 +$HZC map put -n $MAP -k k467 -v v467 +$HZC map put -n $MAP -k k468 -v v468 +$HZC map put -n $MAP -k k469 -v v469 +$HZC map put -n $MAP -k k470 -v v470 +$HZC map put -n $MAP -k k471 -v v471 +$HZC map put -n $MAP -k k472 -v v472 +$HZC map put -n $MAP -k k473 -v v473 +$HZC map put -n $MAP -k k474 -v v474 +$HZC map put -n $MAP -k k475 -v v475 +$HZC map put -n $MAP -k k476 -v v476 +$HZC map put -n $MAP -k k477 -v v477 +$HZC map put -n $MAP -k k478 -v v478 +$HZC map put -n $MAP -k k479 -v v479 +$HZC map put -n $MAP -k k480 -v v480 +$HZC map put -n $MAP -k k481 -v v481 +$HZC map put -n $MAP -k k482 -v v482 +$HZC map put -n $MAP -k k483 -v v483 +$HZC map put -n $MAP -k k484 -v v484 +$HZC map put -n $MAP -k k485 -v v485 +$HZC map put -n $MAP -k k486 -v v486 +$HZC map put -n $MAP -k k487 -v v487 +$HZC map put -n $MAP -k k488 -v v488 +$HZC map put -n $MAP -k k489 -v v489 +$HZC map put -n $MAP -k k490 -v v490 +$HZC map put -n $MAP -k k491 -v v491 +$HZC map put -n $MAP -k k492 -v v492 +$HZC map put -n $MAP -k k493 -v v493 +$HZC map put -n $MAP -k k494 -v v494 +$HZC map put -n $MAP -k k495 -v v495 +$HZC map put -n $MAP -k k496 -v v496 +$HZC map put -n $MAP -k k497 -v v497 +$HZC map put -n $MAP -k k498 -v v498 +$HZC map put -n $MAP -k k499 -v v499 +$HZC map put -n $MAP -k k500 -v v500 +$HZC map put -n $MAP -k k501 -v v501 +$HZC map put -n $MAP -k k502 -v v502 +$HZC map put -n $MAP -k k503 -v v503 +$HZC map put -n $MAP -k k504 -v v504 +$HZC map put -n $MAP -k k505 -v v505 +$HZC map put -n $MAP -k k506 -v v506 +$HZC map put -n $MAP -k k507 -v v507 +$HZC map put -n $MAP -k k508 -v v508 +$HZC map put -n $MAP -k k509 -v v509 +$HZC map put -n $MAP -k k510 -v v510 +$HZC map put -n $MAP -k k511 -v v511 +$HZC map put -n $MAP -k k512 -v v512 +$HZC map put -n $MAP -k k513 -v v513 +$HZC map put -n $MAP -k k514 -v v514 +$HZC map put -n $MAP -k k515 -v v515 +$HZC map put -n $MAP -k k516 -v v516 +$HZC map put -n $MAP -k k517 -v v517 +$HZC map put -n $MAP -k k518 -v v518 +$HZC map put -n $MAP -k k519 -v v519 +$HZC map put -n $MAP -k k520 -v v520 +$HZC map put -n $MAP -k k521 -v v521 +$HZC map put -n $MAP -k k522 -v v522 +$HZC map put -n $MAP -k k523 -v v523 +$HZC map put -n $MAP -k k524 -v v524 +$HZC map put -n $MAP -k k525 -v v525 +$HZC map put -n $MAP -k k526 -v v526 +$HZC map put -n $MAP -k k527 -v v527 +$HZC map put -n $MAP -k k528 -v v528 +$HZC map put -n $MAP -k k529 -v v529 +$HZC map put -n $MAP -k k530 -v v530 +$HZC map put -n $MAP -k k531 -v v531 +$HZC map put -n $MAP -k k532 -v v532 +$HZC map put -n $MAP -k k533 -v v533 +$HZC map put -n $MAP -k k534 -v v534 +$HZC map put -n $MAP -k k535 -v v535 +$HZC map put -n $MAP -k k536 -v v536 +$HZC map put -n $MAP -k k537 -v v537 +$HZC map put -n $MAP -k k538 -v v538 +$HZC map put -n $MAP -k k539 -v v539 +$HZC map put -n $MAP -k k540 -v v540 +$HZC map put -n $MAP -k k541 -v v541 +$HZC map put -n $MAP -k k542 -v v542 +$HZC map put -n $MAP -k k543 -v v543 +$HZC map put -n $MAP -k k544 -v v544 +$HZC map put -n $MAP -k k545 -v v545 +$HZC map put -n $MAP -k k546 -v v546 +$HZC map put -n $MAP -k k547 -v v547 +$HZC map put -n $MAP -k k548 -v v548 +$HZC map put -n $MAP -k k549 -v v549 +$HZC map put -n $MAP -k k550 -v v550 +$HZC map put -n $MAP -k k551 -v v551 +$HZC map put -n $MAP -k k552 -v v552 +$HZC map put -n $MAP -k k553 -v v553 +$HZC map put -n $MAP -k k554 -v v554 +$HZC map put -n $MAP -k k555 -v v555 +$HZC map put -n $MAP -k k556 -v v556 +$HZC map put -n $MAP -k k557 -v v557 +$HZC map put -n $MAP -k k558 -v v558 +$HZC map put -n $MAP -k k559 -v v559 +$HZC map put -n $MAP -k k560 -v v560 +$HZC map put -n $MAP -k k561 -v v561 +$HZC map put -n $MAP -k k562 -v v562 +$HZC map put -n $MAP -k k563 -v v563 +$HZC map put -n $MAP -k k564 -v v564 +$HZC map put -n $MAP -k k565 -v v565 +$HZC map put -n $MAP -k k566 -v v566 +$HZC map put -n $MAP -k k567 -v v567 +$HZC map put -n $MAP -k k568 -v v568 +$HZC map put -n $MAP -k k569 -v v569 +$HZC map put -n $MAP -k k570 -v v570 +$HZC map put -n $MAP -k k571 -v v571 +$HZC map put -n $MAP -k k572 -v v572 +$HZC map put -n $MAP -k k573 -v v573 +$HZC map put -n $MAP -k k574 -v v574 +$HZC map put -n $MAP -k k575 -v v575 +$HZC map put -n $MAP -k k576 -v v576 +$HZC map put -n $MAP -k k577 -v v577 +$HZC map put -n $MAP -k k578 -v v578 +$HZC map put -n $MAP -k k579 -v v579 +$HZC map put -n $MAP -k k580 -v v580 +$HZC map put -n $MAP -k k581 -v v581 +$HZC map put -n $MAP -k k582 -v v582 +$HZC map put -n $MAP -k k583 -v v583 +$HZC map put -n $MAP -k k584 -v v584 +$HZC map put -n $MAP -k k585 -v v585 +$HZC map put -n $MAP -k k586 -v v586 +$HZC map put -n $MAP -k k587 -v v587 +$HZC map put -n $MAP -k k588 -v v588 +$HZC map put -n $MAP -k k589 -v v589 +$HZC map put -n $MAP -k k590 -v v590 +$HZC map put -n $MAP -k k591 -v v591 +$HZC map put -n $MAP -k k592 -v v592 +$HZC map put -n $MAP -k k593 -v v593 +$HZC map put -n $MAP -k k594 -v v594 +$HZC map put -n $MAP -k k595 -v v595 +$HZC map put -n $MAP -k k596 -v v596 +$HZC map put -n $MAP -k k597 -v v597 +$HZC map put -n $MAP -k k598 -v v598 +$HZC map put -n $MAP -k k599 -v v599 +$HZC map put -n $MAP -k k600 -v v600 +$HZC map put -n $MAP -k k601 -v v601 +$HZC map put -n $MAP -k k602 -v v602 +$HZC map put -n $MAP -k k603 -v v603 +$HZC map put -n $MAP -k k604 -v v604 +$HZC map put -n $MAP -k k605 -v v605 +$HZC map put -n $MAP -k k606 -v v606 +$HZC map put -n $MAP -k k607 -v v607 +$HZC map put -n $MAP -k k608 -v v608 +$HZC map put -n $MAP -k k609 -v v609 +$HZC map put -n $MAP -k k610 -v v610 +$HZC map put -n $MAP -k k611 -v v611 +$HZC map put -n $MAP -k k612 -v v612 +$HZC map put -n $MAP -k k613 -v v613 +$HZC map put -n $MAP -k k614 -v v614 +$HZC map put -n $MAP -k k615 -v v615 +$HZC map put -n $MAP -k k616 -v v616 +$HZC map put -n $MAP -k k617 -v v617 +$HZC map put -n $MAP -k k618 -v v618 +$HZC map put -n $MAP -k k619 -v v619 +$HZC map put -n $MAP -k k620 -v v620 +$HZC map put -n $MAP -k k621 -v v621 +$HZC map put -n $MAP -k k622 -v v622 +$HZC map put -n $MAP -k k623 -v v623 +$HZC map put -n $MAP -k k624 -v v624 +$HZC map put -n $MAP -k k625 -v v625 +$HZC map put -n $MAP -k k626 -v v626 +$HZC map put -n $MAP -k k627 -v v627 +$HZC map put -n $MAP -k k628 -v v628 +$HZC map put -n $MAP -k k629 -v v629 +$HZC map put -n $MAP -k k630 -v v630 +$HZC map put -n $MAP -k k631 -v v631 +$HZC map put -n $MAP -k k632 -v v632 +$HZC map put -n $MAP -k k633 -v v633 +$HZC map put -n $MAP -k k634 -v v634 +$HZC map put -n $MAP -k k635 -v v635 +$HZC map put -n $MAP -k k636 -v v636 +$HZC map put -n $MAP -k k637 -v v637 +$HZC map put -n $MAP -k k638 -v v638 +$HZC map put -n $MAP -k k639 -v v639 +$HZC map put -n $MAP -k k640 -v v640 +$HZC map put -n $MAP -k k641 -v v641 +$HZC map put -n $MAP -k k642 -v v642 +$HZC map put -n $MAP -k k643 -v v643 +$HZC map put -n $MAP -k k644 -v v644 +$HZC map put -n $MAP -k k645 -v v645 +$HZC map put -n $MAP -k k646 -v v646 +$HZC map put -n $MAP -k k647 -v v647 +$HZC map put -n $MAP -k k648 -v v648 +$HZC map put -n $MAP -k k649 -v v649 +$HZC map put -n $MAP -k k650 -v v650 +$HZC map put -n $MAP -k k651 -v v651 +$HZC map put -n $MAP -k k652 -v v652 +$HZC map put -n $MAP -k k653 -v v653 +$HZC map put -n $MAP -k k654 -v v654 +$HZC map put -n $MAP -k k655 -v v655 +$HZC map put -n $MAP -k k656 -v v656 +$HZC map put -n $MAP -k k657 -v v657 +$HZC map put -n $MAP -k k658 -v v658 +$HZC map put -n $MAP -k k659 -v v659 +$HZC map put -n $MAP -k k660 -v v660 +$HZC map put -n $MAP -k k661 -v v661 +$HZC map put -n $MAP -k k662 -v v662 +$HZC map put -n $MAP -k k663 -v v663 +$HZC map put -n $MAP -k k664 -v v664 +$HZC map put -n $MAP -k k665 -v v665 +$HZC map put -n $MAP -k k666 -v v666 +$HZC map put -n $MAP -k k667 -v v667 +$HZC map put -n $MAP -k k668 -v v668 +$HZC map put -n $MAP -k k669 -v v669 +$HZC map put -n $MAP -k k670 -v v670 +$HZC map put -n $MAP -k k671 -v v671 +$HZC map put -n $MAP -k k672 -v v672 +$HZC map put -n $MAP -k k673 -v v673 +$HZC map put -n $MAP -k k674 -v v674 +$HZC map put -n $MAP -k k675 -v v675 +$HZC map put -n $MAP -k k676 -v v676 +$HZC map put -n $MAP -k k677 -v v677 +$HZC map put -n $MAP -k k678 -v v678 +$HZC map put -n $MAP -k k679 -v v679 +$HZC map put -n $MAP -k k680 -v v680 +$HZC map put -n $MAP -k k681 -v v681 +$HZC map put -n $MAP -k k682 -v v682 +$HZC map put -n $MAP -k k683 -v v683 +$HZC map put -n $MAP -k k684 -v v684 +$HZC map put -n $MAP -k k685 -v v685 +$HZC map put -n $MAP -k k686 -v v686 +$HZC map put -n $MAP -k k687 -v v687 +$HZC map put -n $MAP -k k688 -v v688 +$HZC map put -n $MAP -k k689 -v v689 +$HZC map put -n $MAP -k k690 -v v690 +$HZC map put -n $MAP -k k691 -v v691 +$HZC map put -n $MAP -k k692 -v v692 +$HZC map put -n $MAP -k k693 -v v693 +$HZC map put -n $MAP -k k694 -v v694 +$HZC map put -n $MAP -k k695 -v v695 +$HZC map put -n $MAP -k k696 -v v696 +$HZC map put -n $MAP -k k697 -v v697 +$HZC map put -n $MAP -k k698 -v v698 +$HZC map put -n $MAP -k k699 -v v699 +$HZC map put -n $MAP -k k700 -v v700 +$HZC map put -n $MAP -k k701 -v v701 +$HZC map put -n $MAP -k k702 -v v702 +$HZC map put -n $MAP -k k703 -v v703 +$HZC map put -n $MAP -k k704 -v v704 +$HZC map put -n $MAP -k k705 -v v705 +$HZC map put -n $MAP -k k706 -v v706 +$HZC map put -n $MAP -k k707 -v v707 +$HZC map put -n $MAP -k k708 -v v708 +$HZC map put -n $MAP -k k709 -v v709 +$HZC map put -n $MAP -k k710 -v v710 +$HZC map put -n $MAP -k k711 -v v711 +$HZC map put -n $MAP -k k712 -v v712 +$HZC map put -n $MAP -k k713 -v v713 +$HZC map put -n $MAP -k k714 -v v714 +$HZC map put -n $MAP -k k715 -v v715 +$HZC map put -n $MAP -k k716 -v v716 +$HZC map put -n $MAP -k k717 -v v717 +$HZC map put -n $MAP -k k718 -v v718 +$HZC map put -n $MAP -k k719 -v v719 +$HZC map put -n $MAP -k k720 -v v720 +$HZC map put -n $MAP -k k721 -v v721 +$HZC map put -n $MAP -k k722 -v v722 +$HZC map put -n $MAP -k k723 -v v723 +$HZC map put -n $MAP -k k724 -v v724 +$HZC map put -n $MAP -k k725 -v v725 +$HZC map put -n $MAP -k k726 -v v726 +$HZC map put -n $MAP -k k727 -v v727 +$HZC map put -n $MAP -k k728 -v v728 +$HZC map put -n $MAP -k k729 -v v729 +$HZC map put -n $MAP -k k730 -v v730 +$HZC map put -n $MAP -k k731 -v v731 +$HZC map put -n $MAP -k k732 -v v732 +$HZC map put -n $MAP -k k733 -v v733 +$HZC map put -n $MAP -k k734 -v v734 +$HZC map put -n $MAP -k k735 -v v735 +$HZC map put -n $MAP -k k736 -v v736 +$HZC map put -n $MAP -k k737 -v v737 +$HZC map put -n $MAP -k k738 -v v738 +$HZC map put -n $MAP -k k739 -v v739 +$HZC map put -n $MAP -k k740 -v v740 +$HZC map put -n $MAP -k k741 -v v741 +$HZC map put -n $MAP -k k742 -v v742 +$HZC map put -n $MAP -k k743 -v v743 +$HZC map put -n $MAP -k k744 -v v744 +$HZC map put -n $MAP -k k745 -v v745 +$HZC map put -n $MAP -k k746 -v v746 +$HZC map put -n $MAP -k k747 -v v747 +$HZC map put -n $MAP -k k748 -v v748 +$HZC map put -n $MAP -k k749 -v v749 +$HZC map put -n $MAP -k k750 -v v750 +$HZC map put -n $MAP -k k751 -v v751 +$HZC map put -n $MAP -k k752 -v v752 +$HZC map put -n $MAP -k k753 -v v753 +$HZC map put -n $MAP -k k754 -v v754 +$HZC map put -n $MAP -k k755 -v v755 +$HZC map put -n $MAP -k k756 -v v756 +$HZC map put -n $MAP -k k757 -v v757 +$HZC map put -n $MAP -k k758 -v v758 +$HZC map put -n $MAP -k k759 -v v759 +$HZC map put -n $MAP -k k760 -v v760 +$HZC map put -n $MAP -k k761 -v v761 +$HZC map put -n $MAP -k k762 -v v762 +$HZC map put -n $MAP -k k763 -v v763 +$HZC map put -n $MAP -k k764 -v v764 +$HZC map put -n $MAP -k k765 -v v765 +$HZC map put -n $MAP -k k766 -v v766 +$HZC map put -n $MAP -k k767 -v v767 +$HZC map put -n $MAP -k k768 -v v768 +$HZC map put -n $MAP -k k769 -v v769 +$HZC map put -n $MAP -k k770 -v v770 +$HZC map put -n $MAP -k k771 -v v771 +$HZC map put -n $MAP -k k772 -v v772 +$HZC map put -n $MAP -k k773 -v v773 +$HZC map put -n $MAP -k k774 -v v774 +$HZC map put -n $MAP -k k775 -v v775 +$HZC map put -n $MAP -k k776 -v v776 +$HZC map put -n $MAP -k k777 -v v777 +$HZC map put -n $MAP -k k778 -v v778 +$HZC map put -n $MAP -k k779 -v v779 +$HZC map put -n $MAP -k k780 -v v780 +$HZC map put -n $MAP -k k781 -v v781 +$HZC map put -n $MAP -k k782 -v v782 +$HZC map put -n $MAP -k k783 -v v783 +$HZC map put -n $MAP -k k784 -v v784 +$HZC map put -n $MAP -k k785 -v v785 +$HZC map put -n $MAP -k k786 -v v786 +$HZC map put -n $MAP -k k787 -v v787 +$HZC map put -n $MAP -k k788 -v v788 +$HZC map put -n $MAP -k k789 -v v789 +$HZC map put -n $MAP -k k790 -v v790 +$HZC map put -n $MAP -k k791 -v v791 +$HZC map put -n $MAP -k k792 -v v792 +$HZC map put -n $MAP -k k793 -v v793 +$HZC map put -n $MAP -k k794 -v v794 +$HZC map put -n $MAP -k k795 -v v795 +$HZC map put -n $MAP -k k796 -v v796 +$HZC map put -n $MAP -k k797 -v v797 +$HZC map put -n $MAP -k k798 -v v798 +$HZC map put -n $MAP -k k799 -v v799 +$HZC map put -n $MAP -k k800 -v v800 +$HZC map put -n $MAP -k k801 -v v801 +$HZC map put -n $MAP -k k802 -v v802 +$HZC map put -n $MAP -k k803 -v v803 +$HZC map put -n $MAP -k k804 -v v804 +$HZC map put -n $MAP -k k805 -v v805 +$HZC map put -n $MAP -k k806 -v v806 +$HZC map put -n $MAP -k k807 -v v807 +$HZC map put -n $MAP -k k808 -v v808 +$HZC map put -n $MAP -k k809 -v v809 +$HZC map put -n $MAP -k k810 -v v810 +$HZC map put -n $MAP -k k811 -v v811 +$HZC map put -n $MAP -k k812 -v v812 +$HZC map put -n $MAP -k k813 -v v813 +$HZC map put -n $MAP -k k814 -v v814 +$HZC map put -n $MAP -k k815 -v v815 +$HZC map put -n $MAP -k k816 -v v816 +$HZC map put -n $MAP -k k817 -v v817 +$HZC map put -n $MAP -k k818 -v v818 +$HZC map put -n $MAP -k k819 -v v819 +$HZC map put -n $MAP -k k820 -v v820 +$HZC map put -n $MAP -k k821 -v v821 +$HZC map put -n $MAP -k k822 -v v822 +$HZC map put -n $MAP -k k823 -v v823 +$HZC map put -n $MAP -k k824 -v v824 +$HZC map put -n $MAP -k k825 -v v825 +$HZC map put -n $MAP -k k826 -v v826 +$HZC map put -n $MAP -k k827 -v v827 +$HZC map put -n $MAP -k k828 -v v828 +$HZC map put -n $MAP -k k829 -v v829 +$HZC map put -n $MAP -k k830 -v v830 +$HZC map put -n $MAP -k k831 -v v831 +$HZC map put -n $MAP -k k832 -v v832 +$HZC map put -n $MAP -k k833 -v v833 +$HZC map put -n $MAP -k k834 -v v834 +$HZC map put -n $MAP -k k835 -v v835 +$HZC map put -n $MAP -k k836 -v v836 +$HZC map put -n $MAP -k k837 -v v837 +$HZC map put -n $MAP -k k838 -v v838 +$HZC map put -n $MAP -k k839 -v v839 +$HZC map put -n $MAP -k k840 -v v840 +$HZC map put -n $MAP -k k841 -v v841 +$HZC map put -n $MAP -k k842 -v v842 +$HZC map put -n $MAP -k k843 -v v843 +$HZC map put -n $MAP -k k844 -v v844 +$HZC map put -n $MAP -k k845 -v v845 +$HZC map put -n $MAP -k k846 -v v846 +$HZC map put -n $MAP -k k847 -v v847 +$HZC map put -n $MAP -k k848 -v v848 +$HZC map put -n $MAP -k k849 -v v849 +$HZC map put -n $MAP -k k850 -v v850 +$HZC map put -n $MAP -k k851 -v v851 +$HZC map put -n $MAP -k k852 -v v852 +$HZC map put -n $MAP -k k853 -v v853 +$HZC map put -n $MAP -k k854 -v v854 +$HZC map put -n $MAP -k k855 -v v855 +$HZC map put -n $MAP -k k856 -v v856 +$HZC map put -n $MAP -k k857 -v v857 +$HZC map put -n $MAP -k k858 -v v858 +$HZC map put -n $MAP -k k859 -v v859 +$HZC map put -n $MAP -k k860 -v v860 +$HZC map put -n $MAP -k k861 -v v861 +$HZC map put -n $MAP -k k862 -v v862 +$HZC map put -n $MAP -k k863 -v v863 +$HZC map put -n $MAP -k k864 -v v864 +$HZC map put -n $MAP -k k865 -v v865 +$HZC map put -n $MAP -k k866 -v v866 +$HZC map put -n $MAP -k k867 -v v867 +$HZC map put -n $MAP -k k868 -v v868 +$HZC map put -n $MAP -k k869 -v v869 +$HZC map put -n $MAP -k k870 -v v870 +$HZC map put -n $MAP -k k871 -v v871 +$HZC map put -n $MAP -k k872 -v v872 +$HZC map put -n $MAP -k k873 -v v873 +$HZC map put -n $MAP -k k874 -v v874 +$HZC map put -n $MAP -k k875 -v v875 +$HZC map put -n $MAP -k k876 -v v876 +$HZC map put -n $MAP -k k877 -v v877 +$HZC map put -n $MAP -k k878 -v v878 +$HZC map put -n $MAP -k k879 -v v879 +$HZC map put -n $MAP -k k880 -v v880 +$HZC map put -n $MAP -k k881 -v v881 +$HZC map put -n $MAP -k k882 -v v882 +$HZC map put -n $MAP -k k883 -v v883 +$HZC map put -n $MAP -k k884 -v v884 +$HZC map put -n $MAP -k k885 -v v885 +$HZC map put -n $MAP -k k886 -v v886 +$HZC map put -n $MAP -k k887 -v v887 +$HZC map put -n $MAP -k k888 -v v888 +$HZC map put -n $MAP -k k889 -v v889 +$HZC map put -n $MAP -k k890 -v v890 +$HZC map put -n $MAP -k k891 -v v891 +$HZC map put -n $MAP -k k892 -v v892 +$HZC map put -n $MAP -k k893 -v v893 +$HZC map put -n $MAP -k k894 -v v894 +$HZC map put -n $MAP -k k895 -v v895 +$HZC map put -n $MAP -k k896 -v v896 +$HZC map put -n $MAP -k k897 -v v897 +$HZC map put -n $MAP -k k898 -v v898 +$HZC map put -n $MAP -k k899 -v v899 +$HZC map put -n $MAP -k k900 -v v900 +$HZC map put -n $MAP -k k901 -v v901 +$HZC map put -n $MAP -k k902 -v v902 +$HZC map put -n $MAP -k k903 -v v903 +$HZC map put -n $MAP -k k904 -v v904 +$HZC map put -n $MAP -k k905 -v v905 +$HZC map put -n $MAP -k k906 -v v906 +$HZC map put -n $MAP -k k907 -v v907 +$HZC map put -n $MAP -k k908 -v v908 +$HZC map put -n $MAP -k k909 -v v909 +$HZC map put -n $MAP -k k910 -v v910 +$HZC map put -n $MAP -k k911 -v v911 +$HZC map put -n $MAP -k k912 -v v912 +$HZC map put -n $MAP -k k913 -v v913 +$HZC map put -n $MAP -k k914 -v v914 +$HZC map put -n $MAP -k k915 -v v915 +$HZC map put -n $MAP -k k916 -v v916 +$HZC map put -n $MAP -k k917 -v v917 +$HZC map put -n $MAP -k k918 -v v918 +$HZC map put -n $MAP -k k919 -v v919 +$HZC map put -n $MAP -k k920 -v v920 +$HZC map put -n $MAP -k k921 -v v921 +$HZC map put -n $MAP -k k922 -v v922 +$HZC map put -n $MAP -k k923 -v v923 +$HZC map put -n $MAP -k k924 -v v924 +$HZC map put -n $MAP -k k925 -v v925 +$HZC map put -n $MAP -k k926 -v v926 +$HZC map put -n $MAP -k k927 -v v927 +$HZC map put -n $MAP -k k928 -v v928 +$HZC map put -n $MAP -k k929 -v v929 +$HZC map put -n $MAP -k k930 -v v930 +$HZC map put -n $MAP -k k931 -v v931 +$HZC map put -n $MAP -k k932 -v v932 +$HZC map put -n $MAP -k k933 -v v933 +$HZC map put -n $MAP -k k934 -v v934 +$HZC map put -n $MAP -k k935 -v v935 +$HZC map put -n $MAP -k k936 -v v936 +$HZC map put -n $MAP -k k937 -v v937 +$HZC map put -n $MAP -k k938 -v v938 +$HZC map put -n $MAP -k k939 -v v939 +$HZC map put -n $MAP -k k940 -v v940 +$HZC map put -n $MAP -k k941 -v v941 +$HZC map put -n $MAP -k k942 -v v942 +$HZC map put -n $MAP -k k943 -v v943 +$HZC map put -n $MAP -k k944 -v v944 +$HZC map put -n $MAP -k k945 -v v945 +$HZC map put -n $MAP -k k946 -v v946 +$HZC map put -n $MAP -k k947 -v v947 +$HZC map put -n $MAP -k k948 -v v948 +$HZC map put -n $MAP -k k949 -v v949 +$HZC map put -n $MAP -k k950 -v v950 +$HZC map put -n $MAP -k k951 -v v951 +$HZC map put -n $MAP -k k952 -v v952 +$HZC map put -n $MAP -k k953 -v v953 +$HZC map put -n $MAP -k k954 -v v954 +$HZC map put -n $MAP -k k955 -v v955 +$HZC map put -n $MAP -k k956 -v v956 +$HZC map put -n $MAP -k k957 -v v957 +$HZC map put -n $MAP -k k958 -v v958 +$HZC map put -n $MAP -k k959 -v v959 +$HZC map put -n $MAP -k k960 -v v960 +$HZC map put -n $MAP -k k961 -v v961 +$HZC map put -n $MAP -k k962 -v v962 +$HZC map put -n $MAP -k k963 -v v963 +$HZC map put -n $MAP -k k964 -v v964 +$HZC map put -n $MAP -k k965 -v v965 +$HZC map put -n $MAP -k k966 -v v966 +$HZC map put -n $MAP -k k967 -v v967 +$HZC map put -n $MAP -k k968 -v v968 +$HZC map put -n $MAP -k k969 -v v969 +$HZC map put -n $MAP -k k970 -v v970 +$HZC map put -n $MAP -k k971 -v v971 +$HZC map put -n $MAP -k k972 -v v972 +$HZC map put -n $MAP -k k973 -v v973 +$HZC map put -n $MAP -k k974 -v v974 +$HZC map put -n $MAP -k k975 -v v975 +$HZC map put -n $MAP -k k976 -v v976 +$HZC map put -n $MAP -k k977 -v v977 +$HZC map put -n $MAP -k k978 -v v978 +$HZC map put -n $MAP -k k979 -v v979 +$HZC map put -n $MAP -k k980 -v v980 +$HZC map put -n $MAP -k k981 -v v981 +$HZC map put -n $MAP -k k982 -v v982 +$HZC map put -n $MAP -k k983 -v v983 +$HZC map put -n $MAP -k k984 -v v984 +$HZC map put -n $MAP -k k985 -v v985 +$HZC map put -n $MAP -k k986 -v v986 +$HZC map put -n $MAP -k k987 -v v987 +$HZC map put -n $MAP -k k988 -v v988 +$HZC map put -n $MAP -k k989 -v v989 +$HZC map put -n $MAP -k k990 -v v990 +$HZC map put -n $MAP -k k991 -v v991 +$HZC map put -n $MAP -k k992 -v v992 +$HZC map put -n $MAP -k k993 -v v993 +$HZC map put -n $MAP -k k994 -v v994 +$HZC map put -n $MAP -k k995 -v v995 +$HZC map put -n $MAP -k k996 -v v996 +$HZC map put -n $MAP -k k997 -v v997 +$HZC map put -n $MAP -k k998 -v v998 +$HZC map put -n $MAP -k k999 -v v999 diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 00000000..ca0e8d28 --- /dev/null +++ b/tests/test.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +set -e + +expected_lines=1000 + +./map_put_all.sh +lines=$(./map_get_all.sh | python3 compare.py) + +if [ "$lines" -ne "$expected_lines" ]; then + echo "Expected: $expected_lines, got: $lines" + exit 1 +fi + +echo "OK" \ No newline at end of file diff --git a/types/mapcmd/get-all.go b/types/mapcmd/get-all.go index 1660104c..9cb5643b 100644 --- a/types/mapcmd/get-all.go +++ b/types/mapcmd/get-all.go @@ -17,6 +17,8 @@ package mapcmd import ( + "fmt" + "github.com/hazelcast/hazelcast-go-client" "github.com/hazelcast/hazelcast-go-client/types" "github.com/spf13/cobra" @@ -73,7 +75,7 @@ func NewGetAll(config *hazelcast.Config) *cobra.Command { return hzcerrors.NewLoggableError(err, "Cannot get entries for the given keys for map %s", mapName) } for _, entry := range entries { - cmd.Print(entry.Key, delim) + fmt.Print(entry.Key, delim) printValueBasedOnType(cmd, entry.Value) } return nil diff --git a/types/mapcmd/map.go b/types/mapcmd/map.go index e8bfcba1..c9ce1212 100644 --- a/types/mapcmd/map.go +++ b/types/mapcmd/map.go @@ -115,14 +115,14 @@ func printValueBasedOnType(cmd *cobra.Command, value interface{}) { case serialization.JSON: if err = quick.Highlight(cmd.OutOrStdout(), fmt.Sprintln(v), "json", "terminal", "tango"); err != nil { - cmd.Println(v.String()) + fmt.Println(v.String()) } default: if v == nil { - cmd.Println("There is no value corresponding to the provided key") + fmt.Println("There is no value corresponding to the provided key") break } - cmd.Println(v) + fmt.Println(v) } }