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

Alex/fix tests #167

Closed
wants to merge 2 commits into from
Closed

Alex/fix tests #167

wants to merge 2 commits into from

Conversation

alexlyulkov
Copy link
Contributor

Fixed tsh tests,
Added auth client with retries,
Changed ports in tests

@klizhentas
Copy link
Contributor

@alexlyulkov this branch can not be merged - it has some conflicts, can you resolve the conflicts?

GetCertAuthorities(caType services.CertAuthType) ([]*services.CertAuthority, error)
}

type retryingClient struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct RetryingTransport {
    *http.Transport
    Retries int
}

func (t *RetryingTransport) RoundTrip() (*http.Response, error) {
    for ... retries {
       t.Transport.Roundtrip()
    }
}
    roundtrip.NewClient(..., roundtrip.Transport(&RetryingTransport))

@kontsevoy kontsevoy deleted the alex/fix-tests branch March 1, 2016 00:59
nick-inkeep pushed a commit to nick-inkeep/teleport-docs that referenced this pull request Jun 20, 2023
Fixes gravitational#167

`handlePartialLink` currently hardcodes `docs/pages` as the location of
all docs pages, and uses this file path segment to construct the absolute
path of the MDX file that includes a partial.

This change adds the root directory of all partials as a parameter of
`handlePartialLink` and uses that instead. Since this root directory is
configurable outside `remark-includes`, this change lets us add unit
tests for `handlePartialLink`.

This change also handles relative path resolution for image and link
definition URLs. The current version of `handlePartialLink` only handles
links paths. As a result, this renames `handlePartialLink` to
`handleURLPath`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants