Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Breaking] Synchronize Job Template with name instead of ID in AWX(RHAAP) #800

Closed

Conversation

EliasBoulharts
Copy link
Collaborator

No description provided.

@@ -1,6 +1,6 @@
from unittest.mock import patch, MagicMock

from service_catalog.models import JobTemplate, Operation
from service_catalog.models import JobTemplate, Operation, FakeInstance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import


@patch('towerlib.towerlib.Tower.get_job_template_by_name')
@patch('service_catalog.models.tower_server.TowerServer.get_tower_instance')
def test_update_non_existing_job_template_from_tower(self, mock_tower_instance, mock_get_job_template_by_name):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add rename test

@Sispheor
Copy link
Contributor

Maybe not really the way to go finally. We'll discuss about this next week.

@Sispheor
Copy link
Contributor

We abord this approach.

@Sispheor Sispheor closed this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants