Skip to content

Commit

Permalink
Merge pull request #57 from redhat-developer/fix-ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
jackdelahunt committed Oct 27, 2022
2 parents fdcf68f + 4453d4d commit 1f477b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions docs/data-sources/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ description: |-

### Read-Only

- `billing_cloud_account_id` (String) Billing cloud account id for the Kafka instance
- `billing_model` (String) Billing model for the Kafka instance
- `bootstrap_server_host` (String) The bootstrap server (host:port)
- `cloud_provider` (String) The cloud provider to use. A list of available cloud providers can be obtained using `data.rhoas_cloud_providers`
- `created_at` (String) The RFC3339 date and time at which the Kafka instance was created
- `href` (String) The path to the Kafka instance in the REST API
- `kind` (String) The kind of resource in the API
- `marketplace` (String) The marketplace for the kafka instance
- `name` (String) The name of the Kafka instance
- `owner` (String) The username of the Red Hat account that owns the Kafka instance
- `plan` (String) Plan for the kafka instance
- `reauthentication_enabled` (Boolean) Enable reauthentication for kafka instance
- `region` (String) The region to use. A list of available regions can be obtained using `data.rhoas_cloud_providers_regions`
- `status` (String) The status of the Kafka instance
- `updated_at` (String) The RFC3339 date and time at which the Kafka instance was last updated
Expand Down
10 changes: 5 additions & 5 deletions rhoas/tests/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
const (
kafkaID = "test_kafka"
kafkaPath = "rhoas_kafka.test_kafka"
PlanInput = "developer.x1"
BillingModelInput = "standard"
planInput = "developer.x1"
billingModelInput = "standard"
)

// TestAccRHOASKafka_Basic checks that this provider is able to spin up a
Expand Down Expand Up @@ -187,7 +187,7 @@ resource "rhoas_kafka" "%s" {
plan = "%s"
billing_model = "%s"
}
`, id, name, PlanInput, BillingModelInput)
`, id, name, planInput, billingModelInput)
}

func testAccKafkaWithCloudProvider(id, name, cloudProvider string) string {
Expand All @@ -198,7 +198,7 @@ resource "rhoas_kafka" "%s" {
plan = "%s"
billing_model = "%s"
}
`, id, name, cloudProvider, PlanInput, BillingModelInput)
`, id, name, cloudProvider, planInput, billingModelInput)
}

func Test_testAccKafkaBasic(t *testing.T) {
Expand All @@ -209,7 +209,7 @@ resource "rhoas_kafka" "test_id" {
plan = "%s"
billing_model = "%s"
}
`, PlanInput, BillingModelInput),
`, planInput, billingModelInput),
testAccKafkaBasic("test_id", "test_name"),
)
}
6 changes: 3 additions & 3 deletions rhoas/tests/topics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ resource "rhoas_topic" "%s" {
partitions = %d
kafka_id = rhoas_kafka.test_kafka_create_topic.id
}
`, kafkaName, PlanInput, BillingModelInput, id, name, partitions)
`, kafkaName, planInput, billingModelInput, id, name, partitions)
}

func testAccTopicDestroyedBasic() string {
Expand All @@ -234,7 +234,7 @@ resource "rhoas_kafka" "test_kafka_create_topic" {
plan = "%s"
billing_model = "%s"
}
`, kafkaName, PlanInput, BillingModelInput)
`, kafkaName, planInput, billingModelInput)
}

func Test_testAccTopicBasic(t *testing.T) {
Expand All @@ -251,7 +251,7 @@ resource "rhoas_topic" "test_id" {
partitions = 1
kafka_id = rhoas_kafka.test_kafka_create_topic.id
}
`, kafkaName, PlanInput, BillingModelInput),
`, kafkaName, planInput, billingModelInput),
testAccTopicBasic("test_id", "test-name", 1),
)
}

0 comments on commit 1f477b4

Please sign in to comment.