// inventoryCreateVolume focus is on creating larger blocks of records and confirmation of success
inventoryCreateVolume focus is on creating larger blocks of records and confirmation of success
// inventoryCreateVolume focus is on creating larger blocks of records and confirmation of success
func inventoryCreateVolume(testName string) {
	_, err := clearInventory()
	if err != nil {
		fail(testName, err)
	}
	recordCount, statusCode, responseBodyMessage, err := inventoryCreateByCount(0, 2500)
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(2500, int(recordCount), "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualStr("created=2500", responseBodyMessage, "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(201, statusCode, "")
	if err != nil {
		fail(testName, err)
	}
	recordCount, statusCode, responseBodyMessage, err = inventoryCreateByCount(2500, 500)
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(2500+500, int(recordCount), "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualStr("created=500", responseBodyMessage, "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(201, statusCode, "")
	if err != nil {
		fail(testName, err)
	}
	recordCount, statusCode, responseBodyMessage, err = inventoryCreateByCount(3000, 5000)
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(2500+500+5000, int(recordCount), "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualStr("created=5000", responseBodyMessage, "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(201, statusCode, "")
	if err != nil {
		fail(testName, err)
	}
	recordCount, statusCode, responseBodyMessage, err = inventoryCreateByCount(0, 500)
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(2500+500+5000, int(recordCount), "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualStr("", responseBodyMessage, "")
	if err != nil {
		fail(testName, err)
	}
	err = assertEqualInt(200, statusCode, "")
	if err != nil {
		fail(testName, err)
	}
	pass(testName)
}
func inventoryCreateVolume ( testName string ) { _ , err := clearInventory ( ) if err != nil { fail ( testName , err ) } recordCount , statusCode , responseBodyMessage , err := inventoryCreateByCount ( 0 , 2500 ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 2500 , int ( recordCount ) , " " ) if err != nil { fail ( testName , err ) } err = assertEqualStr ( " " , responseBodyMessage , " " ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 201 , statusCode , " " ) if err != nil { fail ( testName , err ) } recordCount , statusCode , responseBodyMessage , err = inventoryCreateByCount ( 2500 , 500 ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 2500 + 500 , int ( recordCount ) , " " ) if err != nil { fail ( testName , err ) } err = assertEqualStr ( " " , responseBodyMessage , " " ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 201 , statusCode , " " ) if err != nil { fail ( testName , err ) } recordCount , statusCode , responseBodyMessage , err = inventoryCreateByCount ( 3000 , 5000 ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 2500 + 500 + 5000 , int ( recordCount ) , " " ) if err != nil { fail ( testName , err ) } err = assertEqualStr ( " " , responseBodyMessage , " " ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 201 , statusCode , " " ) if err != nil { fail ( testName , err ) } recordCount , statusCode , responseBodyMessage , err = inventoryCreateByCount ( 0 , 500 ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 2500 + 500 + 5000 , int ( recordCount ) , " " ) if err != nil { fail ( testName , err ) } err = assertEqualStr ( " " , responseBodyMessage , " " ) if err != nil { fail ( testName , err ) } err = assertEqualInt ( 200 , statusCode , " " ) if err != nil { fail ( testName , err ) } pass ( testName ) }
inventoryCreateVolume focus is on creating larger blocks of records and confirmation of success
inventoryCreateVolume focus is on creating larger blocks of records and confirmation of success
// Wipe any previous records // Request new records be created // Trust but verify .. // Total record count // Number created by this request // 201 status is expected. // Request additional records be created // Trust but verify .. // 201 status is expected. // Request additional records be created // Trust but verify .. // 201 status is expected. // Try to add duplicates.  This is accepted but no records are added. // The exisitng record count does not change. // No new records were added. // 200 status is expected. // TODO: Add some checking of status code and message vs expected values // (and pass these in...)