wavefront-sdk 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative '../spec_helper'
5
- require_relative '../test_mixins/general'
6
- require_relative '../test_mixins/tag'
7
-
8
- # Unit tests for MonitoredCluster class
9
- #
10
- class WavefrontMonitoredClusterTest < WavefrontTestBase
11
- include WavefrontTest::Create
12
- include WavefrontTest::Delete
13
- include WavefrontTest::Describe
14
- include WavefrontTest::List
15
- include WavefrontTest::Update
16
- include WavefrontTest::Tag
17
-
18
- def test_merge
19
- assert_puts("/api/v2/monitoredcluster/merge/#{id}/#{id2}", nil, :json) do
20
- wf.merge(id, id2)
21
- end
22
-
23
- assert_invalid_id { wf.merge(id, invalid_id) }
24
- end
25
-
26
- private
27
-
28
- def api_class
29
- 'monitoredcluster'
30
- end
31
-
32
- def id
33
- 'k8s-sample'
34
- end
35
-
36
- def id2
37
- 'eks-cluster'
38
- end
39
-
40
- def invalid_id
41
- '!!!!'
42
- end
43
-
44
- def payload
45
- { id: 'k8s-sample',
46
- name: 'Sample cluster',
47
- platform: 'EKS',
48
- version: '1.2',
49
- additionalTags: {
50
- region: 'us-west-2',
51
- az: 'testing'
52
- },
53
- tags: %w[alertTag1] }
54
- end
55
- end