File tree 1 file changed +1
-31
lines changed
tests/KubeOps.TestOperator.Test
1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -30,37 +30,7 @@ public TestControllerTest(KubernetesOperatorFactory<TestStartup> factory)
30
30
}
31
31
32
32
[ Fact ]
33
- public async Task Test_If_Manager_Created_Is_Called ( )
34
- {
35
- _factory . Run ( ) ;
36
-
37
- _managerMock . Setup ( o => o . Reconciled ( It . IsAny < V1TestEntity > ( ) ) ) ;
38
- _managerMock . Verify ( o => o . Reconciled ( It . IsAny < V1TestEntity > ( ) ) , Times . Never ) ;
39
-
40
- await _controller . StartAsync ( ) ;
41
- await _factory . EnqueueEvent ( ResourceEventType . Reconcile , new V1TestEntity ( ) ) ;
42
- await _controller . StopAsync ( ) ;
43
-
44
- _managerMock . Verify ( o => o . Reconciled ( It . IsAny < V1TestEntity > ( ) ) , Times . Once ) ;
45
- }
46
-
47
- [ Fact ]
48
- public async Task Test_If_Manager_Updated_Is_Called ( )
49
- {
50
- _factory . Run ( ) ;
51
-
52
- _managerMock . Setup ( o => o . Reconciled ( It . IsAny < V1TestEntity > ( ) ) ) ;
53
- _managerMock . Verify ( o => o . Reconciled ( It . IsAny < V1TestEntity > ( ) ) , Times . Never ) ;
54
-
55
- await _controller . StartAsync ( ) ;
56
- await _factory . EnqueueEvent ( ResourceEventType . Reconcile , new V1TestEntity ( ) ) ;
57
- await _controller . StopAsync ( ) ;
58
-
59
- _managerMock . Verify ( o => o . Reconciled ( It . IsAny < V1TestEntity > ( ) ) , Times . Once ) ;
60
- }
61
-
62
- [ Fact ]
63
- public async Task Test_If_Manager_NotModified_Is_Called ( )
33
+ public async Task Test_If_Manager_Reconciled_Is_Called ( )
64
34
{
65
35
_factory . Run ( ) ;
66
36
You can’t perform that action at this time.
0 commit comments