File tree Expand file tree Collapse file tree 4 files changed +22
-18
lines changed
netbox_client_ruby/api/tenancy Expand file tree Collapse file tree 4 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 55 "results" : [
66 {
77 "id" : 1 ,
8- "display" : " Customers" ,
9- "name" : " Customers" ,
10- "slug" : " customers" ,
8+ "display" : " Parent Customers" ,
9+ "name" : " Parent Customers" ,
10+ "slug" : " parent- customers" ,
1111 "description" : " Parent Contact contact group" ,
1212 "parent" : null
1313 },
1414 {
1515 "id" : 2 ,
16- "display" : " East Coast Customers" ,
17- "name" : " East Coast Customers" ,
18- "slug" : " east-coast -customers" ,
16+ "display" : " Child Customers" ,
17+ "name" : " Child Customers" ,
18+ "slug" : " child -customers" ,
1919 "description" : " Child contact group" ,
2020 "parent" : {
2121 "id" : 1 ,
2222 "url" : " http://localhost/api/tenancy/contact_groups/1/" ,
23- "display" : " Customers" ,
24- "name" : " Customers" ,
25- "slug" : " customers" ,
23+ "display" : " Parent Customers" ,
24+ "name" : " Parent Customers" ,
25+ "slug" : " parent- customers" ,
2626 "description" : " Parent Contact contact group"
2727 }
2828 }
Original file line number Diff line number Diff line change 33 "name" : " tenant3" ,
4455 "group" : {
6- "id" : 1 ,
7- "url" : " http://localhost/api/tenancy/contact-groups/1/" ,
8- "name" : " Customer" ,
9- "slug" : " customer"
6+ "id" : 2 ,
7+ "url" : " http://localhost/api/tenancy/contact_groups/2/" ,
8+ "display" : " Child Customers" ,
9+ "name" : " Child Customers" ,
10+ "slug" : " child-customers" ,
11+ "description" : " Child contact group"
1012 },
1113 "description" : " " ,
1214 "comments" : " " ,
Original file line number Diff line number Diff line change 88 "name" : " contact3" ,
991010 "group" : {
11- "id" : 1 ,
12- "url" : " http://localhost/api/tenancy/contact-groups/1/" ,
13- "name" : " Customer" ,
14- "slug" : " customer"
11+ "id" : 2 ,
12+ "url" : " http://localhost/api/tenancy/contact_groups/2/" ,
13+ "display" : " Child Customers" ,
14+ "name" : " Child Customers" ,
15+ "slug" : " child-customers" ,
16+ "description" : " Child contact group"
1517 },
1618 "description" : " " ,
1719 "comments" : " " ,
Original file line number Diff line number Diff line change 3939 it 'should be a ContactGroup object' do
4040 contact_group = subject . group
4141 expect ( contact_group ) . to be_a NetboxClientRuby ::Tenancy ::ContactGroup
42- expect ( contact_group . id ) . to eq ( 1 )
42+ expect ( contact_group . id ) . to eq ( 2 )
4343 end
4444 end
4545 end
You can’t perform that action at this time.
0 commit comments