Skip to content

Commit

Permalink
add provisioning unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Dec 8, 2023
1 parent 90a7c37 commit 360ad08
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server/provisioning/provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,22 @@ var cases = []struct {
},
},
},
{
name: "SumoLogic",
file: "./testdata/sumologic.yaml",
expectations: expectations{
dataStore: &datastore.DataStore{
Name: "Sumo Logic",
Default: true,
Type: datastore.DatastoreTypeSumoLogic,
Values: datastore.DataStoreValues{
SumoLogic: &datastore.SumoLogicConfig{
URL: "https://api.sumologic.com",
AccessID: "xxxxxxxxxxxxxx",
AccessKey: "0123456789abcdefghijklmnopqrstuvwxyz",
},
},
},
},
},
}
8 changes: 8 additions & 0 deletions server/provisioning/testdata/sumologic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: DataStore
spec:
name: Sumo Logic
type: sumologic
sumologic:
url: https://api.sumologic.com
accessID: xxxxxxxxxxxxxx
accessKey: 0123456789abcdefghijklmnopqrstuvwxyz

0 comments on commit 360ad08

Please sign in to comment.