Пример #1
0
def create_test_application():
    app = AppInstance()
    app.id = "app_id_value"
    app.name = "app_name_value"
    app.label = "app_label_value"
    app.created = datetime.datetime(2019, 1, 1, 0, 0, 1)
    app.lastUpdated = datetime.datetime(2019, 1, 1, 0, 0, 1)
    app.status = "app_status_value"
    app.activated = datetime.datetime(2019, 1, 1, 0, 0, 1)
    app.features = "app_features_value"
    app.signOnMode = "app_signonmode_value"

    return app
 def test_delete_app(self):
     app = AppInstance.build_bookmark("https://www.google.com")
     app = self.client.create_app_instance(app)
     self.client.deactivate_app_instance(app.id)
     self.client.delete_app_instance(app.id)
     self.assertRaises(OktaError, self.client.get_app_instance, app.id)
 def test_delete_app(self):
     app = AppInstance.build_bookmark("https://www.google.com")
     app = self.client.create_app_instance(app)
     self.client.deactivate_app_instance(app.id)
     self.client.delete_app_instance(app.id)
     self.assertRaises(OktaError, self.client.get_app_instance, app.id)
 def test_create_app(self):
     app = AppInstance.build_bookmark("https://www.google.com")
     app = self.client.create_app_instance(app)
     self.assertIsNotNone(app.id)
 def test_create_app(self):
     app = AppInstance.build_bookmark("https://www.google.com")
     app = self.client.create_app_instance(app)
     self.assertIsNotNone(app.id)