chore: Use `example.com` instead of random URLs in tests by Not-Dhananjay-Mishra · Pull Request #3948 · google/go-github
@gmlewis Should I update them too?
This test contain some download URLs
| want := []*RunnerApplicationDownload{ | |
| {OS: Ptr("osx"), Architecture: Ptr("x64"), DownloadURL: Ptr("https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz"), Filename: Ptr("actions-runner-osx-x64-2.164.0.tar.gz")}, | |
| {OS: Ptr("linux"), Architecture: Ptr("x64"), DownloadURL: Ptr("https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz"), Filename: Ptr("actions-runner-linux-x64-2.164.0.tar.gz")}, | |
| {OS: Ptr("linux"), Architecture: Ptr("arm"), DownloadURL: Ptr("https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz"), Filename: Ptr("actions-runner-linux-arm-2.164.0.tar.gz")}, | |
| {OS: Ptr("win"), Architecture: Ptr("x64"), DownloadURL: Ptr("https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip"), Filename: Ptr("actions-runner-win-x64-2.164.0.zip")}, | |
| {OS: Ptr("linux"), Architecture: Ptr("arm64"), DownloadURL: Ptr("https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz"), Filename: Ptr("actions-runner-linux-arm64-2.164.0.tar.gz")}, |
The URL present in this test
| want := &UserAuthorization{ | |
| ID: Ptr(int64(1234)), | |
| URL: Ptr("https://git.company.com/api/v3/authorizations/1234"), | |
| App: &OAuthAPP{ | |
| Name: Ptr("GitHub Site Administrator"), |
The URLs present in this test
| ActionsMacos: []string{"192.0.2.1/32", "198.51.100.0/24"}, | |
| Dependabot: []string{"d"}, | |
| SSHKeyFingerprints: map[string]string{"a": "f"}, | |
| SSHKeys: []string{"k"}, | |
| API: []string{"a"}, | |
| Web: []string{"w"}, | |
| Domains: &APIMetaDomains{ | |
| Website: []string{ | |
| "*.github.com", | |
| "*.github.dev", | |
| "*.github.io", | |
| "*.githubassets.com", | |
| "*.githubusercontent.com", | |
| }, | |
| ArtifactAttestations: &APIMetaArtifactAttestations{ | |
| TrustDomain: "", | |
| Services: []string{ | |
| "*.actions.githubusercontent.com", | |
| "tuf-repo.github.com", | |
| "fulcio.githubapp.com", | |
| "timestamp.githubapp.com", | |
| }, | |
| }, |