@@ -7,11 +7,11 @@ import { clonedImages, parentImage, successfulCloneStatus } from './fixtures/ima
77import {
88 AWSReservation ,
99 getAzureReservation ,
10+ reservation ,
11+ GCPReservation ,
1012 createdAWSReservation ,
1113 createdAzureReservation ,
12- reservation ,
1314 createdGCPReservation ,
14- GCPReservation ,
1515} from './fixtures/reservation.fixtures' ;
1616import { templates } from './fixtures/templates.fixtures' ;
1717
@@ -50,20 +50,6 @@ export const handlers = [
5050 http . get ( imageBuilderURL ( `clones/:id` ) , ( ) => {
5151 return HttpResponse . json ( successfulCloneStatus ) ;
5252 } ) ,
53- http . post ( provisioningUrl ( 'pubkeys' ) , ( ) => {
54- return new HttpResponse ( null , {
55- status : 200 ,
56- } ) ;
57- } ) ,
58- http . post ( provisioningUrl ( 'reservations/azure' ) , ( ) => {
59- return HttpResponse . json ( createdAzureReservation ) ;
60- } ) ,
61- http . post ( provisioningUrl ( 'reservations/gcp' ) , ( ) => {
62- return HttpResponse . json ( createdGCPReservation ) ;
63- } ) ,
64- http . post ( provisioningUrl ( 'reservations/aws' ) , ( ) => {
65- return HttpResponse . json ( createdAWSReservation ) ;
66- } ) ,
6753 http . get ( provisioningUrl ( 'reservations/:id' ) , ( ) => {
6854 return HttpResponse . json ( reservation ) ;
6955 } ) ,
@@ -79,4 +65,16 @@ export const handlers = [
7965 http . get ( provisioningUrl ( 'sources/:id/launch_templates' ) , ( ) => {
8066 return HttpResponse . json ( templates ) ;
8167 } ) ,
68+ http . post ( provisioningUrl ( 'pubkeys' ) , ( ) => {
69+ return HttpResponse . json ( { id : 1 } , { status : 200 } ) ;
70+ } ) ,
71+ http . post ( provisioningUrl ( 'reservations/azure' ) , ( ) => {
72+ return HttpResponse . json ( createdAzureReservation ) ;
73+ } ) ,
74+ http . post ( provisioningUrl ( 'reservations/gcp' ) , ( ) => {
75+ return HttpResponse . json ( createdGCPReservation ) ;
76+ } ) ,
77+ http . post ( provisioningUrl ( 'reservations/aws' ) , ( ) => {
78+ return HttpResponse . json ( createdAWSReservation ) ;
79+ } ) ,
8280] ;
0 commit comments