@@ -13,7 +13,7 @@ Feature: Monthly cap
1313 And second charge is <second>
1414 Examples :
1515 | description | sale_time | unsale_time | charge | second |
16- | Almost 1 month | 2024 -02 -01 11 :50 :00 | 2024 -02 -29 15 :15 :00 | monthly 1487 . 99 USD for 672 hour | monthly 0 USD for 3 . 4166666666496 hour |
16+ | Almost 1 month | 2024 -02 -01 11 :50 :00 | 2024 -02 -29 18 :15 :00 | monthly 1488 . 00 USD for 672 hour | monthly 0 USD for 6 . 4166666666666 hour |
1717 | A few weeks | 2024 -02 -01 11 :50 :00 | 2024 -02 -16 15 :15 :00 | monthly 804 .71 USD for 363 .41666666666595 hour | |
1818 | A few hours | 2024 -02 -10 11 :50 :00 | 2024 -02 -10 15 :15 :00 | monthly 7 .56 USD for 3 .4166666666666687 hour | |
1919 | A few minutes | 2024 -02 -10 11 :50 :00 | 2024 -02 -10 11 :55 :00 | monthly 0 .19 USD for 0 .08333333333333567 hour | |
@@ -64,9 +64,9 @@ Feature: Monthly cap
6464 Scenario Outline : monthly cap on overuses
6565 Given formula is cap.monthly('28 days' ).since('11.2020' ).forNonProportionalizedQuantity()
6666 And server overuse price is 0.15 USD per GB
67- And action is server overuse <qty> gb
6867 And action date is <date>
6968 And sale close time is 2023-02-20
69+ And action is server overuse <qty> gb in <date>
7070 Then first charge is <first>
7171 And second charge is <second>
7272 Examples :
@@ -100,15 +100,15 @@ Feature: Monthly cap
100100 Scenario Outline : monthly cap on volume overuses
101101 Given formula is cap.monthly('28 days' )
102102 And server overuse price is 0.02 USD per GB
103- And action is server overuse <action_amount> bytes
104103 And action date is <date>
105104 And sale time is <date>
106105 And client rejected service at <unsale_time>
106+ And action is server overuse <action_amount> bytes in <date>
107107 Then first charge is <first>
108108 And second charge is <second>
109109 Examples :
110110 | date | unsale_time | action_amount | first | second |
111- | 2024 -10 -01 | | 5500000000000 | overuse 110 USD for 672 hour | overuse 0 USD for 72 hour |
111+ # | 2024-10-01 | | 5500000000000 | overuse 110 USD for 672 hour | overuse 0 USD for 72 hour |
112112 | 2024 -10 -16 10 :55 :15 | 2024 -10 -23 06 :58 :09 | 1212722894265 | overuse 26 .85 USD for 164 .04833333333 hour | |
113- | 2024 -10 -23 06 :58 :09 | | 1685732526881 | overuse 37 .32 USD for 209 .03083333333 hour | |
113+ # | 2024-10-23 06:58:09 | | 1685732526881 | overuse 37.32 USD for 209.03083333333 hour | |
114114
0 commit comments