Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/orbital/azext_orbital/tests/latest/test_orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

class OrbitalScenario(ScenarioTest):

@record_only()
def test_available_ground_stations(self):
available_ground_stations = self.cmd("az orbital available-ground-station list --capability EarthObservation").get_output_in_json()
assert len(available_ground_stations) > 0
Expand All @@ -23,6 +24,7 @@ def test_available_ground_stations(self):
assert available_ground_station['latitudeDegrees'] is not None
assert available_ground_station['altitudeMeters'] is not None

@record_only()
@ResourceGroupPreparer(name_prefix="orbital_cli", parameter_name_for_location="location")
def test_spacecrafts(self, resource_group):
tleLine1 = "1 27424U 02022A 21354.42153147 .00000392 00000-0 97092-4 0 9992"
Expand Down Expand Up @@ -58,6 +60,7 @@ def test_spacecrafts(self, resource_group):
assert spacecraft['links'] is not None
self.cmd("az orbital spacecraft delete --name {spacecraft-name} --resource-group {resource-group} --yes")

@record_only()
@AllowLargeResponse(size_kb=9999)
@ResourceGroupPreparer(name_prefix="test_contact_profiles", parameter_name_for_location="location")
def test_contact_profiles(self, resource_group):
Expand Down Expand Up @@ -91,6 +94,7 @@ def test_contact_profiles(self, resource_group):
assert contact_profile['links'] is not None
self.cmd("az orbital contact-profile delete --name {contact-profile-name} --resource-group {resource-group} --yes")

@record_only()
def test_contacts(self):
self.kwargs.update({
"resource-group": "Rgp",
Expand Down
Loading