Comments (3)
@mnuttall do you think these should instead be unit tests (we have https://github.com/rhd-gitops-example/services/blob/f020ad9125c422a4246688e8e194e429df8905ec/pkg/git/repository_test.go which accepts a TEST_GITHUB_TOKEN for example), or are you thinking of introducing Bash tests that we provide a token for?
The Bash example would be more realistic but harder to automate unless we get a functional GitHub ID for Travis, perhaps whoever picks this up should do/investigate both?
For a dry run flag, lemme see if I understand this right - would this be the same as a user clicking the "compare and pull request' button on GitHub when they've just pushed to a branch for a forked repository? I'm sure it's a well-formed URL we could generate, we could even spawn a browser with it up instead of just telling users to paste it - this would assume the branch has already been pushed and both are real repositories on GitHub (so, not "local filesystem to real GitHub repo", I think).
from services.
@mnuttall Do the tests from #112 cover this? They don't cover the 'local' case, but I think they cover what you were looking for in the other cases
from services.
@JustinKuli added a whole suite of tests under https://github.com/rhd-gitops-example/services/pull/112/files#diff-5aaf8affd544566465993c820866da3d that should cover the kind of failures that caused me to raise this issue. Closing this issue in favour of #112.
from services.
Related Issues (20)
- Add optional parameters for specifying branches on repositories
- Update automerge-example to v1beta1 HOT 1
- Expose branch-name flag
- The Big Refactor: rework 'Local'
- PipelineRun should fail if bad credentials used for example HOT 1
- Update `promote` for modified repo structure HOT 3
- GitHub vs GitHub Enterprise in automerge - PR doesn't enter merged state HOT 2
- Use of RBAC in automerge-example
- Modify example repositories for /environments/env-name/ structure HOT 1
- README overhaul HOT 3
- Test `services` as an `oc` plugin HOT 5
- services promote does not create PRs for repos in orgs HOT 2
- Automerge support for Tekton 0.12 HOT 2
- Remove token from error when an invalid GitHub repo URL is provided
- Fix up automerge example to use new repository structure
- Switch to simpler promote-demo example instead of referring to Aki's HOT 1
- Promote within a repository HOT 6
- Integrate `promote` and `odo`
- Debug output exposes access tokens in certain error cases HOT 2
- Look through and resolve todos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from services.