Skip to content

feat: enforce template-level constraints for TTL and autostart #2018

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

Merged
merged 20 commits into from
Jun 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
RED: fast-fail some slow-failing tests
  • Loading branch information
johnstcn committed Jun 3, 2022
commit aa298a6f09db61038e6a3f14e648682d43e7db74
4 changes: 4 additions & 0 deletions cli/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

func TestCreate(t *testing.T) {
t.Parallel()
t.Fatal("CIAN FIX THIS")
t.Run("Create", func(t *testing.T) {
t.Parallel()
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerD: true})
Expand Down Expand Up @@ -65,6 +66,7 @@ func TestCreate(t *testing.T) {

t.Run("AboveTemplateMaxTTL", func(t *testing.T) {
t.Parallel()
t.Fatal("CIAN FIX THIS")
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerD: true})
user := coderdtest.CreateFirstUser(t, client)
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
Expand Down Expand Up @@ -93,6 +95,7 @@ func TestCreate(t *testing.T) {

t.Run("BelowTemplateMinAutostartInterval", func(t *testing.T) {
t.Parallel()
t.Fatal("CIAN FIX THIS")
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerD: true})
user := coderdtest.CreateFirstUser(t, client)
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
Expand Down Expand Up @@ -149,6 +152,7 @@ func TestCreate(t *testing.T) {

t.Run("CreateErrInvalidTTL", func(t *testing.T) {
t.Parallel()
t.Fatal("CIAN FIX THIS")
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerD: true})
user := coderdtest.CreateFirstUser(t, client)
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
Expand Down