summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-01-19Merge #148bors[bot]
148: Reimpl check as PacketInvariant: ConnectPacketProtocolName r=TheNeikos a=matthiasbeyer Extracted from #133. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Reimpl check as PacketInvariant: ConnectPacketProtocolNameMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #150bors[bot]
150: Fix behaviour test execution r=TheNeikos a=matthiasbeyer Extracted from #133. This patchset fixes the behaviour test execution to be concurrent. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #149bors[bot]
149: Fix argparsing in test client binary r=TheNeikos a=matthiasbeyer Extracted from #133. This patchset contains fixes for the test client binary argparsing code. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #147bors[bot]
147: Add loop at end of main() r=TheNeikos a=matthiasbeyer Extracted from #133. This is necessary to keep the default-behaviour of the executable if no commands are passed. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Add log output during behaviour test executionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Fix: Execute behaviour test and client future concurrentlyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Fix: Execute behaviour tests properlyMatthias Beyer
Somehow we messed up the execution of the behaviour tests when implementing it. This patch changes the execution to match the previous implementation of the `check_*` async functions. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Fix: Make command optionalMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Fix: Make sure CLI error is properly printed before exitingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Move argument parsing to top, to panic earlyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Add loop at end of main()Matthias Beyer
This is necessary to keep the default-behaviour of the executable if no commands are passed. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #142bors[bot]
142: Command seperation r=TheNeikos a=matthiasbeyer This is extracted from #133 for making that PR smaller. These patches allow passing multiple commands to a testing binary. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Fix: Do not tell client to quitMatthias Beyer
The WaitForConnect BehaviourTest should not tell the client to quit, because that's not necessary for the test to succeed. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Implement command loopMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Add parsing of commandsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Add four dashes to seperate commandsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #144bors[bot]
144: Refactor test client r=TheNeikos a=matthiasbeyer This is extracted from #133 for making that PR smaller. This refactors the test client a bit for more idiomatic code and to ease incorporating future changes. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #145 #146bors[bot]
145: Fix error message: We test the client here r=TheNeikos a=matthiasbeyer This is extracted from #133 for making that PR smaller. 146: Tester logging r=TheNeikos a=matthiasbeyer This is extracted from #133 for making that PR smaller. Adds logging output via tracing in the tester implementation. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-19Merge #143bors[bot]
143: Reimpl behaviour tests r=TheNeikos a=matthiasbeyer This is extracted from #133 for making that PR smaller. These patches reimplement the tests as behaviour tests. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Refactor: Use unwrap_or_else() instead of matchingMatthias Beyer
... which makes the code less complex (removes the `match` over several lines). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Refactor: Pass String, so re can remove references in fn usageMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Add log output when building CLI callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Add logging via tracingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Remove unused fnMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Remove unused fnMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: FirstPacketFromClientIsConnectMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: PublishQos2IsAckedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: PublishQosZeroWithIdentFailsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: ConnackFlagsAreSetAsReservedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: Utf8WithNullcharIsRejectedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: InvalidFirstPacketIsRejectedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Use test structs publicly in behaviour module to ease importsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimpl test as BehaviourTest: ReceivingServerPacketMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Add missing meta information to behaviour testsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Use BehaviourTest interfaces to construct Report objectsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Let BehaviourTest provide more information about testsMatthias Beyer
This patch adds functions the BehaviourTest trait for providing more information about the individual test cases. These are then used to construct Report objects from the test runs. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Reimplement check_invalid_utf8_is_rejected as BehaviourTestMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-18Fix error message: We test the client hereMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-16Merge #141bors[bot]
141: Update Changelog r=TheNeikos a=TheNeikos Signed-off-by: Marcel Müller <neikos@neikos.email> (cherry picked from commit 6476642f97817308f7e97072f29f5a45c1cf994d) Co-authored-by: Marcel Müller <neikos@neikos.email>
2023-01-16Update ChangelogMarcel Müller
Signed-off-by: Marcel Müller <neikos@neikos.email> (cherry picked from commit 6476642f97817308f7e97072f29f5a45c1cf994d)
2023-01-16Merge #138bors[bot]
138: Fix gitlint configuration: Disallow cleanup commits r=TheNeikos a=matthiasbeyer Found that gitlint isn't properly configured, so I fixed it in this PR. This PR also removes the fixup-check CI job, as gitlint does check this with the new configuration. Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-16Remove fixup-checkMatthias Beyer
gitlint checks this as well, so it is not necessary to run this check anymore. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-16gitlint: Disallow cleanup commitsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-16Remove trailing whitespaceMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-16Merge #135 #136 #137bors[bot]
135: Bump actions/setup-python from 4.4.0 to 4.5.0 r=matthiasbeyer a=dependabot[bot] Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.4.0 to 4.5.0. 136: Bump clap from 4.0.32 to 4.1.1 r=matthiasbeyer a=dependabot[bot] Bumps [clap](https://github.com/clap-rs/clap) from 4.0.32 to 4.1.1. 137: Bump nom from 7.1.2 to 7.1.3 r=matthiasbeyer a=dependabot[bot] Bumps [nom](https://github.com/Geal/nom) from 7.1.2 to 7.1.3. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16Bump nom from 7.1.2 to 7.1.3dependabot[bot]
Bumps [nom](https://github.com/Geal/nom) from 7.1.2 to 7.1.3. - [Release notes](https://github.com/Geal/nom/releases) - [Changelog](https://github.com/rust-bakery/nom/blob/7.1.3/CHANGELOG.md) - [Commits](https://github.com/Geal/nom/compare/7.1.2...7.1.3) --- updated-dependencies: - dependency-name: nom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16Bump clap from 4.0.32 to 4.1.1dependabot[bot]
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.32 to 4.1.1. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.32...v4.1.1) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16Bump actions/setup-python from 4.4.0 to 4.5.0dependabot[bot]
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4.4.0...v4.5.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13Merge #134bors[bot]
134: Allow access to the clientid string r=TheNeikos a=TheNeikos Co-authored-by: Marcel Müller <neikos@neikos.email>