Feature: `osc log` command Scenario: Run `osc log` on a package Given I execute osc with args "log test:factory/test-pkgA" Then the exit code is 0 And stdout matches """ ---------------------------------------------------------------------------- r3 | Admin | ....-..-.. ..:..:.. | dc997133b8ddfaf084b471b05c2643b3 | 3 | Version 3 ---------------------------------------------------------------------------- r2 | Admin | ....-..-.. ..:..:.. | 0ea55feb9cdd741ba7f523ed58a4f099 | 2 | Version 2 ---------------------------------------------------------------------------- r1 | Admin | ....-..-.. ..:..:.. | e675755e79e0d69483d311e96d6b719e | 1 | Initial commit ---------------------------------------------------------------------------- """ Scenario: Run `osc log` on single revision of a package Given I execute osc with args "log test:factory/test-pkgA --revision=2" Then the exit code is 0 And stdout matches """ ---------------------------------------------------------------------------- r2 | Admin | ....-..-.. ..:..:.. | 0ea55feb9cdd741ba7f523ed58a4f099 | 2 | Version 2 ---------------------------------------------------------------------------- """ Scenario: Run `osc log` on revision range of a package Given I execute osc with args "log test:factory/test-pkgA --revision=1:2" Then the exit code is 0 And stdout matches """ ---------------------------------------------------------------------------- r2 | Admin | ....-..-.. ..:..:.. | 0ea55feb9cdd741ba7f523ed58a4f099 | 2 | Version 2 ---------------------------------------------------------------------------- r1 | Admin | ....-..-.. ..:..:.. | e675755e79e0d69483d311e96d6b719e | 1 | Initial commit ---------------------------------------------------------------------------- """ Scenario: Run `osc log --patch` on revision range of a package Given I execute osc with args "log test:factory/test-pkgA --revision=1:2 --patch" Then the exit code is 0 And stdout matches """ ---------------------------------------------------------------------------- r2 \| Admin \| ....-..-.. ..:..:.. \| 0ea55feb9cdd741ba7f523ed58a4f099 \| 2 \| Version 2 changes files: -------------- --- test-pkgA.changes \+\+\+ test-pkgA.changes @@ -2 \+2 @@ -Mon Jan 3 11:22:33 UTC 2022 - Geeko Packager \+Tue Jan 4 11:22:33 UTC 2022 - Geeko Packager @@ -4 \+4 @@ -- Release upstream version 1 \+- Release upstream version 2 spec files: ----------- --- test-pkgA.spec \+\+\+ test-pkgA.spec @@ -1,5 \+1,5 @@ Name: test-pkgA -Version: 1 \+Version: 2 Release: 1 License: GPL-2.0 Summary: Test package ---------------------------------------------------------------------------- r1 \| Admin \| ....-..-.. ..:..:.. \| e675755e79e0d69483d311e96d6b719e \| 1 \| Initial commit changes files: -------------- \+\+\+\+\+\+ new changes file: --- test-pkgA.changes \+\+\+ test-pkgA.changes @@ -0,0 \+1,4 @@ \+------------------------------------------------------------------- \+Mon Jan 3 11:22:33 UTC 2022 - Geeko Packager \+ \+- Release upstream version 1 new: ---- test-pkgA.changes test-pkgA.spec spec files: ----------- \+\+\+\+\+\+ new spec file: --- test-pkgA.spec \+\+\+ test-pkgA.spec @@ -0,0 \+1,25 @@ \+Name: test-pkgA \+Version: 1 \+Release: 1 \+License: GPL-2.0 \+Summary: Test package \+URL: https://example.com/test-package/ \+ \+ \+BuildArch: noarch \+ \+ \+%description \+desc \+ \+ \+%prep \+ \+ \+%install \+ \+ \+%files \+ \+ \+%changelog """