Project

General

Profile

« Previous | Next » 

Revision 708401d0

Added by Thomas McKay over 10 years ago

ak-sysgroup - updated activation keys for system groups

ak-sysgroup - rubocop cleanup

ak-sysgroup - remove obsolete view files

ak-sysgroup - pull-request clean up

View differences:

engines/bastion/test/activation-keys/activation-key.factory.test.js
});
});
it('ActivationKey.available GET /api/v2/activation_keys/1/subscriptions/available', function() {
it('ActivationKey.availableSubscriptions GET /api/v2/activation_keys/1/subscriptions/available', function() {
$httpBackend.expectGET('/api/v2/activation_keys/1/subscriptions/available').respond(activationKeys.results[0]);
ActivationKey.available({id: 1}, function(response) {
ActivationKey.availableSubscriptions({id: 1}, function(response) {
expect(response).toBeDefined();
});
});
......
});
});
it('ActivationKey.availableSystemGroups GET /api/v2/activation_keys/1/system_groups/available', function() {
$httpBackend.expectGET('/api/v2/activation_keys/1/system_groups/available').respond(activationKeys.results[0]);
ActivationKey.availableSystemGroups({id: 1}, function(response) {
expect(response).toBeDefined();
});
});
it('ActivationKey.removeSystemGroups PUT /api/v2/activation_keys/1/system_groups', function() {
$httpBackend.expectPUT('/api/v2/activation_keys/1/system_groups').respond(activationKeys.results[0]);
ActivationKey.removeSystemGroups({id: 1}, function(response) {
expect(response).toBeDefined();
});
});
it('ActivationKey.addSystemGroups POST /api/v2/activation_keys/1/system_groups', function() {
$httpBackend.expectPOST('/api/v2/activation_keys/1/system_groups').respond(activationKeys.results[0]);
ActivationKey.addSystemGroups({id: 1}, function(response) {
expect(response).toBeDefined();
});
});
});

Also available in: Unified diff