Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
#95: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gessnerfl committed Apr 19, 2021
1 parent 6500f70 commit de36e07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const resourceCustomEventSpecificationWithEntityVerificationRuleDefinitionTempla
provider "instana" {
api_token = "test-token"
endpoint = "localhost:%d"
default_name_prefix = "prefix"
default_name_suffix = "suffix"
}
resource "instana_custom_event_spec_entity_verification_rule" "example" {
Expand Down Expand Up @@ -49,8 +51,6 @@ const (
customEntityVerificationEventRuleMatchingEntityType = "matching-entity-type"
customEntityVerificationEventRuleOfflineDuration = 60000

constEntityVerificationEventContentType = "Content-Type"

suffixString = " suffix"
prefixString = "prefix "
)
Expand All @@ -61,7 +61,7 @@ var customEntityVerificationEventRuleSeverity = restapi.SeverityWarning.GetTerra
func TestCRUDOfCreateResourceCustomEventSpecificationWithEntityVerificationRuleResourceWithMockServer(t *testing.T) {
responseTemplate := `
{
"id" : "%d",
"id" : "%s",
"name" : "prefix name %d suffix",
"query" : "query",
"entityType" : "host",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const resourceCustomEventSpecificationWithSystemRuleDefinitionTemplate = `
provider "instana" {
api_token = "test-token"
endpoint = "localhost:%d"
default_name_prefix = "prefix"
default_name_suffix = "suffix"
}
resource "instana_custom_event_spec_system_rule" "example" {
Expand All @@ -42,18 +44,16 @@ const (
customSystemEventExpirationTime = 60000
customSystemEventDescription = "description"
customSystemEventRuleSystemRuleId = "system-rule-id"

constSystemEventContentType = "Content-Type"
)

var customSystemEventRuleSeverity = restapi.SeverityWarning.GetTerraformRepresentation()

func TestCRUDOfCreateResourceCustomEventSpecificationWithSystemdRuleResourceWithMockServer(t *testing.T) {
responseTemplate := `
{
"id" : "{{id}}",
"id" : "%s",
"name" : "prefix name %d suffix",
"entityType" : "entity_type",
"entityType" : "any",
"query" : "query",
"enabled" : true,
"triggering" : true,
Expand Down

0 comments on commit de36e07

Please sign in to comment.