Skip to content

Commit

Permalink
Update URL in tests from example.com to www.hashicorp.com (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev authored Sep 16, 2024
1 parent 18ca0b5 commit 4ca1e61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha2/workspace_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func TestValidateWorkspaceSpecNotifications(t *testing.T) {
t.Parallel()

token := "token"
url := "https://example.com"
url := "https://www.hashicorp.com"
successCases := map[string]Workspace{
"OnlyEmailAddresses": {
Spec: WorkspaceSpec{
Expand Down
6 changes: 3 additions & 3 deletions controllers/workspace_controller_notifications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var _ = Describe("Workspace controller", Label("Notifications"), Ordered, func()
instance.Spec.Notifications = append(instance.Spec.Notifications, appv1alpha2.Notification{
Name: "slack",
Type: tfc.NotificationDestinationTypeSlack,
URL: "https://example.com",
URL: "https://www.hashicorp.com",
})
// Create a new Kubernetes workspace object and wait until the controller finishes the reconciliation
createWorkspace(instance)
Expand All @@ -100,7 +100,7 @@ var _ = Describe("Workspace controller", Label("Notifications"), Ordered, func()
instance.Spec.Notifications = append(instance.Spec.Notifications, appv1alpha2.Notification{
Name: "slack",
Type: tfc.NotificationDestinationTypeSlack,
URL: "https://example.com",
URL: "https://www.hashicorp.com",
})
instance.Spec.Notifications = append(instance.Spec.Notifications, appv1alpha2.Notification{
Name: "email",
Expand All @@ -120,7 +120,7 @@ var _ = Describe("Workspace controller", Label("Notifications"), Ordered, func()
instance.Spec.Notifications = append(instance.Spec.Notifications, appv1alpha2.Notification{
Name: "slack",
Type: tfc.NotificationDestinationTypeSlack,
URL: "https://example.com",
URL: "https://www.hashicorp.com",
})
// Create a new Kubernetes workspace object and wait until the controller finishes the reconciliation
createWorkspace(instance)
Expand Down
2 changes: 1 addition & 1 deletion controllers/workspace_controller_run_tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func isRunTasksReconciled(instance *appv1alpha2.Workspace) {
func createRunTaskForTest(name string) string {
rt, err := tfClient.RunTasks.Create(ctx, organization, tfc.RunTaskCreateOptions{
Name: name,
URL: "https://example.com",
URL: "https://www.hashicorp.com",
Category: "task", // MUST BE "task"
Enabled: tfc.Bool(true),
})
Expand Down

0 comments on commit 4ca1e61

Please sign in to comment.