Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netbox-awx-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
netbox-awx-plugin
Commits
6f236168
Commit
6f236168
authored
4 months ago
by
Fahrudin Halilovic
Browse files
Options
Downloads
Patches
Plain Diff
fix update group test
parent
d9c05675
No related branches found
No related tags found
1 merge request
!17
get max page size and use it in API calls to AWX
Pipeline
#205244
passed
4 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
netbox_awx_plugin/tests/test_models.py
+5
-1
5 additions, 1 deletion
netbox_awx_plugin/tests/test_models.py
with
5 additions
and
1 deletion
netbox_awx_plugin/tests/test_models.py
+
5
−
1
View file @
6f236168
...
@@ -202,7 +202,11 @@ class AWXInventoryModelTestCase(TestCase):
...
@@ -202,7 +202,11 @@ class AWXInventoryModelTestCase(TestCase):
mock_put
.
return_value
=
mock_put_response
mock_put
.
return_value
=
mock_put_response
data
=
{
"
name
"
:
"
updated-group
"
}
data
=
{
"
name
"
:
"
updated-group
"
}
self
.
inventory
.
update_group
(
"
test-group
"
,
data
)
group
=
self
.
inventory
.
get_group
(
"
test-group
"
)
group_id
=
group
[
'
id
'
]
self
.
inventory
.
update_group
(
group_id
,
data
)
# Check that get_group was called correctly
# Check that get_group was called correctly
expected_get_url
=
urljoin
(
self
.
awx_instance
.
url
,
f
"
/api/v2/inventories/
{
self
.
inventory
.
inventory_id
}
/groups/
"
)
expected_get_url
=
urljoin
(
self
.
awx_instance
.
url
,
f
"
/api/v2/inventories/
{
self
.
inventory
.
inventory_id
}
/groups/
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment