aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_test.go
Commit message (Collapse)AuthorAgeFilesLines
* bug: migrate to the DAG entity structure!Michael Muré2021-02-141-16/+11
|
* identity: PR fixesMichael Muré2021-02-141-1/+1
|
* deal with the previous changesMichael Muré2021-02-141-32/+32
|
* repo: use go-git in more places, fix pushMichael Muré2020-10-041-1/+1
|
* repository: remove tie to Bug, improved and reusable testingMichael Muré2020-06-261-1/+1
| | | | | | | | | - allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code. - generalize the memory-only and persisted Lamport clocks behind a common interface - rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily - test previously untested components with those new tests Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
* bridge: record the login used during the configure and use it as default ↵Michael Muré2020-02-231-2/+3
| | | | | | credential fix #338
* bridges: pass the context to Init for when a client build process needs itMichael Muré2020-02-151-2/+3
|
* bridges: massive refactorMichael Muré2020-02-151-2/+2
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* auth: refactor and introduce Login and LoginPassword, salt IDsMichael Muré2020-02-121-1/+1
|
* it compiles \o/Michael Muré2020-02-081-1/+1
|
* gitlab also compileMichael Muré2020-02-081-0/+5
|
* more wipMichael Muré2020-02-081-7/+1
|
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-251-0/+3
| | | | | | | | | | - init() only the importer or exporter as required - assign a "default user" user Id to credentials at creation if no user has been set - "bridge auth": also display the user - "bridge auth show": adapt to a potential "default user" user Id - "bridge configure": allow to run without a user set - "bridge pull": allow to run without a user set - "user adopt": replace "default user" by the actual user id when run
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-4/+11
|
* bridge/launchpad: add missing metadataamine2019-11-191-1/+1
| | | | bridge: use a specific key for origin metadata
* bridge/core: add context.Context to ImportAll and ExportAll signaturesAmine Hilaly2019-08-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bridge/core: add ImportResult objects to stream import events bridge/core: launchpad support asynchronous import bridge/github: cancellable export and import functions bridge/gitlab: cancellable export and import functions commands: bridge pull/push gracefull kill bridge/github: fix github import bridge/github: use simple context for imports bridge/core: name parameters in interfaces github/core: Add EventError to export and import events types bridge/gitlab: add context support in gitlab requests functions bridge/gitlab: remove imported events count from importer logic bridge/github: remove imported events count from importer logic bridge/github: add context support in query and muration requets bridge/github: fix bug duplicate editions after multiple calls bridge/core: import import and export events String methods bridge/gitlab: fix error handling in note import events commands/bridge: Add statistics about imports and exports bridge/gitlab: properly handle context cancellation bridge/github: improve error handling bridge: break iterators on context cancel or timeout bridge: add context timeout support bridge: improve event formating and error handling commands: handle interrupt and switch cases bridge/github: add export mutation timeouts bridge: fix race condition bug in the github and gitlab importers bridge/github: improve context error handling
* [bridge/github] cache user tokenAmine Hilaly2019-06-241-1/+1
| | | | | | | | fix import typo init tests verify issue
* rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKENAmine Hilaly2019-06-071-2/+2
|
* Change keyUser to keyOwner in Github bridgeAmine Hilaly2019-05-291-3/+3
|
* repo: refactor how test repo are created/cleanedMichael Muré2019-05-271-2/+3
|
* introduce `nextValidIssueEdit` and `nextValidCommentEdit` to escape empty ↵Amine Hilaly2019-05-231-1/+1
| | | | | | `Diff`objects calling nextValidEdit functions directly after a new query (Fixing a bug where capacity=2)
* Add unicode control characters test caseAmine Hilaly2019-05-051-17/+27
| | | | | | | | | | | Move `cleanupText` to utils/text/transform.go `text.Cleanup`: removing unicode control characters except for those allowed by `text.Safe` Add golang.org/x/text dependencies fix text.Cleanup Fix import panic
* Add old importer comments in the iteratorAmine Hilaly2019-05-051-10/+17
| | | | | Test operation authors Fix typo in test repo url
* github: simplify and improve the import testMichael Muré2019-05-051-58/+25
|
* Improve naming and functions signaturesAmine Hilaly2019-05-051-79/+69
| | | | | | expose `NewIterator` in `github` package remove `exist` in tests cases skip tests when env var GITHUB_TOKEN is not given
* Add importer testsAmine Hilaly2019-05-051-0/+223
Changes to Importer and exporter interface Improve importer Fix extra edits bug