...

Source file src/github.com/letsencrypt/boulder/test/integration/ratelimit_test.go

Documentation: github.com/letsencrypt/boulder/test/integration

     1  //go:build integration
     2  
     3  package integration
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/letsencrypt/boulder/test"
     9  )
    10  
    11  func TestDuplicateFQDNRateLimit(t *testing.T) {
    12  	t.Parallel()
    13  	domain := random_domain()
    14  
    15  	_, err := authAndIssue(nil, nil, []string{domain}, true)
    16  	test.AssertNotError(t, err, "Failed to issue first certificate")
    17  
    18  	_, err = authAndIssue(nil, nil, []string{domain}, true)
    19  	test.AssertNotError(t, err, "Failed to issue second certificate")
    20  
    21  	_, err = authAndIssue(nil, nil, []string{domain}, true)
    22  	test.AssertError(t, err, "Somehow managed to issue third certificate")
    23  }
    24  

View as plain text