Skip to content

Commit d09a9ff

Browse files
Orbital tests record only mode
1 parent 9587653 commit d09a9ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/orbital/azext_orbital/tests/latest/test_orbital.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class OrbitalScenario(ScenarioTest):
1212

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

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

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

97+
@record_only()
9498
def test_contacts(self):
9599
self.kwargs.update({
96100
"resource-group": "Rgp",

0 commit comments

Comments
 (0)