blob: 4ca58e374f23dad9c7f74e8018b79d3ef42eea69 [file] [log] [blame]
package Fixtures::Log;
#
# Copyright 2015 Comcast Cable Communications Management, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
use Moose;
extends 'DBIx::Class::EasyFixture';
use namespace::autoclean;
my %definition_for = (
message1 => {
new => 'Log',
using => {
id => 1,
level => 'APICHANGE',
ticketnum => 123,
message => 'Message1',
tm_user => 1,
},
},
message2 => {
new => 'Log',
using => {
id => 2,
level => 'APICHANGE',
ticketnum => 456,
message => 'Message2',
tm_user => 1,
},
},
);
sub get_definition {
my ( $self, $name ) = @_;
return $definition_for{$name};
}
sub all_fixture_names {
return keys %definition_for;
}
__PACKAGE__->meta->make_immutable;
1;