@@ -70,16 +70,24 @@ const mockResponses = (proxyServer, options) => {
70
70
// Do not send to GitHub when mocked
71
71
switch ( req . path ) {
72
72
case "/orgs/octodemo/copilot/usage" :
73
- res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/organization_response_sample.json' ) , 'utf8' ) ) ) ;
73
+ case "/orgs/octodemo/team/the-a-team/copilot/usage" :
74
+ res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/organization_usage_response_sample.json' ) , 'utf8' ) ) ) ;
75
+ break ;
76
+ case "/orgs/octodemo/copilot/metrics" :
77
+ case "/orgs/octodemo/team/the-a-team/copilot/metrics" :
78
+ res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/organization_metrics_response_sample.json' ) , 'utf8' ) ) ) ;
74
79
break ;
75
80
case "/orgs/octodemo/copilot/billing/seats" :
76
- res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/organization_response_sample_seats .json' ) , 'utf8' ) ) ) ;
81
+ res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/organization_seats_response_sample .json' ) , 'utf8' ) ) ) ;
77
82
break ;
78
83
case "/enterprises/octodemo/copilot/usage" :
79
- res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/enterprise_response_sample.json' ) , 'utf8' ) ) ) ;
84
+ res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/enterprise_usage_response_sample.json' ) , 'utf8' ) ) ) ;
85
+ break ;
86
+ case "/enterprises/octodemo/copilot/metrics" :
87
+ res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/enterprise_metrics_response_sample.json' ) , 'utf8' ) ) ) ;
80
88
break ;
81
89
case "/enterprises/octodemo/copilot/billing/seats" :
82
- res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/enterprise_response_sample_seats .json' ) , 'utf8' ) ) ) ;
90
+ res . json ( JSON . parse ( readFileSync ( path . join ( __dirname , '../mock-data/enterprise_seats_response_sample .json' ) , 'utf8' ) ) ) ;
83
91
break ;
84
92
default :
85
93
res . status ( 418 ) . send ( '🫖Request Not Mocked' ) ;
0 commit comments