(t *testing.T)
| 239 | } |
| 240 | |
| 241 | func TestCustomDocsURL(t *testing.T) { |
| 242 | t.Parallel() |
| 243 | |
| 244 | testURLRawString := "http://google.com" |
| 245 | testURL, err := url.Parse(testURLRawString) |
| 246 | require.NoError(t, err) |
| 247 | cfg := coderdtest.DeploymentValues(t) |
| 248 | cfg.DocsURL = *serpent.URLOf(testURL) |
| 249 | adminClient, adminUser := coderdenttest.New(t, &coderdenttest.Options{DontAddLicense: true, Options: &coderdtest.Options{DeploymentValues: cfg}}) |
| 250 | anotherClient, _ := coderdtest.CreateAnotherUser(t, adminClient, adminUser.OrganizationID) |
| 251 | |
| 252 | ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) |
| 253 | defer cancel() |
| 254 | |
| 255 | appr, err := anotherClient.Appearance(ctx) |
| 256 | require.NoError(t, err) |
| 257 | require.Equal(t, testURLRawString, appr.DocsURL) |
| 258 | } |
| 259 | |
| 260 | func TestDefaultSupportLinksWithCustomDocsUrl(t *testing.T) { |
| 261 | t.Parallel() |
nothing calls this directly
no test coverage detected