Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate test data sharing in ci with exonum/exonum-client #176

Open
dj8yfo opened this issue Jun 16, 2017 · 2 comments
Open

Integrate test data sharing in ci with exonum/exonum-client #176

dj8yfo opened this issue Jun 16, 2017 · 2 comments
Assignees

Comments

@dj8yfo
Copy link
Contributor

dj8yfo commented Jun 16, 2017

exonum/exonum-client#35

@vldm
Copy link
Contributor

vldm commented Jun 22, 2017

Can you add additional info about this issue?
May be this should be integration test, and exonum-client could init test data, from exonum-core codebase, instead of sharing it between ci.
Or if it regression test for exonum, you could keep test data inside exonum-core?

Or may be you trying to solve two different problems in one way? Then I would advice to split this tests into two.

@dj8yfo
Copy link
Contributor Author

dj8yfo commented Jun 30, 2017

Generate 4 static structures of proofs and compare against test_data in files : 2 per proof_list_index and 2 per proof_map_index.

{
    "root_hash": "3f4168c365989bdc602526c5d708b01b0bd9e0f8a55704ea8c4cede684cdb5ae",
    "searched_key": "00504e008ee659f8520cfc7cb9301a66e57b180417be95ac5792dbe172629226",
    "proof": {
        "0": {
            "0": {
                "0": {
                    "0": {
                        "0": {
                            "00001010000010011100000000010001110111001100101100111111000010100100000110011111100011111001011100100110000000110100110011011100101011110110001100000000100000101111011111010010101101011000101011110010010110110111110000101110010011000101001001000100110": {
                                "val": [
                                    216,
                                    239,
                                    177,
                                    249,
                                    48,
                                    80,
                                    11,
                                    159
                                ]
                            },
                            "1": "60991b4a8fb52251667406f4fd82a2340ec9c4b2359e23b7ae7d976639a66188"
                        },
                        "1": "d462a89644df7a0add7b222cedc849e55c193037314380a7b366d45490f148f6"
                    },
                    "1": "0b1b0335c3614fad8e4bde4fb3997df6ea6a125d830c4dd46f41710a7962df2b"
                },
                "1": "906e3b22b6941d0eac59eae55c185f5dcefb7c5c9c29e5db30da2426d5f20a52"
            },
            "1": "541300c71c2941dd8d5bef457bf0273c9112d14cadcd09cc03634c0bc8a95631"
        },
        "1": "aba161c9bc117452885306011612e3ef6bc1b2449af313e897038f1496ce1106"
    },
    "key_found": true
}
{
    "root_hash": "84a8344acb33870fa6d907e782b851fa6e57075e587fd5a0f4db44426a1dc691",
    "searched_key": "d625fc985bae1795ca2274feeb48b0f62bfbf7520236dcda83c07f75a9e9f8d5",
    "proof": {
        "0": "0a269a97caab5df951c8d6f6e516e6ef861ee79568b8eec357152197ed061d59",
        "1": {
            "0": "fac8a1f121db5ac3b4e00723a9b488f1c6767a528e9b389b7717d724e8a7f449",
            "1": {
                "0": {
                    "000011111": "e8753e6d37f2b09af16c15f9f5d3f00d241bd8d29513bef2e867bbd685a5475d",
                    "1": {
                        "0": {
                            "00100010011001101111011101000110111111101110100011111010011000111010000001110001001111011101010011110001010101001101111010101001011000101110111100000111101001101110100110010100101101010110010101000101100001011011101101100111101001000111001100100001100": "86f23d228e4927e6f80aa25450213974f67ed68229b52a7cd54ecf29e4c3ae11",
                            "1": {
                                "01": "f7f6e89b4f8b106b120fd6dfd4568690e52806bd438077779607283cb0e80842",
                                "1000100101111111001001100001011011101011100001011110010101110010100010001001110100111111101110101101001000101100001111011000101011111110111111011101010010000000100011011011011100110110101000001111000000011111110111010110101001111010011111100011010101": {
                                    "val": "7a6dedabca50b700a834d37f91649b0b5b42883b4e39845df36da4c24c2bc64f"
                                }
                            }
                        },
                        "1": "c87c39db566f849b44dd80db599bd003aa25f30aec8f0e55c596ba83af4bb054"
                    }
                },
                "1": "d4e83f8f640df9d9b76ebf4d09d13a3d75876c52c1c22ac07e2102186a669a90"
            }
        }
    },
    "key_found": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants